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

Multibranch pipeline (re)creation intelligence

    XMLWordPrintable

Details

    • branch-api-2.3.0 and basic-branch-build-strategies-1.3.0

    Description

      When a multibranch pipeline is created or recreated, it instantly pulls in all the branches at once and starts initial builds on them.

      Could we have a way to limit the number of builds which happen right at branch creation? Something user configurable would be great.

      Attachments

        Issue Links

          Activity

            drdamour chirs damour added a comment -

            i think this change might have caused a bug. after upgrading our jobs aren't running any more at all.

            drdamour chirs damour added a comment - i think this change might have caused a bug. after upgrading our jobs aren't running any more at all.
            drdamour chirs damour added a comment -
            SCMEventListener.onSCMHeadEvent(SCMHeadEvent) jenkins.branch.MultiBranchProject$SCMEventListenerImpl@1cf8cddc propagated an exception
            java.lang.AbstractMethodError: jenkins.branch.BranchBuildStrategy.isAutomaticBuild(Ljenkins/scm/api/SCMSource;Ljenkins/scm/api/SCMHead;Ljenkins/scm/api/SCMRevision;Ljenkins/scm/api/SCMRevision;Lhudson/model/TaskListener;)Z
            	at jenkins.branch.buildstrategies.basic.AllBranchBuildStrategyImpl.isAutomaticBuild(AllBranchBuildStrategyImpl.java:77)
            	at jenkins.branch.BranchBuildStrategy.automaticBuild(BranchBuildStrategy.java:190)
            	at jenkins.branch.MultiBranchProject.isAutomaticBuild(MultiBranchProject.java:2231)
            	at jenkins.branch.MultiBranchProject.access$1200(MultiBranchProject.java:125)
            	at jenkins.branch.MultiBranchProject$SCMHeadObserverImpl.observe(MultiBranchProject.java:2076)
            	at jenkins.scm.api.SCMHeadObserver$Wrapped.observe(SCMHeadObserver.java:638)
            	at jenkins.scm.api.SCMHeadEvent$Validated.observe(SCMHeadEvent.java:295)
            	at jenkins.scm.api.trait.SCMSourceRequest.process(SCMSourceRequest.java:357)
            	at jenkins.scm.api.trait.SCMSourceRequest.process(SCMSourceRequest.java:249)
            	at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.retrieve(GitHubSCMSource.java:917)
            	at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:373)
            	at jenkins.scm.api.SCMSource.fetch(SCMSource.java:327)
            	at jenkins.branch.MultiBranchProject$SCMEventListenerImpl.processHeadUpdate(MultiBranchProject.java:1576)
            	at jenkins.branch.MultiBranchProject$SCMEventListenerImpl.onSCMHeadEvent(MultiBranchProject.java:1177)
            	at jenkins.scm.api.SCMHeadEvent$DispatcherImpl.fire(SCMHeadEvent.java:246)
            	at jenkins.scm.api.SCMHeadEvent$DispatcherImpl.fire(SCMHeadEvent.java:229)
            	at jenkins.scm.api.SCMEvent$Dispatcher.run(SCMEvent.java:479)
            	at jenkins.security.ImpersonatingScheduledExecutorService$1.run(ImpersonatingScheduledExecutorService.java:58)
            	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
            	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
            	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
            	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
            	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
            	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
            	at java.lang.Thread.run(Thread.java:745)
            
            drdamour chirs damour added a comment - SCMEventListener.onSCMHeadEvent(SCMHeadEvent) jenkins.branch.MultiBranchProject$SCMEventListenerImpl@1cf8cddc propagated an exception java.lang.AbstractMethodError: jenkins.branch.BranchBuildStrategy.isAutomaticBuild(Ljenkins/scm/api/SCMSource;Ljenkins/scm/api/SCMHead;Ljenkins/scm/api/SCMRevision;Ljenkins/scm/api/SCMRevision;Lhudson/model/TaskListener;)Z at jenkins.branch.buildstrategies.basic.AllBranchBuildStrategyImpl.isAutomaticBuild(AllBranchBuildStrategyImpl.java:77) at jenkins.branch.BranchBuildStrategy.automaticBuild(BranchBuildStrategy.java:190) at jenkins.branch.MultiBranchProject.isAutomaticBuild(MultiBranchProject.java:2231) at jenkins.branch.MultiBranchProject.access$1200(MultiBranchProject.java:125) at jenkins.branch.MultiBranchProject$SCMHeadObserverImpl.observe(MultiBranchProject.java:2076) at jenkins.scm.api.SCMHeadObserver$Wrapped.observe(SCMHeadObserver.java:638) at jenkins.scm.api.SCMHeadEvent$Validated.observe(SCMHeadEvent.java:295) at jenkins.scm.api.trait.SCMSourceRequest.process(SCMSourceRequest.java:357) at jenkins.scm.api.trait.SCMSourceRequest.process(SCMSourceRequest.java:249) at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.retrieve(GitHubSCMSource.java:917) at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:373) at jenkins.scm.api.SCMSource.fetch(SCMSource.java:327) at jenkins.branch.MultiBranchProject$SCMEventListenerImpl.processHeadUpdate(MultiBranchProject.java:1576) at jenkins.branch.MultiBranchProject$SCMEventListenerImpl.onSCMHeadEvent(MultiBranchProject.java:1177) at jenkins.scm.api.SCMHeadEvent$DispatcherImpl.fire(SCMHeadEvent.java:246) at jenkins.scm.api.SCMHeadEvent$DispatcherImpl.fire(SCMHeadEvent.java:229) at jenkins.scm.api.SCMEvent$Dispatcher.run(SCMEvent.java:479) at jenkins.security.ImpersonatingScheduledExecutorService$1.run(ImpersonatingScheduledExecutorService.java:58) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang. Thread .run( Thread .java:745)
            drdamour chirs damour added a comment -

            yeah this change wasn't done in a backwards compatible way for the any/all/none strategies https://github.com/jenkinsci/basic-branch-build-strategies-plugin/pull/4/files#r274398090

            drdamour chirs damour added a comment - yeah this change wasn't done in a backwards compatible way for the any/all/none strategies  https://github.com/jenkinsci/basic-branch-build-strategies-plugin/pull/4/files#r274398090

            drdamour can you file an issue the AbstractMethodError and assign to  fbelzunc as this is another fire he needs to put out

            stephenconnolly Stephen Connolly added a comment - drdamour can you file an issue the AbstractMethodError and assign to   fbelzunc as this is another fire he needs to put out
            drdamour chirs damour added a comment - JENKINS-56984

            People

              fbelzunc Félix Belzunce Arcos
              ataylor Alex Taylor
              Votes:
              2 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: