hudson plugins git GitException Command git rev-parse origin master master commit returned status code 128 stdout origin master master commit

0 votes

Hi Guys,

I am trying to merge two branch in GitHub using jenkins job. But it shows me the bellow error.

hudson.plugins.git.GitException: Command "git rev-parse origin/master/master^{commit}" returned status code 128:
stdout: origin/master/master^{commit}
stderr: fatal: ambiguous argument 'origin/master/master^{commit}': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.revParse(
at hudson.plugins.git.GitAPI.revParse(
at hudson.plugins.git.extensions.impl.PreBuildMerge.decorateRevisionToBuild(
at hudson.plugins.git.GitSCM.determineRevisionToBuild(
at hudson.plugins.git.GitSCM.checkout(
at hudson.scm.SCM.checkout(
at hudson.model.AbstractProject.checkout(
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(
at jenkins.scm.SCMCheckoutStrategy.checkout(
at hudson.model.AbstractBuild$
at hudson.model.Run.execute(
at hudson.model.ResourceController.execute(
Finished: FAILURE

How can I solve this error?

May 7, 2020 in Jenkins by akhtar
• 38,130 points

1 answer to this question.

0 votes


I think you did not mention your GitHub remote URL name to your jenkins job. To overcome this error, you can follow the below given steps.

  • Go to your jenkins job.

  • Open configuration.

  • Go to source code management.

  • Set your remote URL name.

answered May 7, 2020 by MD
• 94,990 points

Related Questions In Jenkins

0 votes
3 answers

How can I make Jenkins CI with Git trigger on pushes to master?

To automatically run build on code commit, follow ...READ MORE

answered Aug 7, 2019 in Jenkins by Sirajul
• 58,950 points
0 votes
1 answer
0 votes
1 answer

How to do CI integration with code review tools

Here is an explanation. If you can switch ...READ MORE

answered Mar 26, 2018 in Jenkins by Atul
• 10,240 points
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
+2 votes
1 answer
+1 vote
1 answer