Or have your builder add an action that implements EnviromentContributingAction [1] to the build, normally extending from InvisibleAction [2] via build.getActions().add(<yourAction>);
Chris [1] http://javadoc.jenkins-ci.org/hudson/model/EnvironmentContributingAction.html [2] http://javadoc.jenkins-ci.org/hudson/model/InvisibleAction.html On Wednesday, 27 February 2013 14:34:24 UTC, slide wrote: > > Does [1] help at all? > > > slide > > 1 - https://wiki.jenkins-ci.org/display/JENKINS/EnvInject+Plugin > > > On Wed, Feb 27, 2013 at 7:30 AM, PhilipLB <[email protected]<javascript:> > > wrote: > >> This was too optimistic: >> build.getEnvironment(listener).put("FOO", "BAR"); >> >> In a later buildstep, the "FOO" env var is still null. >> >> >> On Wednesday, February 27, 2013 3:00:47 PM UTC+1, PhilipLB wrote: >>> >>> Hi, >>> >>> I'd like to set an environment variable from within the execution of my >>> Builder (in my plugin). How do I do this? SCM plugins have their >>> buildEnvVars-method (or similar), but the Builder doesn't... >>> Any help would be greatly appreciated! >>> >>> Best regards, >>> Philip >>> >> -- >> 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] <javascript:>. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > > > -- > Website: http://earl-of-code.com > -- 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/groups/opt_out.
