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

post-build git push fails with rebasing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • git-plugin
    • None
    • AWS Linux 2 AMI

       

      I have a job that rebases before pushing and for some reason it sometimes fails to push to the branch with the following output every time. It happens more often then not and I can't find anything that would cause it. I can provide more information if needed.

      > **** rev-parse HEAD^{commit} # timeout=10
       > **** rev-parse origin/master^{commit} # timeout=10
       > **** rebase origin/master # timeout=10
       > **** rebase --abort # timeout=10
      ERROR: Failed to push branch master to origin
      hudson.plugins.****.GitException: Command "**** rebase --abort" returned status code 128:
      stdout: 
      stderr: fatal: No rebase in progress?
      
      	at org.jenkinsci.plugins.****client.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2450)
      	at org.jenkinsci.plugins.****client.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2380)
      	at org.jenkinsci.plugins.****client.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2376)
      	at org.jenkinsci.plugins.****client.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1923)
      	at org.jenkinsci.plugins.****client.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1935)
      	at org.jenkinsci.plugins.****client.CliGitAPIImpl$4.execute(CliGitAPIImpl.java:944)
      	at hudson.plugins.****.GitPublisher.perform(GitPublisher.java:307)
      	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:753)
      	at hudson.model.Build$BuildExecution.post2(Build.java:177)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:698)
      	at hudson.model.Run.execute(Run.java:1919)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:97)
      	at hudson.model.Executor.run(Executor.java:428)
      Build step 'Git Publisher' marked build as failure
      [Checks API] No suitable checks publisher found.
      Sending notification to Discord.
      Finished: FAILURE
      
      

      The configuration of the post-build push:

       

            Unassigned Unassigned
            khumps Kevin Humphreys
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: