hudson.plugins.git.GitException: Error performing command: git push ssh://****:29418/****.git HEAD:refs/for/master Command "git push ssh://****:29418/****.git HEAD:refs/for/master" returned status code 1: To ssh://****:29418/****.git ! [remote rejected] HEAD -> refs/for/master (no new changes) error: failed to push some refs to 'ssh://****:29418/****.git'

Jenkins JIRA | Sylvain Veyrié | 5 years ago
  1. 0

    We configured Git publisher to push to a remote repo as a post-build action (actually, that's Gerrit). If a build is triggered without any changes, and the build successes, then the git publisher tries to push Gerrit, whose response gives: {noformat} [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 52.736s [INFO] Finished at: Mon Mar 26 11:09:37 CEST 2012 [INFO] Final Memory: 75M/409M [INFO] ------------------------------------------------------------------------ channel stopped Deleting: /tmp/Xvfb946119446000235574.Xauthority [WARNINGS] Parsing warnings in console log with parsers [Java Compiler] [WARNINGS] Java Compiler : Found 0 warnings. [WARNINGS] Java Compiler : Found 0 warnings. [WARNINGS] Computing warning deltas based on reference build #28 Archiving artifacts Publishing Cobertura coverage report... Publishing Cobertura coverage results.. Pushing HEAD to branch refs/for/master at repo gerrit ERROR: Failed to push branch refs/for/master to gerrit hudson.plugins.git.GitException: Error performing command: git push ssh://****:29418/****.git HEAD:refs/for/master Command "git push ssh://****:29418/****.git HEAD:refs/for/master" returned status code 1: To ssh://****:29418/****.git ! [remote rejected] HEAD -> refs/for/master (no new changes) error: failed to push some refs to 'ssh://****:29418/****.git' at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:776) at hudson.plugins.git.GitAPI.launchCommand(GitAPI.java:741) at hudson.plugins.git.GitAPI.push(GitAPI.java:788) at hudson.plugins.git.GitPublisher$4.invoke(GitPublisher.java:333) at hudson.plugins.git.GitPublisher$4.invoke(GitPublisher.java:315) at hudson.FilePath.act(FilePath.java:832) at hudson.FilePath.act(FilePath.java:814) at hudson.plugins.git.GitPublisher.perform(GitPublisher.java:315) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:703) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:678) at hudson.maven.MavenModuleSetBuild$RunnerImpl.post2(MavenModuleSetBuild.java:998) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:625) at hudson.model.Run.run(Run.java:1435) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:481) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) Caused by: hudson.plugins.git.GitException: Command "git push ssh://****:29418/****.git HEAD:refs/for/master" returned status code 1: To ssh://****:29418/****.git ! [remote rejected] HEAD -> refs/for/master (no new changes) error: failed to push some refs to 'ssh://****:29418/****.git' at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:771) ... 16 more Build step 'Git Publisher' changed build result to FAILURE Build step 'Git Publisher' marked build as failure Jabber notifier plugin: Sending notification to: sylvain.veyrie@xmpp.*****.fr Finished: FAILURE {noformat} I think that Jenkins should not mark the build as failed in this case. Thanks!

    Jenkins JIRA | 5 years ago | Sylvain Veyrié
    hudson.plugins.git.GitException: Error performing command: git push ssh://****:29418/****.git HEAD:refs/for/master Command "git push ssh://****:29418/****.git HEAD:refs/for/master" returned status code 1: To ssh://****:29418/****.git ! [remote rejected] HEAD -> refs/for/master (no new changes) error: failed to push some refs to 'ssh://****:29418/****.git'
  2. 0

    We configured Git publisher to push to a remote repo as a post-build action (actually, that's Gerrit). If a build is triggered without any changes, and the build successes, then the git publisher tries to push Gerrit, whose response gives: {noformat} [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 52.736s [INFO] Finished at: Mon Mar 26 11:09:37 CEST 2012 [INFO] Final Memory: 75M/409M [INFO] ------------------------------------------------------------------------ channel stopped Deleting: /tmp/Xvfb946119446000235574.Xauthority [WARNINGS] Parsing warnings in console log with parsers [Java Compiler] [WARNINGS] Java Compiler : Found 0 warnings. [WARNINGS] Java Compiler : Found 0 warnings. [WARNINGS] Computing warning deltas based on reference build #28 Archiving artifacts Publishing Cobertura coverage report... Publishing Cobertura coverage results.. Pushing HEAD to branch refs/for/master at repo gerrit ERROR: Failed to push branch refs/for/master to gerrit hudson.plugins.git.GitException: Error performing command: git push ssh://****:29418/****.git HEAD:refs/for/master Command "git push ssh://****:29418/****.git HEAD:refs/for/master" returned status code 1: To ssh://****:29418/****.git ! [remote rejected] HEAD -> refs/for/master (no new changes) error: failed to push some refs to 'ssh://****:29418/****.git' at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:776) at hudson.plugins.git.GitAPI.launchCommand(GitAPI.java:741) at hudson.plugins.git.GitAPI.push(GitAPI.java:788) at hudson.plugins.git.GitPublisher$4.invoke(GitPublisher.java:333) at hudson.plugins.git.GitPublisher$4.invoke(GitPublisher.java:315) at hudson.FilePath.act(FilePath.java:832) at hudson.FilePath.act(FilePath.java:814) at hudson.plugins.git.GitPublisher.perform(GitPublisher.java:315) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:703) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:678) at hudson.maven.MavenModuleSetBuild$RunnerImpl.post2(MavenModuleSetBuild.java:998) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:625) at hudson.model.Run.run(Run.java:1435) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:481) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) Caused by: hudson.plugins.git.GitException: Command "git push ssh://****:29418/****.git HEAD:refs/for/master" returned status code 1: To ssh://****:29418/****.git ! [remote rejected] HEAD -> refs/for/master (no new changes) error: failed to push some refs to 'ssh://****:29418/****.git' at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:771) ... 16 more Build step 'Git Publisher' changed build result to FAILURE Build step 'Git Publisher' marked build as failure Jabber notifier plugin: Sending notification to: sylvain.veyrie@xmpp.*****.fr Finished: FAILURE {noformat} I think that Jenkins should not mark the build as failed in this case. Thanks!

    Jenkins JIRA | 5 years ago | Sylvain Veyrié
    hudson.plugins.git.GitException: Error performing command: git push ssh://****:29418/****.git HEAD:refs/for/master Command "git push ssh://****:29418/****.git HEAD:refs/for/master" returned status code 1: To ssh://****:29418/****.git ! [remote rejected] HEAD -> refs/for/master (no new changes) error: failed to push some refs to 'ssh://****:29418/****.git'
  3. 0

    Jenkins + Git Publisher - How to push back to {GIT_BRANCH}?

    Stack Overflow | 4 years ago | mtutty
    hudson.plugins.git.GitException: Command "/usr/bin/git push https://jenkins:jenkinsPWD@myproject.com/git/project HEAD:origin/feature-1234" returned status code 1: stdout: stderr: error: unable to push to unqualified destination: origin/feature-1234 The destination refspec neither matches an existing ref on the remote nor begins with refs/, and we are unable to guess a prefix based on the source ref. error: failed to push some refs to 'https://jenkins:jenkinsPWD@myproject.com/git/project'
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    shaddock-openstack-gitupstream-service-start #1 failed

    GitHub | 3 weeks ago | epheo
    hudson.plugins.git.GitException: Command "git push git@github.com:epheo/shaddock-openstack.git HEAD:master" returned status code 1: stdout: stderr: To github.com:epheo/shaddock-openstack.git ! [rejected] HEAD -> master (non-fast-forward) error: failed to push some refs to 'git@github.com:epheo/shaddock-openstack.git' hint: Updates were rejected because a pushed branch tip is behind its remote hint: counterpart. Check out this branch and integrate the remote changes hint: (e.g. 'git pull ...') before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details.
  6. 0

    shaddock-openstack-service-build #28 failed

    GitHub | 3 weeks ago | epheo
    hudson.plugins.git.GitException: Command "git push git@github.com:epheo/shaddock-openstack.git HEAD:master" returned status code 1: stdout: stderr: To github.com:epheo/shaddock-openstack.git ! [rejected] HEAD -> master (non-fast-forward) error: failed to push some refs to 'git@github.com:epheo/shaddock-openstack.git' hint: Updates were rejected because a pushed branch tip is behind its remote hint: counterpart. Check out this branch and integrate the remote changes hint: (e.g. 'git pull ...') before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details.

    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 push ssh://****:29418/****.git HEAD:refs/for/master" returned status code 1: To ssh://****:29418/****.git ! [remote rejected] HEAD -> refs/for/master (no new changes) error: failed to push some refs to 'ssh://****:29418/****.git'

      at hudson.plugins.git.GitAPI.launchCommandIn()
    2. Hudson GIT plugin
      GitPublisher$4.invoke
      1. hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:771)
      2. hudson.plugins.git.GitAPI.launchCommand(GitAPI.java:741)
      3. hudson.plugins.git.GitAPI.push(GitAPI.java:788)
      4. hudson.plugins.git.GitPublisher$4.invoke(GitPublisher.java:333)
      5. hudson.plugins.git.GitPublisher$4.invoke(GitPublisher.java:315)
      5 frames
    3. Hudson
      FilePath.act
      1. hudson.FilePath.act(FilePath.java:832)
      2. hudson.FilePath.act(FilePath.java:814)
      2 frames
    4. Hudson GIT plugin
      GitPublisher.perform
      1. hudson.plugins.git.GitPublisher.perform(GitPublisher.java:315)
      1 frame
    5. Hudson
      AbstractBuild$AbstractRunner.performAllBuildSteps
      1. hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
      2. hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:703)
      3. hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:678)
      3 frames
    6. Hudson Maven Embedder
      MavenModuleSetBuild$RunnerImpl.post2
      1. hudson.maven.MavenModuleSetBuild$RunnerImpl.post2(MavenModuleSetBuild.java:998)
      1 frame
    7. Hudson
      Run.run
      1. hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:625)
      2. hudson.model.Run.run(Run.java:1435)
      2 frames
    8. Hudson Maven Embedder
      MavenModuleSetBuild.run
      1. hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:481)
      1 frame
    9. Hudson
      Executor.run
      1. hudson.model.ResourceController.execute(ResourceController.java:88)
      2. hudson.model.Executor.run(Executor.java:238)
      2 frames