I would like to put some our own variables into jenkins job build
environment variables during build execution. how could I do it? how
to access the jenkins object model?
Saying, I have a job named A, and we run a java application as its
step, in the java application, I need to put some own variables into
the build environment variables during build execution, these
variables might be transferred
to downstream jobs by existing plugin.
So, how to add variables into build env variables?
what`s the extension points for that?
I found BuildVariableContributor, might be it is the extension point to add my variables into build env, but when and how would it be triggered? since I need to trigger adding variables from my java application, how to do it? is it possible to get the handle of running build of given name job?
Thanks for any clues.
Thanks
Regards,
Grrison