[JIRA] (JENKINS-57588) Branch API 2.5.0 rebuilds all jobs in my multibranch folder

7 views
Skip to first unread message

mark.earl.waite@gmail.com (JIRA)

unread,
May 21, 2019, 4:01:02 PM5/21/19
to jenkinsc...@googlegroups.com
Mark Waite created an issue
 
Jenkins / Task JENKINS-57588
Branch API 2.5.0 rebuilds all jobs in my multibranch folder
Issue Type: Task Task
Assignee: Unassigned
Components: branch-api-plugin
Created: 2019-05-21 20:00
Environment: Jenkins 1.76 (selected for next LTS baseline)
Git plugin 3.10.0
Git client plugin 2.7.7
Branch API plugin 2.5.0
Priority: Critical Critical
Reporter: Mark Waite

I updated to branch API plugin 2.5.0 today. When I scan a multibranch Pipeline (Git branch source or GitHub branch source) the first time after the upgrade to branch API plugin 2.5.0, all jobs in that multibranch Pipeline are started. That means (in my case) that I now have more than 500 jobs in the queue waiting to run.

The "Scan repository log" of the multibranch job shows:

Started by user Mark Waite
[Tue May 21 13:37:54 MDT 2019] Starting branch indexing...
13:37:55 Connecting to https://api.github.com using MarkEWaite/****** (github personal access token for home.markwaite.net)
Examining MarkEWaite/jenkins-bugs-private

  Checking branches...

  Getting remote branches...

    Checking branch master

  Getting remote pull requests...
      ‘Jenkinsfile’ found
    Met criteria
Changes detected: master (null → 49101d07a954d083cae4bb0a06aaa081c6ae0fc8)
Scheduled build for branch: master

    Checking branch JENKINS-06203
      ‘Jenkinsfile’ found
    Met criteria
Changes detected: JENKINS-06203 (null → 6de0c64bb4cc6eb12964479bf37f5bb202f52aa4)
Scheduled build for branch: JENKINS-06203

Each repository reports that changes are detected in the transition from null to a SHA-1. However, I know that almost every one of the branches in that repository have received no changes since before the update.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

mark.earl.waite@gmail.com (JIRA)

unread,
May 21, 2019, 4:02:02 PM5/21/19
to jenkinsc...@googlegroups.com
Mark Waite updated an issue
 
Jenkins / Bug JENKINS-57588
Change By: Mark Waite
Environment: Jenkins 1 2 . 76 176 (selected for next LTS baseline)

Git plugin 3.10.0
Git client plugin 2.7.7
Branch API plugin 2.5.0

mark.earl.waite@gmail.com (JIRA)

unread,
May 21, 2019, 4:02:03 PM5/21/19
to jenkinsc...@googlegroups.com

mark.earl.waite@gmail.com (JIRA)

unread,
May 21, 2019, 4:03:01 PM5/21/19
to jenkinsc...@googlegroups.com
Mark Waite updated an issue
Change By: Mark Waite
Environment: Jenkins 2. 176 164.3 ( selected for next latest LTS baseline )

Git plugin 3.10.0
Git client plugin 2.7.7
Branch API plugin 2.5.0


Jenkins 2.176 (selected for next LTS baseline)
Git plugin 4.0.0-beta10 pre-release
Git client plugin 3.0.0-beta10 pre-release
Branch API plugin 2.5.0

mark.earl.waite@gmail.com (JIRA)

unread,
May 21, 2019, 4:05:01 PM5/21/19
to jenkinsc...@googlegroups.com
Mark Waite updated an issue
I updated to branch API plugin 2.5.0 today. When I scan a multibranch Pipeline (Git branch source or GitHub branch source) the first time after the upgrade to branch API plugin 2.5.0, all jobs in that multibranch Pipeline are started.  That means (in my case) that I now have more than 500 jobs in the queue waiting to run.

The "Scan repository log" of the multibranch job shows:

{noformat}

Started by user Mark Waite
[Tue May 21 13:37:54 MDT 2019] Starting branch indexing...
13:37:55 Connecting to https://api.github.com using MarkEWaite/****** (github personal access token for home.markwaite.net)
Examining MarkEWaite/jenkins-bugs-private

  Checking branches...

  Getting remote branches...

    Checking branch master

  Getting remote pull requests...
      ‘Jenkinsfile’ found
    Met criteria
Changes detected: master (null → 49101d07a954d083cae4bb0a06aaa081c6ae0fc8)
Scheduled build for branch: master

    Checking branch JENKINS-06203
      ‘Jenkinsfile’ found
    Met criteria
Changes detected: JENKINS-06203 (null → 6de0c64bb4cc6eb12964479bf37f5bb202f52aa4)
Scheduled build for branch: JENKINS-06203
{noformat}


Each repository reports that changes are detected in the transition from {{null}} to a SHA-1.  However, I know that almost every one of the branches in that repository have received no changes since before the update.


Once the initial scan has completed and the resulting rebuild of all branches is complete, then the "Scan repository log" starts no job and the change detection message says:

{noformat}
No changes detected: master (still at 49101d07a954d083cae4bb0a06aaa081c6ae0fc8)
{noformat}
Reply all
Reply to author
Forward
0 new messages