skip initial build of the first index does not work as expected

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      Issues

      "skip initial build of the first index does not work as expected" option, and as a result, branches launch their first build.

      Steps to reproduce

      1.- Create a GitHub User and Pass (API token) credentials
      2.- Create Multibranch job
      3.- Select SCM type Git (tested with https://github.com/mock-carlosrodlop-org/my-hw-maven-app)
      4.- Add "skip initial build of the first index does not work as expected" option
      5.- Save The project

      Expected output

      The job only scans the branches

      Observed output

      The job scans the branches and triggers the first build

      Oct 14, 2019 12:13:06 PM jenkins.branch.MultiBranchProject$BranchIndexing run
      INFO: multi_test #20191014.121245 branch indexing action completed: SUCCESS in 21 sec
      Oct 14, 2019 12:13:18 PM io.jenkins.blueocean.autofavorite.FavoritingScmListener onCheckout
      INFO: Automatically favorited multi_test/pipelineWH for it.carlosrodlop
      Oct 14, 2019 12:13:18 PM io.jenkins.blueocean.autofavorite.FavoritingScmListener onCheckout
      INFO: Automatically favorited multi_test/feat-1 for it.carlosrodlop
      Oct 14, 2019 12:13:18 PM org.jenkinsci.plugins.workflow.job.WorkflowRun finish
      INFO: multi_test/feat-1 #1 completed: SUCCESS
      Oct 14, 2019 12:13:18 PM org.jenkinsci.plugins.workflow.job.WorkflowRun finish
      INFO: multi_test/pipelineWH #1 completed: SUCCESS
      Oct 14, 2019 12:13:19 PM org.jenkinsci.plugins.workflow.job.WorkflowRun finish
      INFO: multi_test/t73576 #1 completed: FAILURE
      Oct 14, 2019 12:13:20 PM io.jenkins.blueocean.autofavorite.FavoritingScmListener onCheckout
      INFO: Automatically favorited multi_test/pipelineWH_v2 for it.carlosrodlop
      Oct 14, 2019 12:13:20 PM org.jenkinsci.plugins.workflow.job.WorkflowRun finish
      INFO: multi_test/pipelineWH_v2 #1 completed: SUCCESS
      Oct 14, 2019 12:13:20 PM io.jenkins.blueocean.autofavorite.FavoritingScmListener onCheckout
      INFO: Automatically favorited multi_test/master for it.carlosrodlop
      Oct 14, 2019 12:13:20 PM org.jenkinsci.plugins.workflow.job.WorkflowRun finish
      INFO: multi_test/master #1 completed: SUCCESS
      Oct 14, 2019 12:13:21 PM io.jenkins.blueocean.autofavorite.FavoritingScmListener onCheckout
      INFO: Automatically favorited multi_test/t61767 for it.carlosrodlop
      Oct 14, 2019 12:13:22 PM io.jenkins.blueocean.autofavorite.FavoritingScmListener onCheckout
      INFO: Automatically favorited multi_test/release%2Frealease_2 for it.carlosrodlop
      Oct 14, 2019 12:13:22 PM io.jenkins.blueocean.autofavorite.FavoritingScmListener onCheckout
      INFO: Automatically favorited multi_test/release%2Frealease_1 for it.carlosrodlop
      Oct 14, 2019 12:13:22 PM org.jenkinsci.plugins.workflow.job.WorkflowRun finish
      INFO: multi_test/release%2Frealease_2 #1 completed: SUCCESS
      Oct 14, 2019 12:13:22 PM org.jenkinsci.plugins.workflow.job.WorkflowRun finish
      INFO: multi_test/release%2Frealease_1 #1 completed: SUCCESS
      Oct 14, 2019 12:13:29 PM io.jenkins.blueocean.autofavorite.FavoritingScmListener onCheckout
      SEVERE: Unexpected error when retrieving changeset
      hudson.plugins.git.GitException: Error: git whatchanged --no-abbrev -M "--format=commit %H%ntree %T%nparent %P%nauthor %aN <%aE> %ai%ncommitter %cN <%cE> %ci%n%n%w(76,4,4)%s%n%n%b" -n 1 e2aeecfe42c36726a4ee6fef6748f56a46728260 in /home/carlosrodlop/Support/cases/174047/009-cloudbees-support_core-mm-jenkins.example.com_master_2019-10-11_09.59.31/jenkins-home/workspace/multi_test_t61767
      	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$6.execute(CliGitAPIImpl.java:1074)
      	at io.jenkins.blueocean.autofavorite.FavoritingScmListener.getChangeSet(FavoritingScmListener.java:159)
      	at io.jenkins.blueocean.autofavorite.FavoritingScmListener.onCheckout(FavoritingScmListener.java:84)
      	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:140)
      	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:93)
      	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:80)
      	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      
      GOT CONTEXT FOR checkout
      Oct 14, 2019 12:13:30 PM io.jenkins.blueocean.autofavorite.FavoritingScmListener onCheckout
      SEVERE: Unexpected error when retrieving changeset
      hudson.plugins.git.GitException: Error: git whatchanged --no-abbrev -M "--format=commit %H%ntree %T%nparent %P%nauthor %aN <%aE> %ai%ncommitter %cN <%cE> %ci%n%n%w(76,4,4)%s%n%n%b" -n 1 e2aeecfe42c36726a4ee6fef6748f56a46728260 in /home/carlosrodlop/Support/cases/174047/009-cloudbees-support_core-mm-jenkins.example.com_master_2019-10-11_09.59.31/jenkins-home/workspace/multi_test_t61767
      	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$6.execute(CliGitAPIImpl.java:1074)
      	at io.jenkins.blueocean.autofavorite.FavoritingScmListener.getChangeSet(FavoritingScmListener.java:159)
      	at io.jenkins.blueocean.autofavorite.FavoritingScmListener.onCheckout(FavoritingScmListener.java:84)
      	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:140)
      	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:93)
      	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:80)
      	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      
      GOT CONTEXT FOR test
      Oct 14, 2019 12:13:30 PM org.jenkinsci.plugins.workflow.job.WorkflowRun finish
      INFO: multi_test/t61767 #1 completed: SUCCESS
      

            Assignee:
            Unassigned
            Reporter:
            Carlos Rodríguez López
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: