[英]How to access global environment through groovy script in Jenkins Pipeline Plugin
In shell we use following command 在shell中,我们使用以下命令
node{
sh "x=${env.j_properties_file}"
sh "y=${env.HOME}"
}
How do we it in groovy script Or How do we access shell variable x in groovy script? 我们如何在groovy脚本中使用它或如何在groovy脚本中访问外壳变量x?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.