1
我想访问直接节点环境变量在詹金斯的工作描述,就像这样:詹金斯管道节点变量
node("${DEST_NODE}") {
stage("server info")
{
sh 'PYT=$(python --version)'
currentBuild.description = "Python: " + System.getenv("PYT")
currentBuild.description = "Python: " + ${PYT}
}
}
什么是从管道进入一个shell变量的正确方法?