I am looking for a method to automatically create a set of jenkins jobs (typically after new (git) branches have been created). I have tried this plugin for maven:
http://evgeny-goldin.com/wiki/Maven-jenkins-plugin
and it works fine + its pretty cool to manage all jenkins jobs from a single pom.xml file where names, branch ids etc can be parameterized (eg. through properties)!
The only downside is that I have not figured out how to remove the jobs again but its should be easy to throw in a cleanup script.
Are there better approaches out there to auto-generate jenkins jobs? Eg. using the jenkins api directly from a build script (pom.xml, build.gradle, etc).
Other approaches I am looking into:
http://entagen.github.com/jenkins-build-per-branch/
http://amokti.me/2011/10/11/automatic-opt-in-branch-building-with-jenkins-and-git-2/