[JIRA] (JENKINS-36655) Pull request build stuck on not existent commit

2 views
Skip to first unread message

info@giorgiosironi.com (JIRA)

unread,
Jul 13, 2016, 6:25:02 AM7/13/16
to jenkinsc...@googlegroups.com
Giorgio Sironi created an issue
 
Jenkins / Bug JENKINS-36655
Pull request build stuck on not existent commit
Issue Type: Bug Bug
Assignee: Kohsuke Kawaguchi
Components: github-organization-folder-plugin, workflow-multibranch-plugin
Created: 2016/Jul/13 10:24 AM
Environment: Taken from /systemInfo:
git 2.5.0 true false
git-client 1.19.6 true false
git-server 1.6 true false
github 1.19.2 true false
github-api 1.75 true false
github-branch-source 1.7 true false
github-oauth 0.24 true false
github-organization-folder 1.3
workflow-aggregator 2.2 true false
workflow-api 2.1 true false
workflow-basic-steps 2.0 true false
workflow-cps 2.8 true false
workflow-cps-global-lib 2.0 true false
workflow-durable-task-step 2.3 true false
workflow-job 2.3 true false
workflow-multibranch 2.8 true false
workflow-scm-step 2.1 true false
workflow-step-api 2.2 true false
workflow-support 2.1 true false
Priority: Minor Minor
Reporter: Giorgio Sironi

Some commits were added to a pull request which was building, bringing it from a diff of 2 commits to 5 commits on top of master.
The build of the pull request by the Organization Folder plugin was made over the commit resulting from the merge of the 2nd commit onto master.
After this commit was garbage-collected by Github (it's not in the repository anymore), the build failed:

Started by user Giorgio Sironi
Connecting to https://api.github.com using elife-alfred-user/****** (Access to Github as elife-alfred-user. Used e.g. for listing branches in Organization folder)
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from 2 remote Git repositories
 > git config remote.origin.url https://github.com/elifesciences/pattern-library.git # timeout=10
Fetching upstream changes from https://github.com/elifesciences/pattern-library.git
 > git --version # timeout=10
using .gitcredentials to set credentials
 > git config --local credential.username elife-alfred-user # timeout=10
 > git config --local credential.helper store --file=/tmp/git4178245349311672378.credentials # timeout=10
 > git -c core.askpass=true fetch --tags --progress https://github.com/elifesciences/pattern-library.git +refs/heads/*:refs/remotes/origin/*
 > git config --local --remove-section credential # timeout=10
 > git config remote.origin1.url https://github.com/elifesciences/pattern-library.git # timeout=10
Fetching upstream changes from https://github.com/elifesciences/pattern-library.git
using .gitcredentials to set credentials
 > git config --local credential.username elife-alfred-user # timeout=10
 > git config --local credential.helper store --file=/tmp/git1174167449186412605.credentials # timeout=10
 > git -c core.askpass=true fetch --tags --progress https://github.com/elifesciences/pattern-library.git +refs/pull/*/merge:refs/remotes/origin/pr/*
 > git config --local --remove-section credential # timeout=10
Checking out Revision e82306057bb9fe98e714b854965cc348e8e2f2af (PR-270)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f e82306057bb9fe98e714b854965cc348e8e2f2af

GitHub has been notified of this commit’s build result

hudson.plugins.git.GitException: Could not checkout e82306057bb9fe98e714b854965cc348e8e2f2af
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$9.execute(CliGitAPIImpl.java:1992)
	at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1117)
	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:109)
	at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:108)
	at org.jenkinsci.plugins.workflow.multibranch.SCMBinder.create(SCMBinder.java:85)
	at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:206)
	at hudson.model.ResourceController.execute(ResourceController.java:98)
	at hudson.model.Executor.run(Executor.java:404)
Caused by: hudson.plugins.git.GitException: Command "git checkout -f e82306057bb9fe98e714b854965cc348e8e2f2af" returned status code 128:
stdout: 
stderr: fatal: reference is not a tree: e82306057bb9fe98e714b854965cc348e8e2f2af

	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1719)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:63)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$9.execute(CliGitAPIImpl.java:1984)
	... 7 more
Finished: FAILURE

This is fine: it can't build not existent code. The strange thing was that no matter how I re-index the branches, and delete the related workspaces, still every build triggered by pressing Build Now on this PR will be stuck on this commit. Where this information is stored and how can I reset it?

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

info@giorgiosironi.com (JIRA)

unread,
Jul 13, 2016, 6:30:01 AM7/13/16
to jenkinsc...@googlegroups.com

jglick@cloudbees.com (JIRA)

unread,
Jul 28, 2016, 12:43:01 PM7/28/16
to jenkinsc...@googlegroups.com
Jesse Glick resolved as Duplicate
 

So try 1.8.

Change By: Jesse Glick
Status: Open Resolved
Resolution: Duplicate
Reply all
Reply to author
Forward
0 new messages