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

Multibranch branch is built twice, from branch indexing and scm change

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I've got a subversion-based pipeline multibranch project.

      Multibranch has a periodic trigger for branch indexing, otherwise it would never scan new branches: once every two minutes.

       

      Often, two builds are scheduled for the same branch-job simultaneously: 

      • Once due to "branch indexing"
      • Once due to "scm change"

      Usually, the SCM triggered one runs a bit later, and will not have any changes listed, because the previous run (due to branch indexing) has already updates all SVN checkouts, naturally.

       

      This problem doubles my build-time.

       

      Expected behavior: Run the job only once

       

      Below, please find the logs for the second run, triggered by "SCM change"

      Polling log that triggered SCM change:

       

      Started on 05.05.2017 00:09:02
      Received SCM poll call on master for compile-java on 05.05.2017 00:09:02
      SVNURL/branches/my-branch is at revision 4'851
      (changed from 4'850)

       

      Build log:

       

      Started by an SCM change
      Opening connection to SVNURL
      Checking out svn SVNURL/branches/my-branch to read Jenkinsfile

      Updating SVNURL/branches/my-branch@4851 at revision 4851
      At revision 4851

      No changes for SVNURL/branches/my-branch since the previous build

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              vqrs Christian V
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: