I want to run a script as Jenkins job. The first step of the script is to access Jenkins home-directory path? Is it possible to access this in a script? Also if I am not running this script from Jenkins but some remote server how can I access the path
It's the same as other users:
cd ~jenkins
For imformation, most of the times (by default) /var/lib/jenkins
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.