Good morning,
I'm creating a small pipeline script that has multiple stages on the node to be executed:
But Jenkins executes the actions on master node instead of slave. Although it sends me a mixed message in output:
22:17:46 Running on sles12-slave2 in /jenkins/workspace/software/master <--------- This seems correct
[Pipeline] {
[Pipeline] stage
[Pipeline] { (checkout)
[Pipeline] git
22:17:46 > git config remote.origin.url https://github.com/acme/makefiles.git # timeout=10 <--------- But checkouts happen on master node
22:17:46 Fetching upstream changes from https://github.com/acme/makefiles.git
......Checks out the particular revision.........
[Pipeline] git
22:17:46 > git config remote.origin.url https://github.com/acme/software.git # timeout=10
22:17:47 Fetching upstream changes from https://github.com/acme/software.git
......Checks out the particular revision.........
22:17:47 First time build. Skipping changelog.
[Pipeline] sh
22:17:47 [master] Running shell script
22:17:47 + hostname
22:17:47 + echo `hostname`
22:17:47 jenkins-master <------------- This is master node
[Pipeline] }
Please advise what am I doing wrong here and how can I make Jenkins to execute my git checkouts and shell commands on the node labeled sles12 instead of master.
Thanks!