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

Branch indexing schedules builds for other branches and repos

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Hello,

      I'm having a problem that seems pretty much identical to this one for the Gitlab Branch Source Plugin: https://github.com/Argelbargel/gitlab-branch-source-plugin/issues/45

      I'm assuming the root issue is very similar, if not identical. On Github webhook triggers a number of branch indexing jobs are kicked off for builds in the current repo, as well as for other repos. I'm using BlueOcean.

      Questions:

      1) Is this a known issue?

      2) Is there a workaround?

      3) As a possible means to come up with a workaround, are there any variables I can latch onto that would give me visibility into the context so in my Jenkinsfile pipeline I can do the following on branch indexing:

      currentBuild.result = 'NOT_BUILT'
      error('Aborting build triggered by scan process')

      This was a suggestion in the above Gitlab thread, only I'm not seeing an equivalent to `gitlabActionType` in the list of environment variables (output with "env"). It would be great if I could ignore builds from branch indexing as a short term workaround without disabling the webhooks entirely.

        Attachments

          Activity

          Hide
          joeauty Joe Auty added a comment -

          In addition, this might be a totally separate issue, but in BlueOcean's "Changes" tab I'm seeing commits from other repos. If this is worth filing as a separate ticket please let me know and I'll do so. Happy to provide as much detail as is useful with these issues.

          Show
          joeauty Joe Auty added a comment - In addition, this might be a totally separate issue, but in BlueOcean's "Changes" tab I'm seeing commits from other repos. If this is worth filing as a separate ticket please let me know and I'll do so. Happy to provide as much detail as is useful with these issues.
          Hide
          stephenconnolly Stephen Connolly added a comment -

          Sounds like you want to configure the Branch Build Strategies (and possibly install some of the branch build strategy plugins)

          Show
          stephenconnolly Stephen Connolly added a comment - Sounds like you want to configure the Branch Build Strategies (and possibly install some of the branch build strategy plugins)

            People

            • Assignee:
              lanwen Kirill Merkushev
              Reporter:
              joeauty Joe Auty
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: