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

Branch filter does not work if branch does not exists

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • gitlab-plugin
    • Jenkins version: 1.599
      OS: Windows Server 2012
      Java: 1.7.0_25-b17

      For each project in GitLab I have two jobs: one for branch master and the other for branch called develop (even if that branch does not exists because it will in future). I use the branch filter option to chose when to build each job depending on the branch that has recieved the push. I create those jobs using JobDSL plugin so branch name is put directly on XML when the job is created.

      When both branches exist it works fine. But when the branch develop does not exists and a push is made to master, both jobs ( master and develop ) starts to build.

          [JENKINS-27021] Branch filter does not work if branch does not exists

          From the attachment, I guess that you are using the gitlab plugin. If that is the case, I cannot help, as I'm maintaining the gitlab-hook plugin. If I'm true, you should change the affected components and/or the ticket assignment.

          Javier Palacios added a comment - From the attachment, I guess that you are using the gitlab plugin. If that is the case, I cannot help, as I'm maintaining the gitlab-hook plugin. If I'm true, you should change the affected components and/or the ticket assignment.

          Owen Mehegan added a comment -

          This should be fixed in the latest version of the plugin. The branch filter logic was improved in the last few releases. Please reopen if not.

          Owen Mehegan added a comment - This should be fixed in the latest version of the plugin. The branch filter logic was improved in the last few releases. Please reopen if not.

            owenmehegan Owen Mehegan
            carlos Carlos Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: