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

Add ability to suppress multibranch scan on build

    Details

    • Type: Improvement
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Incomplete
    • Component/s: branch-api-plugin
    • Labels:
      None
    • Environment:
      Jenkins ver. 2.121.1
      Pipeline: Multibranch 2.19
    • Similar Issues:

      Description

      In our setup we have a lot of gerrit jobs configured by multibranch pipeline jobs.

      This works well apart from that for every build from gerrit it will perform a multibranch scan before checking out the Jenkinsfile and doing the build.

      This is ok for a small amount of builds triggered at once but when a large set of changes is pushed at once it can take a while for each of the builds to scan and then start building.

       

      It would be useful if there was a flag on the job to not scan on build and just rely on the option: "Periodically if not otherwise run" to do the scanning.

        Attachments

          Activity

          m_hopkins Matt Hopkins created issue -
          m_hopkins Matt Hopkins made changes -
          Field Original Value New Value
          Component/s gerrit-trigger-plugin [ 15731 ]
          m_hopkins Matt Hopkins made changes -
          Assignee rsandell [ rsandell ]
          abayer Andrew Bayer made changes -
          Component/s branch-api-plugin [ 18621 ]
          Component/s pipeline [ 21692 ]
          Hide
          stephenconnolly Stephen Connolly added a comment -

          Sounds like either the gerrit plugin is not implementing the event api support in scm-api and instead is triggering a full scan. This https://github.com/jenkinsci/scm-api-plugin/blob/master/docs/implementation.adoc#implementing-event-support details how that should be implemente.

          If the gerrit plugin was implementing event support, then only the affected branches would be scanned rather than a full scan.

          There is no requirement to add the feature you request to branch-api, rather the gerrit plugin needs to implement event support.

          Can you please change the component to reflect the gerrit plugin you are using

          Show
          stephenconnolly Stephen Connolly added a comment - Sounds like either the gerrit plugin is not implementing the event api support in scm-api and instead is triggering a full scan. This https://github.com/jenkinsci/scm-api-plugin/blob/master/docs/implementation.adoc#implementing-event-support details how that should be implemente. If the gerrit plugin was implementing event support, then only the affected branches would be scanned rather than a full scan. There is no requirement to add the feature you request to branch-api, rather the gerrit plugin needs to implement event support. Can you please change the component to reflect the gerrit plugin you are using
          Hide
          stephenconnolly Stephen Connolly added a comment -

          Reopen when you know the gerrit plugin that needs to add scm-api event support

          Show
          stephenconnolly Stephen Connolly added a comment - Reopen when you know the gerrit plugin that needs to add scm-api event support
          stephenconnolly Stephen Connolly made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Incomplete [ 4 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              m_hopkins Matt Hopkins
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: