[JIRA] (JENKINS-59774) skip initial build of the first index does not work as expected

8 views
Skip to first unread message

it.carlosrodlop@gmail.com (JIRA)

unread,
Oct 14, 2019, 6:42:03 AM10/14/19
to jenkinsc...@googlegroups.com
Carlos Rodríguez López created an issue
 
Jenkins / Bug JENKINS-59774
skip initial build of the first index does not work as expected
Issue Type: Bug Bug
Assignee: Unassigned
Components: basic-branch-build-strategies-plugin
Created: 2019-10-14 10:41
Environment: Jenkins 2.176.4
basic-branch-build-strategies:1.3.2
Priority: Major Major
Reporter: Carlos Rodríguez López

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.platform.wtrecom.com_frontend-team-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.platform.wtrecom.com_frontend-team-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
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

it.carlosrodlop@gmail.com (JIRA)

unread,
Oct 15, 2019, 5:05:05 AM10/15/19
to jenkinsc...@googlegroups.com
Carlos Rodríguez López updated an issue
Change By: Carlos Rodríguez López
h3. Issues


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

h3. 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

h5. Expected output


The job only scans the branches

h5. Observed output


The job scans the branches and triggers the first build

{code:java}
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. platform example . wtrecom.com_frontend com_master_2019 - team-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. platform example . wtrecom.com_frontend com_master_2019 - team-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
{code}




Reply all
Reply to author
Forward
0 new messages