How to access build parameters in pre-setup script of editable email notification plugin?

21 views
Skip to first unread message

Romu

unread,
May 13, 2013, 2:54:06 AM5/13/13
to jenkins...@googlegroups.com
Hi List,

In pre-setup script of editable email notification plugin, the build parameters are not available as environment variables as they are with build scripts.  Is there another way to access them?

Thanks
Romu

Slide

unread,
May 13, 2013, 7:14:47 AM5/13/13
to jenkins...@googlegroups.com
Someone else just asked the same thing a few days ago, you can access the environment via the build instance. build.getEnvironment(). Take a look at the javadoc for AbstractBuild and you'll see what you can access.

Also, it's a 'pre-send' script, not pre-setup.

slide


Romu

--
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.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Website: http://earl-of-code.com
Reply all
Reply to author
Forward
0 new messages