Jochen,
Here are a couple of approaches. They don’t reach the level of “solved” but food for thought:
Generate the xml from scratch every time. Downside is maintaining the domain-specific language, software, and accounting for the changes from one version of Jenkins to the next (as you mentioned with credentials).
Create several Template jobs for each job profile (disabled) in each instance (test, staging, production). Create copy-and-minimally-mutate programs that update only the relevant portions. Downside is similar: maintaining the DSL, the software, and making sure it works with many versions, and also assumes a kind of uniformity in your jobs. Also might be hard to update those already-mutated jobs.
Cheers,
Jesse
--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/732d0cd3-a3de-4ee2-8c59-3fc96d991659%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Dear group,
we want to follow the same rules for Jenkins jobs that our software itself must confirm to: development in test, testing in staging, and the official version in a production environment. Copy and paste will always work, but i'm too lazy to do that for the 200+ jobs. Maybe something more git-ish?
From a first glance, i can see that everything credential related is different in the underlying xml configuration files. So a plain 1:1 copy of a job's external xml representation will not work.
--
--
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/D6077E84-F7D7-40CE-9DEF-5BA58975AD5D%40jameswest.com.
Jobs as code - beautiful. Not to say that yaml doesn't cut it, but being a happy Gradle user the job DSL hits the sweet spot.