Only trigger builds on new branches in Jenkins? Only trigger builds on new branches in Jenkins? jenkins jenkins

Only trigger builds on new branches in Jenkins?


Setting up build with the "This build is parameterized" option enabled with a "branch" string variable works with this:

curl -s "http://jenkins/job/job_name/buildWithParameters?branch=${BRANCH}"

See http://julianhigman.com/blog/2012/02/22/building-github-branches-with-jenkins/ for setting up your job configuration.