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

Skip initial build on first branch indexing is not building for PR open

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • Jenkins Version: 2.222.1
      Basic Branch Build Strategies Plugin Version: 1.3.2
      Bitbucket Version: 6.10.0

      I have Jenkins setup around Bitbucket Branch Source Plugin that links Bitbucket to Jenkins. 

      I wanted to skip building the pipeline upon "Branch Indexing" event. To do that I have selected "Skip initial build on first branch indexing" under Build strategies. 

      This skips the Branch indexing event. But this also skips the PR open event which is unexpected. 

          [JENKINS-62831] Skip initial build on first branch indexing is not building for PR open

          Same issue here. Actually it's all hooks even that are ignored

          [Thu Oct 29 15:57:52 UTC 2020] Received com.cloudbees.jenkins.plugins.bitbucket.hooks.NativeServerPushHookProcessor$HeadEvent CREATED event from **** ⇒ ******/bitbucket-scmsource-hook/notify with timestamp Thu Oct 29 15:57:52 UTC 2020
          Connecting to ***** using ******/****** (***********)
          Repository type: Git
          Looking up *****/********* for branches
          Checking branch **********************
                ‘Jenkinsfile’ found
              Met criteria
          No automatic build triggered for *************
          

          Valentin Delaye added a comment - Same issue here. Actually it's all hooks even that are ignored [Thu Oct 29 15:57:52 UTC 2020] Received com.cloudbees.jenkins.plugins.bitbucket.hooks.NativeServerPushHookProcessor$HeadEvent CREATED event from **** ⇒ ******/bitbucket-scmsource-hook/notify with timestamp Thu Oct 29 15:57:52 UTC 2020 Connecting to ***** using ******/****** (***********) Repository type: Git Looking up *****/********* for branches Checking branch ********************** ‘Jenkinsfile’ found Met criteria No automatic build triggered for *************

          Same issue here! Since we started to use the plugin with GitHub multi-branch pipeline, this issue `no automatic build on PR opening` starts to happen

          Hassan Youssef added a comment - Same issue here! Since we started to use the plugin with GitHub multi-branch pipeline, this issue `no automatic build on PR opening` starts to happen

          Ray Kivisto added a comment -

          I'm also able to reproduce this bug when using GitHub plugin/GitHub Branch Source plugin Multi-branch Pipeline builds.

          My environment I reproduced this in was CloudBees CI on modern cloud platforms 2.289.3.2 which is Based on Jenkins LTS 2.289.3, relevant plugin versions:

          • basic-branch-build-strategies:1.3.2 'Basic Branch Build Strategies Plugin'
          • github:1.33.1 'GitHub plugin'
          • github-branch-source:2.11.2 'GitHub Branch Source Plugin'

          Ray Kivisto added a comment - I'm also able to reproduce this bug when using GitHub plugin/GitHub Branch Source plugin Multi-branch Pipeline builds. My environment I reproduced this in was CloudBees CI on modern cloud platforms 2.289.3.2 which is Based on Jenkins LTS 2.289.3, relevant plugin versions: basic-branch-build-strategies:1.3.2 'Basic Branch Build Strategies Plugin' github:1.33.1 'GitHub plugin' github-branch-source:2.11.2 'GitHub Branch Source Plugin'

          Ray Kivisto added a comment -

          I've also confirmed this issue has existed since the first release of the "Skip initial build on first branch indexing" feature in basic-branch-build-strategies plugin version 1.3.0 (it's not a regression).

          https://github.com/jenkinsci/branch-api-plugin/pull/244 seems like a possible promising solution, to be able to suppress builds triggered via branch indexing.

          Ray Kivisto added a comment - I've also confirmed this issue has existed since the first release of the "Skip initial build on first branch indexing" feature in basic-branch-build-strategies plugin version 1.3.0 (it's not a regression). https://github.com/jenkinsci/branch-api-plugin/pull/244 seems like a possible promising solution, to be able to suppress builds triggered via branch indexing.

            Unassigned Unassigned
            shankar128 Shankar Ramasamy
            Votes:
            2 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated: