Jenkins multibranch pipeline always performs checkout on master node. In my case I want to make my build on another node. My script in Jenkinsfile looks like this:
node('osx') {
...
}
I'm forced to checkout env.BRANCH
on my node myself again to perform a build. It will be much better to perform pipeline build on selected node from the beginning, but I can not find how to do it.
Do you have checkout scm
in your Jenkinsfile on the branch?
Like so:
node('osx') {
checkout scm
...
}
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.