Pre*_*hev 5 jenkins jenkins-plugins jenkins-pipeline
有没有办法在每个阶段的框中显示某些环境变量和构建参数?这可能吗?
无论你如何称呼舞台,都会出现什么,如果你愿意,你可以使用变量。在本例中,“node_to_run_on”是构建参数。
node ("${node_to_run_on}") {
stage("Install JDK / JRE on ${node_to_run_on}") {
sh ("/blah/blah")
}
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1474 次 |
| 最近记录: |