I have submitted a pull request to extend the functionality of LocalBranch to make it easier to configure a job that can be used to build any branch (via notifyCommit) and also perform maven builds on any branch using a combination of Git Parameter plugin, and LocalBranch extension (https://github.com/jenkinsci/git-plugin/pull/381)
The main issue is that the maven release plugin requires that the local branch name is the same as the remote branch. As described here ( https://maven.apache.org/scm/git.html) the maven release plugin will perform a push as git push pushUrl currentBranch:currentBranch Hence, if we are doing a release build on origin/master, then the local branch needs to be master. The new feature is triggered when LocalBranch is set to "**" or null (empty string). The "**" is consistent with other "any branch" place holders throughout the existing git-plugin. -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/35afc9d7-f285-4299-b652-2f4bf5e41617%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
