Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-64314

FATAL: Invalid id: fatal: ambiguous argument 'refs/remotes/origin/master^{commit}

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • None
    • git --version # 'git version 2.14.4_zos_b09'
      Jenkins: <version>2.249.3</version>
      Windows 10
      z/OS USS

      Jenkins Job Error Log:

      Started by user abc

      Running as SYSTEM

      Building remotely on ZOS-Agent (ABC1234) in workspace /u/rabc/Jenkins-PC/workspace/pocPipeline

      The recommended git tool is: NONE

      using credential rabcprivatekey

       > /var/dbb/bin/git-jenkins.sh rev-parse --is-inside-work-tree # timeout=10

      Fetching changes from the remote Git repository

       > /var/dbb/bin/git-jenkins.sh config remote.origin.url git@github.com:rayabcgit/poc-workspace.git # timeout=10

      Fetching upstream changes from git@github.com:rayabcgit/poc-workspace.git

       > /var/dbb/bin/git-jenkins.sh --version # timeout=10

       > git --version # 'git version 2.14.4_zos_b09'

      using GIT_SSH to set credentials Private Key from USS  for github

       > /var/dbb/bin/git-jenkins.sh fetch --tags --progress – git@github.com:rayabcgit/poc-workspace.git +refs/heads/:refs/remotes/origin/ # timeout=10

       > /var/dbb/bin/git-jenkins.sh rev-parse refs/remotes/origin/master^{commit} # timeout=10

      FATAL: Invalid id: fatal: ambiguous argument 'refs/remotes/origin/master^{commit}': unknown revision or path not in the working tree.

      Use '--' to separate paths from revisions, like this:

      'git <command> [<revision>...][<file>...]'

      refs/remotes/origin/master^{commit}

      Also:   hudson.remoting.Channel$CallSiteStackTrace: Remote call to ZOS-Agent

                                    at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1800)

                                    at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:357)

                                    at hudson.remoting.Channel.call(Channel.java:1001)

                                    at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:286)

                                    at com.sun.proxy.$Proxy66.revParse(Unknown Source)

                                    at org.jenkinsci.plugins.gitclient.RemoteGitImpl.revParse(RemoteGitImpl.java:577)

                                    at hudson.plugins.git.util.DefaultBuildChooser.getHeadRevision(DefaultBuildChooser.java:129)

                                    at hudson.plugins.git.util.DefaultBuildChooser.getCandidateRevisions(DefaultBuildChooser.java:111)

                                    at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:1145)

                                    at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1298)

                                    at hudson.scm.SCM.checkout(SCM.java:505)

                                    at hudson.model.AbstractProject.checkout(AbstractProject.java:1206)

                                    at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)

                                    at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)

                                    at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)

                                    at hudson.model.Run.execute(Run.java:1894)

                                    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)

                                    at hudson.model.ResourceController.execute(ResourceController.java:97)

                                    at hudson.model.Executor.run(Executor.java:428)

      org.eclipse.jgit.errors.InvalidObjectIdException: Invalid id: fatal: ambiguous argument 'refs/remotes/origin/master^{commit}': unknown revision or path not in the working tree.

      Use '--' to separate paths from revisions, like this:

      'git <command> [<revision>...][<file>...]'

      refs/remotes/origin/master^{commit}

                     at org.eclipse.jgit.lib.ObjectId.fromString(ObjectId.java:203)

                     at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.revParse(CliGitAPIImpl.java:1041)

                     at hudson.plugins.git.GitAPI.revParse(GitAPI.java:331)

                     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:90)

                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)

                     at java.lang.reflect.Method.invoke(Method.java:508)

                     at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:936)

                     at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:909)

                     at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:860)

                     at hudson.remoting.UserRequest.perform(UserRequest.java:211)

                     at hudson.remoting.UserRequest.perform(UserRequest.java:54)

                     at hudson.remoting.Request$2.run(Request.java:375)

                     at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:73)

                     at java.util.concurrent.FutureTask.run(FutureTask.java:277)

                     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1160)

                     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)

                     at java.lang.Thread.run(Thread.java:820)

      Finished: FAILURE

       

          [JENKINS-64314] FATAL: Invalid id: fatal: ambiguous argument 'refs/remotes/origin/master^{commit}

          Ray Lam created issue -
          Ray Lam made changes -
          Description Original: Jenkins Job Error Log:

          Started by user abcStarted by user abcRunning as SYSTEMBuilding remotely on ZOS-Agent (ABC1234) in workspace /u/rabc/Jenkins-PC/workspace/pocPipelineThe recommended git tool is: NONEusing credential rabcprivatekey > /var/dbb/bin/git-jenkins.sh rev-parse --is-inside-work-tree # timeout=10Fetching changes from the remote Git repository > /var/dbb/bin/git-jenkins.sh config remote.origin.url git@github.com:rayabcgit/poc-workspace.git # timeout=10Fetching upstream changes from git@github.com:rayabcgit/poc-workspace.git > /var/dbb/bin/git-jenkins.sh --version # timeout=10 > git --version # 'git version 2.14.4_zos_b09'using GIT_SSH to set credentials Private Key from USS  for github > /var/dbb/bin/git-jenkins.sh fetch --tags --progress -- git@github.com:rayabcgit/poc-workspace.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > /var/dbb/bin/git-jenkins.sh rev-parse refs/remotes/origin/master^\{commit} # timeout=10FATAL: Invalid id: fatal: ambiguous argument 'refs/remotes/origin/master^\{commit}': unknown revision or path not in the working tree.Use '--' to separate paths from revisions, like this:'git <command> [<revision>...] -- [<file>...]'refs/remotes/origin/master^\{commit}Also:   hudson.remoting.Channel$CallSiteStackTrace: Remote call to ZOS-Agent at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1800) at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:357) at hudson.remoting.Channel.call(Channel.java:1001) at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:286) at com.sun.proxy.$Proxy66.revParse(Unknown Source) at org.jenkinsci.plugins.gitclient.RemoteGitImpl.revParse(RemoteGitImpl.java:577) at hudson.plugins.git.util.DefaultBuildChooser.getHeadRevision(DefaultBuildChooser.java:129) at hudson.plugins.git.util.DefaultBuildChooser.getCandidateRevisions(DefaultBuildChooser.java:111) at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:1145) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1298) at hudson.scm.SCM.checkout(SCM.java:505) at hudson.model.AbstractProject.checkout(AbstractProject.java:1206) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499) at hudson.model.Run.execute(Run.java:1894) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:428)org.eclipse.jgit.errors.InvalidObjectIdException: Invalid id: fatal: ambiguous argument 'refs/remotes/origin/master^\{commit}': unknown revision or path not in the working tree.Use '--' to separate paths from revisions, like this:'git <command> [<revision>...] -- [<file>...]'refs/remotes/origin/master^\{commit} at org.eclipse.jgit.lib.ObjectId.fromString(ObjectId.java:203) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.revParse(CliGitAPIImpl.java:1041) at hudson.plugins.git.GitAPI.revParse(GitAPI.java:331) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:90) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55) at java.lang.reflect.Method.invoke(Method.java:508) at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:936) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:909) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:860) at hudson.remoting.UserRequest.perform(UserRequest.java:211) at hudson.remoting.UserRequest.perform(UserRequest.java:54) at hudson.remoting.Request$2.run(Request.java:375) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:73) at java.util.concurrent.FutureTask.run(FutureTask.java:277) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1160) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.lang.Thread.run(Thread.java:820)Finished: FAILURE 
          New: Jenkins Job Error Log:

          Started by user abc

          Running as SYSTEM

          Building remotely on ZOS-Agent (ABC1234) in workspace /u/rabc/Jenkins-PC/workspace/pocPipeline

          The recommended git tool is: NONE

          using credential rabcprivatekey

           > /var/dbb/bin/git-jenkins.sh rev-parse --is-inside-work-tree # timeout=10

          Fetching changes from the remote Git repository

           > /var/dbb/bin/git-jenkins.sh config remote.origin.url git@github.com:rayabcgit/poc-workspace.git # timeout=10

          Fetching upstream changes from git@github.com:rayabcgit/poc-workspace.git

           > /var/dbb/bin/git-jenkins.sh --version # timeout=10

           > git --version # 'git version 2.14.4_zos_b09'

          using GIT_SSH to set credentials Private Key from USS  for github

           > /var/dbb/bin/git-jenkins.sh fetch --tags --progress -- git@github.com:rayabcgit/poc-workspace.git +refs/heads/*:refs/remotes/origin/* # timeout=10

           > /var/dbb/bin/git-jenkins.sh rev-parse refs/remotes/origin/master^\{commit} # timeout=10

          FATAL: Invalid id: fatal: ambiguous argument 'refs/remotes/origin/master^\{commit}': unknown revision or path not in the working tree.

          Use '--' to separate paths from revisions, like this:

          'git <command> [<revision>...] -- [<file>...]'

          refs/remotes/origin/master^\{commit}

          Also:   hudson.remoting.Channel$CallSiteStackTrace: Remote call to ZOS-Agent

                                        at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1800)

                                        at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:357)

                                        at hudson.remoting.Channel.call(Channel.java:1001)

                                        at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:286)

                                        at com.sun.proxy.$Proxy66.revParse(Unknown Source)

                                        at org.jenkinsci.plugins.gitclient.RemoteGitImpl.revParse(RemoteGitImpl.java:577)

                                        at hudson.plugins.git.util.DefaultBuildChooser.getHeadRevision(DefaultBuildChooser.java:129)

                                        at hudson.plugins.git.util.DefaultBuildChooser.getCandidateRevisions(DefaultBuildChooser.java:111)

                                        at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:1145)

                                        at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1298)

                                        at hudson.scm.SCM.checkout(SCM.java:505)

                                        at hudson.model.AbstractProject.checkout(AbstractProject.java:1206)

                                        at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)

                                        at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)

                                        at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)

                                        at hudson.model.Run.execute(Run.java:1894)

                                        at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)

                                        at hudson.model.ResourceController.execute(ResourceController.java:97)

                                        at hudson.model.Executor.run(Executor.java:428)

          org.eclipse.jgit.errors.InvalidObjectIdException: Invalid id: fatal: ambiguous argument 'refs/remotes/origin/master^\{commit}': unknown revision or path not in the working tree.

          Use '--' to separate paths from revisions, like this:

          'git <command> [<revision>...] -- [<file>...]'

          refs/remotes/origin/master^\{commit}

                         at org.eclipse.jgit.lib.ObjectId.fromString(ObjectId.java:203)

                         at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.revParse(CliGitAPIImpl.java:1041)

                         at hudson.plugins.git.GitAPI.revParse(GitAPI.java:331)

                         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:90)

                         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)

                         at java.lang.reflect.Method.invoke(Method.java:508)

                         at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:936)

                         at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:909)

                         at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:860)

                         at hudson.remoting.UserRequest.perform(UserRequest.java:211)

                         at hudson.remoting.UserRequest.perform(UserRequest.java:54)

                         at hudson.remoting.Request$2.run(Request.java:375)

                         at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:73)

                         at java.util.concurrent.FutureTask.run(FutureTask.java:277)

                         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1160)

                         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)

                         at java.lang.Thread.run(Thread.java:820)

          Finished: FAILURE

           
          Mark Waite made changes -
          Resolution New: Not A Defect [ 7 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Mark Waite made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]

            markewaite Mark Waite
            raylamjenkins Ray Lam
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: