i want to go home/username/dir1/dir2/myfile
but file have dynamic value of username in Jenkinsfile
Try to use $HOME
environment variable:
cd "$HOME/dir1/dir2/myfile"
https://opensource.com/article/19/8/what-are-environment-variables
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.