pipeline scm checkout is happening on master node as well as slave node

74 views
Skip to first unread message

taroc...@gmail.com

unread,
Dec 14, 2016, 4:43:41 PM12/14/16
to Jenkins Users
I configured my Jenkins pipeline job to read my pipeline script from SCM. In my pipeline I do an scm checkout on a slave node. As a result, I have code checked out both on the master node and the slave node, and whenever the Jenkins job is run, it actually reads the pipeline script on the master node, not the slave node. I've just encountered an odd case where the pipeline code on the master was out-of-sync with the latest  SCM changes (even though my check-out strategy says to get the latest as much as possible), while the slave had the latest changes but wasn't being used.

Maybe this is by design, but what I would really like is an option in the pipeline configuration to checkout the pipeline only on the slave node.
Reply all
Reply to author
Forward
0 new messages