Messy indeed. :) Well, with luck I stumbled across this. https://themettlemonkey.wordpress.com/2014/10/03/programmatically-set-jenkins-build-variables/ And a bit of digging was able to utilize the EnvInject's plugin EnvInjectBuilderContributionAction.
That left me with a more flexible and sane way to deal with this as a groovy script. import hudson.model.* import org.jenkinsci.plugins.envinject.EnvInjectBuilderContributionAction def params = [ 'SomeName' : 'SomeValue' ] build.addAction(new EnvInjectBuilderContributionAction(params )) Cheers. On Wednesday, May 25, 2016 at 4:11:09 PM UTC+1, Eric Pyle wrote: > > IIRC, you can save the parameter value into a file (e.g. echo > MYPARAM=$MYPARAM > params.txt), and EnvInject can read it from there. Not > pretty, but should work. > > Eric > > > > > > <http://www.cd-adapco.com> > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/21863dc3-1358-4c7a-8cd9-0e90a163c210%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
