Want to obtain the Jenkinsfile's name or the path of it.
getProtectionDomain and File classes are restricted.
Have the following structure -pipeline-development --Jenkinsfile-development.groovy -pipeline-test --Jenkinsfile-test.groovy
Would like to get the development and test in the jenkinsfile to set environment variable
One of the ways to get access to your directory is through ${workspace}
More details about workspace here enter link description here . If you share more details I can probably help for the Jenkinsfile.
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.