I have about 20 jobs using common parameters (user, password), and sometimes the password expires... So I have to change it on all jobs, which is really time consuming (and error prone, I may forget one).
I thought about:
- using a kind of magic property file if that exists to have directly lines like KEY, VALUE added into job parameters
- adding the same kind of KEY, VALUE pair directly inside
build.xml
, but where ? And it's really ugly... Maybe with a dedicated XML embedded into thebuild.xml
? - calling a slave job that would (how ?) push up to the parent one the desired values...
As you can see I'm only starting in Hudson/Jenkins (I'm using Jenkins 1.424.2.2), thanks for your help !
EDIT: I'm not admin of the Jenkins instance, so I cannot have access to global properties...