how can I prevent Jenkins from building the master branch?

fer Source

I couldn't get the proper config to ignore the master branch in a Jenkins build project. It's always looking for branches in repository origin/master.

Please find below what I tried so far from SCM without luck:

  1. add the strategy inverse behavior for master branch
  2. add the regex :^(?!.*master).*$ to the branch specifier
  3. add the refspec +refs/heads/feature/*:refs/remotes/origin/feature/*

Any idea or workaround that helps on this would be appreciated.

this is my setup: Jenkins ver 2.46.1 on Ubuntu 16.04 + Freestyle project

I'm sure this is something quite simple I'm just missing.



comments powered by Disqus