How can I read build.xml parameters into Jenkins ?

1.4k Views Asked by At

I am having some information in build.xml file which I would like to access in Jenkins email plugin,to be able to send that parameter. How can I access the parameter in Jenkins ?

1

There are 1 best solutions below

2
On

I would recommend to use the Inject Env plugin.

Instead of reading the build.xml file, move your properties in a dedicated file (build.properties for example).

Next, this plugin can inject variables in your job using the build.properties file.