Maybe the grooxyaxis plugin can help you? https://wiki.jenkins-ci.org/display/JENKINS/GroovyAxis
Emanuele Zattin --------------------------------------------------- -I don't have to know an answer. I don't feel frightened by not knowing things; by being lost in a mysterious universe without any purpose — which is the way it really is, as far as I can tell, possibly. It doesn't frighten me.- Richard Feynman On Tue, Nov 11, 2014 at 11:54 AM, AndyB <[email protected]> wrote: > Hi, > > I have a question about how to create a matrix axis the behaves like a > build parameter. > > I have a custom build parameter which presents the user with a list of > options to choose from and implements functionality based on the choice at > runtime by overriding createBuildWrapper(). This works well as overriding > setUp() from BuildWrapper gives me all the information I need to actually > implement the parameter functionality (which is dependent of the node that > the job is running on) and finally results in calls to addAction() with an > class derived from EnvironmentContributingAction(). All that's working > nicely. > > As a next step I'd like to provide the same functionality as a matrix axis > (basically make the axis look like a parameter so I can iterate over all > the values), however it's not clear how I can add a buildWrapper to the > matrix axis builds. I can add a simple build variable using > addBuildVariable(), but I need the BuildWrapper to perform some node > specific initialisation (setup paths based on install path on a specific > node). Can anyone give any pointers about how to go about implementing > this? > > Thanks in advance, > Andy > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
