我有声明管道,并使用jenkins共享库。我试图在jenkins共享库中进行递归函数调用。我的共享库结构类似于下面的内容:在xyz.groovy内部,我有一个foo方法,我从我的管道中调用xyz.foo。// says No such DSL method
xyz.foo() //says no signature of method: java.lang.class.
我将Jenkins Pipeline作为groovy脚本存储在Jenkins的共享库中。我想为不同的工作使用不同的版本。我的名为sample_jenkins.groovy的共享库脚本如下: // evaluate the body block, and collect configurationstage" stage('Second Stage'){