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. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/7a4f42be-f9e4-482a-a2ac-543deebf1cfd%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.