如何将agent作为参数传递给另一个agent?我知道我们应该将参数作为对象传递给createNewAgent方法,但我不知道如何检索存在于代理控制器中的最近创建的代理。;//How get recently created agent inorder to pass in argument } catch
我将params传递给管道B并根据参数设置环境变量。但是,"${params.URL}"被计算为null。管道A在Jenkinsfile中声明: agent any
stage('Run on all repos') {[string(name:'URL', value:'val')]管道B在run-on-single-repo.groovy中声明:
pipeline