Auto generate/remove jenkins jobs

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:

  • How can I use `git tag --list` with information from `git log --tags`
  • git submodule update fails with error on one machine but works on another machine
  • using ldirectord for load balancing GIT servers
  • Ignoring a particular file pattern in git
  • Cgit master branch not available
  • Github: Pushing to pull requests
  • 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:

  • hudson CI: how to delete all jobs?
  • Git error in Windows 7: git did not exit cleanly (exit code 128)
  • git2svn unable to create symlink (File name too long)
  • can I run `git describe` in a heroku app's environment.rb?
  • Why does git produce a merge conflict when when lines next to each other are changed?
  • How to add git file status to vim's statusline?
  • One Solution collect form web for “Auto generate/remove jenkins jobs”

    An alternative approach is to introduce Gerrit into the workflow. Patchsets submitted for review are implemented within Gerrit as branches.There is a Jenkins plugin which can automatically build and test these review requests, a very handy feature, which I think would fulfil you needs.

    Gerrit is used by several large open source projects:

    • Openstack
    • Eclipse
    • Clound foundry
    Git Baby is a git and github fan, let's start git clone.