我正在尝试对Groovy进行同样的处理,但我不确定是否找到了匹配的方法。第一种方法是将Groovy脚本加载到Groovy控制台。我深入研究了在Eclipse中运行的REPL与使用groovysh脚本从独立发行版运行的REPL之间的区别。我在groovysh脚本中找到了以下代码
if [ "x$OLDSHELL" !无论如何,我能够破解它,以便使用Eclipse项目中的代码所需的类路径调用groovysh脚本。现在我可以在REPL
是否可以使用groovysh或groovy scriptname对jenkins管道脚本进行测试,以在不使用Jenkins的情况下运行验证测试pipeline { } }运行这样的测试,取决于脚本的子集:groovysh_evaluate.pipeline()报告:
No signature of m
假设我有一个SomeThings.groovy文件:def someFunc(a) {}groovy:000> someFunc(1)No signature of method: groovysh_evaluate.someFunc() is applicable for argument types:
===> nullRunning hi()No signature of method: groovysh_evaluate.hiNo signature of method: static groovysh_evaluate.hi() is applicable for argument types: () values: []有什么问题,如何解决?