[英]how to assign dynamic folder path URL in Jenkinsfile
i want to go home/username/dir1/dir2/myfile我想 go 主页/用户名/dir1/dir2/myfile
but file have dynamic value of username in Jenkinsfile但文件在 Jenkinsfile 中具有用户名的动态值
Try to use $HOME
environment variable:尝试使用
$HOME
环境变量:
cd "$HOME/dir1/dir2/myfile"
https://opensource.com/article/19/8/what-are-environment-variables https://opensource.com/article/19/8/what-are-environment-variables
https://wiki.jenkins.io/display/JENKINS/Building+a+software+project#Buildingasoftwareproject-belowJenkinsSetEnvironmentVariables https://wiki.jenkins.io/display/JENKINS/Building+a+software+project#Buildingasoftwareproject-belowJenkinsSetEnvironmentVariables
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.