Matrix job: execute a certain build step for only a subset of slaves

26 views
Skip to first unread message

David Aldrich

unread,
Nov 5, 2015, 4:43:51 AM11/5/15
to jenkins...@googlegroups.com

Hi

 

I have a matrix job that builds our C++ project. I use a matrix job so that I can build simultaneously on various Linux distros, with differing versions of the g++ compiler. I have just one axis, which specifies the slaves.

 

One of the build artefacts requires a 3rd party library that is available only on a subset of the slaves.  That artefact gets built by one build step.  How can I disable that build step for certain slaves?

 

Best regards

 

David

 

David Aldrich

unread,
Nov 5, 2015, 9:14:56 AM11/5/15
to jenkins...@googlegroups.com

To re-phrase my question:

 

Using the Conditional Build Step Plugin, how would I specify a condition that checks whether the job is running on a specific slave?

 

Best regards

 

David

Click here to report this email as spam.

--
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-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/41302A7145AC054FA7A96CFD03835A0A0B9FB230%40EX10MBX02.EU.NEC.COM.
For more options, visit https://groups.google.com/d/optout.

Eric Pyle

unread,
Nov 5, 2015, 1:48:36 PM11/5/15
to jenkins...@googlegroups.com
You should be able to use the variable $NODE_NAME in the condition for a build step. From https://wiki.jenkins-ci.org/display/JENKINS/Building+a+software+project.
Reply all
Reply to author
Forward
0 new messages