Leo*_*eon 5 groovy jenkins jenkins-slave jenkins-pipeline
我以这种方式启动管道:
node('my_Label') {
// my code
}
我想知道我的代码在哪个Slave中运行。我尝试了多种方法,但无法找到正确的方法来调用它:(
先感谢您
环境变量$ {NODE_NAME}应该具有它:
node ('my_Label) {
   println "${NODE_NAME}"
}
| 归档时间: | 
 | 
| 查看次数: | 1957 次 | 
| 最近记录: |