Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ghprb fails to build after forced push to branch of a PR #418

Closed
feliperoos opened this issue Sep 23, 2016 · 1 comment
Closed

ghprb fails to build after forced push to branch of a PR #418

feliperoos opened this issue Sep 23, 2016 · 1 comment

Comments

@feliperoos
Copy link

Hi,

I've rebase master into a branch and ended up having to force push the branch to get the update going. The PR on github for that branch was ok with that, but ghprb failed to build after I've done it. I've tried to close the PR and create a new one from the branch, still have the same error.

Thanks in advange for any support on this.

GitHub pull request #122 of commit d18bd52eef5157cad8a8fcd0cef8127b5a95ad64, no merge conflicts.
Setting status of d18bd52eef5157cad8a8fcd0cef8127b5a95ad64 to PENDING with url /397/ and message: 'Build started sha1 is merged.'
Building on master in workspace /data/jenkins/jenkins/jobs//workspace

git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
git config remote.origin.url [email protected] # timeout=10
Fetching upstream changes from [email protected]
git --version # timeout=10
git fetch --tags --progress [email protected] +refs/pull/:refs/remotes/origin/pr/
git rev-parse refs/remotes/origin/pr/122/merge^{commit} # timeout=10
git rev-parse refs/remotes/origin/origin/pr/122/merge^{commit} # timeout=10
Merging Revision d3b22ee42ef3535da5e92cda7721e4e1c7a79acf (refs/remotes/origin/pr/122/merge) to origin/master, UserMergeOptions{mergeRemote='origin', mergeTarget='master', mergeStrategy='default', fastForwardMode='--ff'}
git rev-parse origin/master^{commit} # timeout=10
FATAL: Command "git rev-parse origin/master^{commit}" returned status code 128:
stdout: origin/master^{commit}

stderr: fatal: ambiguous argument 'origin/master^{commit}': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git [...] -- [...]'

hudson.plugins.git.GitException: Command "git rev-parse origin/master^{commit}" returned status code 128:
stdout: origin/master^{commit}

stderr: fatal: ambiguous argument 'origin/master^{commit}': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git [...] -- [...]'

at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1752)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1725)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1721)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1391)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1403)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.revParse(CliGitAPIImpl.java:685)
at hudson.plugins.git.GitAPI.revParse(GitAPI.java:316)
at hudson.plugins.git.extensions.impl.PreBuildMerge.decorateRevisionToBuild(PreBuildMerge.java:64)
at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:994)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1083)
at hudson.scm.SCM.checkout(SCM.java:495)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1278)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
at hudson.model.Run.execute(Run.java:1720)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:404)

Skipping Cobertura coverage report as build was not UNSTABLE or better ...
Started calculate disk usage of build
Finished Calculation of disk usage of build in 0 seconds
Started calculate disk usage of workspace
Finished Calculation of disk usage of workspace in 0 seconds
Setting status of d18bd52eef5157cad8a8fcd0cef8127b5a95ad64 to FAILURE with url /397/ and message: 'Build finished. '

@benpatterson
Copy link
Member

Looks like #414

JLLeitschuh pushed a commit to JLLeitschuh/ghprb-plugin that referenced this issue Feb 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants