entagen/jenkins-build-per-branch — pull request #14 by beckje01 (2012-06-25 22:36:08+00:00)
Title: Updating to use the jenkins copy api.

Some Jenkins plugins do not keep their config in the config.xml meaning they can't be updated via the API, one example is the promoted builds plugin. There is an internal job copy that will trigger a call to those type of plugins.

I changed the cloneJobForBranch to call the copy method in the jenkins api and then update the config.xml of the copy.

The only draw back to this approach is any job name updates that are not in the config.xml will not be done and I don't know that there is a way to fix that issue.