Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-7087

As a build manager, I want to be able to build all branches except for master (BranchSpec needs to support exclusion )

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • git-plugin
    • None

      A benefit of git is that we use ad-hoc branches, and the default for the Git plugin is that all branches get built.

      That's great, but we'd really like to be able to extract 'master' from the build, and have the ad-hoc branches built as part of another build.

      That means that we need to be able to write a branch spec of master for one (okay... that works), and !master for the other.

      I've looked at BranchSpec, and we don't have the option to use regexp.Pattern expressions because everything is escaped with Pattern.quote(), so it seems the simplest approach would be to have a flag to invert the pattern, e.g. !

            ndeloof Nicolas De Loof
            nealeu nealeu
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: