hudson.plugins.git.GitException: Command "git -c core.askpass=true push /tmp/hudson751564288875417152test" returned status code 128: stdout: stderr: fatal: You didn't specify any refspecs to push, and push.default is "nothing".

Jenkins JIRA | Martin d'Anjou | 2 years ago
  1. 0

    Steps to reproduce: When push.default is set to nothing like so in .gitconfig: {noformat} [push] default = nothing {noformat} Run the {{test_push_tags}} test: {noformat} mvn -Dtest=CliGitAPIImplTest#test_push_tags test {noformat} Result: {noformat} Running org.jenkinsci.plugins.gitclient.CliGitAPIImplTest Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.762 sec <<< FAILURE! - in org.jenkinsci.plugins.gitclient.CliGitAPIImplTest test_push_tags(org.jenkinsci.plugins.gitclient.CliGitAPIImplTest) Time elapsed: 2.725 sec <<< ERROR! hudson.plugins.git.GitException: Command "git -c core.askpass=true push /tmp/hudson751564288875417152test" returned status code 128: stdout: stderr: fatal: You didn't specify any refspecs to push, and push.default is "nothing". at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1493) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1281) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:86) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$7.execute(CliGitAPIImpl.java:1560) at org.jenkinsci.plugins.gitclient.GitAPITestCase.test_push_tags(GitAPITestCase.java:937) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.jenkinsci.plugins.gitclient.CliGitAPIImplTest.runTest(CliGitAPIImplTest.java:30) {noformat}

    Jenkins JIRA | 2 years ago | Martin d'Anjou
    hudson.plugins.git.GitException: Command "git -c core.askpass=true push /tmp/hudson751564288875417152test" returned status code 128: stdout: stderr: fatal: You didn't specify any refspecs to push, and push.default is "nothing".
  2. 0

    Steps to reproduce: When push.default is set to nothing like so in .gitconfig: {noformat} [push] default = nothing {noformat} Run the {{test_push_tags}} test: {noformat} mvn -Dtest=CliGitAPIImplTest#test_push_tags test {noformat} Result: {noformat} Running org.jenkinsci.plugins.gitclient.CliGitAPIImplTest Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.762 sec <<< FAILURE! - in org.jenkinsci.plugins.gitclient.CliGitAPIImplTest test_push_tags(org.jenkinsci.plugins.gitclient.CliGitAPIImplTest) Time elapsed: 2.725 sec <<< ERROR! hudson.plugins.git.GitException: Command "git -c core.askpass=true push /tmp/hudson751564288875417152test" returned status code 128: stdout: stderr: fatal: You didn't specify any refspecs to push, and push.default is "nothing". at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1493) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1281) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:86) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$7.execute(CliGitAPIImpl.java:1560) at org.jenkinsci.plugins.gitclient.GitAPITestCase.test_push_tags(GitAPITestCase.java:937) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.jenkinsci.plugins.gitclient.CliGitAPIImplTest.runTest(CliGitAPIImplTest.java:30) {noformat}

    Jenkins JIRA | 2 years ago | Martin d'Anjou
    hudson.plugins.git.GitException: Command "git -c core.askpass=true push /tmp/hudson751564288875417152test" returned status code 128: stdout: stderr: fatal: You didn't specify any refspecs to push, and push.default is "nothing".
  3. 0

    How to create Tags in Git with jenkins

    Stack Overflow | 2 months ago | Nikhilesh Dasari
    hudson.plugins.git.GitException: Command "git -c core.askpass=true push github.com/b014081/Project.git Project-193 -f" returned status code 128: stdout: stderr: remote: Permission to b014081/Project.git denied to dcadmin. fatal: unable to access 'github.com/b014081/Project.git/': The requested URL returned error: 403 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1710)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Anyone seem this issue before? Jenkins ver. 1.565.3 GIT client plugin - 1.17.1 Git plugin - 2.2.12 GitHub plugin - 1.11.3 GitHub pull request builder - 1.20 GitHub API plugin - 1.67 Failed to connect to repository : Command "git -c core.askpass=true ls-remote -h git@github.com:xxxxxxxxxxxxxxxxxx.git HEAD" returned status code 128: stdout: stderr: fatal: failed to stat '.': Permission denied --- here's the git pollling log --- Started on Jul 13, 2015 3:01:00 PM Using strategy: Default [poll] Last Built Revision: Revision ad1ddc6a848d6353c52bb1e3112bcff58a9c68e0 (refs/remotes/xxxxxx/master) > git --version # timeout=10 > git -c core.askpass=true ls-remote -h git@github.com:xxxxxxxxxxxxxxxxxxxxx.git master # timeout=10 FATAL: hudson.plugins.git.GitException: Command "git -c core.askpass=true ls-remote -h git@github.com:xxxxxxxxxxxxxxxxxxxxx.git master" returned status code 128: stdout: stderr: fatal: failed to stat '.': Permission denied hudson.util.IOException2: hudson.plugins.git.GitException: Command "git -c core.askpass=true ls-remote -h git@github.com:xxxxxxxxxxxxxxxxxxxxx.git master" returned status code 128: stdout: stderr: fatal: failed to stat '.': Permission denied at hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:496) at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:357) at hudson.scm.SCM.poll(SCM.java:374) at hudson.model.AbstractProject._poll(AbstractProject.java:1428) at hudson.model.AbstractProject.poll(AbstractProject.java:1331) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:477) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:506) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Caused by: hudson.plugins.git.GitException: Command "git -c core.askpass=true ls-remote -h git@github.com:xxxxxxxxxxxxxxxxxxxxx.git master" returned status code 128: stdout: stderr: fatal: failed to stat '.': Permission denied at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1591) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1379) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1277) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1268) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.getHeadRev(CliGitAPIImpl.java:2355) at hudson.plugins.git.GitSCM.compareRemoteRevisionWithImpl(GitSCM.java:530) at hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:494) ... 12 more Done. Took 28 ms No changes ----

    Jenkins JIRA | 1 year ago | Guang Su
    hudson.util.IOException2: hudson.plugins.git.GitException: Command "git -c core.askpass=true ls-remote -h git@github.com:xxxxxxxxxxxxxxxxxxxxx.git master" returned status code 128: stdout: stderr: fatal: failed to stat '.': Permission denied
  6. 0

    Anyone seem this issue before? Jenkins ver. 1.565.3 GIT client plugin - 1.17.1 Git plugin - 2.2.12 GitHub plugin - 1.11.3 GitHub pull request builder - 1.20 GitHub API plugin - 1.67 Failed to connect to repository : Command "git -c core.askpass=true ls-remote -h git@github.com:xxxxxxxxxxxxxxxxxx.git HEAD" returned status code 128: stdout: stderr: fatal: failed to stat '.': Permission denied --- here's the git pollling log --- Started on Jul 13, 2015 3:01:00 PM Using strategy: Default [poll] Last Built Revision: Revision ad1ddc6a848d6353c52bb1e3112bcff58a9c68e0 (refs/remotes/xxxxxx/master) > git --version # timeout=10 > git -c core.askpass=true ls-remote -h git@github.com:xxxxxxxxxxxxxxxxxxxxx.git master # timeout=10 FATAL: hudson.plugins.git.GitException: Command "git -c core.askpass=true ls-remote -h git@github.com:xxxxxxxxxxxxxxxxxxxxx.git master" returned status code 128: stdout: stderr: fatal: failed to stat '.': Permission denied hudson.util.IOException2: hudson.plugins.git.GitException: Command "git -c core.askpass=true ls-remote -h git@github.com:xxxxxxxxxxxxxxxxxxxxx.git master" returned status code 128: stdout: stderr: fatal: failed to stat '.': Permission denied at hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:496) at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:357) at hudson.scm.SCM.poll(SCM.java:374) at hudson.model.AbstractProject._poll(AbstractProject.java:1428) at hudson.model.AbstractProject.poll(AbstractProject.java:1331) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:477) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:506) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Caused by: hudson.plugins.git.GitException: Command "git -c core.askpass=true ls-remote -h git@github.com:xxxxxxxxxxxxxxxxxxxxx.git master" returned status code 128: stdout: stderr: fatal: failed to stat '.': Permission denied at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1591) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1379) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1277) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1268) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.getHeadRev(CliGitAPIImpl.java:2355) at hudson.plugins.git.GitSCM.compareRemoteRevisionWithImpl(GitSCM.java:530) at hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:494) ... 12 more Done. Took 28 ms No changes ----

    Jenkins JIRA | 1 year ago | Guang Su
    hudson.util.IOException2: hudson.plugins.git.GitException: Command "git -c core.askpass=true ls-remote -h git@github.com:xxxxxxxxxxxxxxxxxxxxx.git master" returned status code 128: stdout: stderr: fatal: failed to stat '.': Permission denied

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. hudson.plugins.git.GitException

      Command "git -c core.askpass=true push /tmp/hudson751564288875417152test" returned status code 128: stdout: stderr: fatal: You didn't specify any refspecs to push, and push.default is "nothing".

      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn()
    2. org.jenkinsci.plugins
      GitAPITestCase.test_push_tags
      1. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1493)
      2. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1281)
      3. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:86)
      4. org.jenkinsci.plugins.gitclient.CliGitAPIImpl$7.execute(CliGitAPIImpl.java:1560)
      5. org.jenkinsci.plugins.gitclient.GitAPITestCase.test_push_tags(GitAPITestCase.java:937)
      5 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    4. org.jenkinsci.plugins
      CliGitAPIImplTest.runTest
      1. org.jenkinsci.plugins.gitclient.CliGitAPIImplTest.runTest(CliGitAPIImplTest.java:30)
      1 frame