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

Please respect build strategy "Skip initial build on first branch indexing"

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • None
    • Gitlab-Branch-Source 1.3.0
      Basic Branch Build Strategies Plugin 1.3.2
      Jenkins 2.195
      OpenJDK 11.0.4
      CentOS 7

      Hi and thank you again for this great plugin!

      We are using the "Basic Branch Build Strategies Plugin" to configure which branches to automatically build on changes. I think this is a core plugin by now, but I am not completely sure about that.

      As you can see from the screenshot attached, there is a build strategy called "Skip initial build on first branch indexing" that is very important for us. We have a whole lot of Branches and Tags and it really hurts the jenkins when all of these clog the build queue when first importing Gitlab projects using your fine plugin.

      Unfortunately it seems like "Gitlab-Branch-Source" plugin doesn't honor the setting "Skip initial build on first branch indexing". Every time the plugin finds a new gitlab project, the build queue immediately fills up with hundreds of branches and tags.

       

          [JENKINS-59444] Please respect build strategy "Skip initial build on first branch indexing"

          Actually, maybe I am doing it wrong. See here: JENKINS-58254

          I will try out the workaround there and will update this issue accordingly.

          Christian Ciach added a comment - Actually, maybe I am doing it wrong. See here: JENKINS-58254 I will try out the workaround there and will update this issue accordingly.

          It was actually a bad configuration. For future readers, please see the corrected configuration attached.

           

          Christian Ciach added a comment - It was actually a bad configuration. For future readers, please see the corrected configuration attached.  

          Thanks christianciach! We had same issue but with Bitbucket source plugin, all strategies were "flat" and the skip initial build was ignored.

          Valentin Delaye added a comment - Thanks christianciach ! We had same issue but with Bitbucket source plugin, all strategies were "flat" and the skip initial build was ignored.

            baymac Parichay Barpanda
            christianciach Christian Ciach
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: