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

Stack trace if push fails - build shows successful but is not (Praqma case 12833)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Labels:
      None
    • Environment:
      pretested integration plugin 2.2.1
      Linux Ubuntu 14.04 slave, master Linux Ubuntu 14.04.
    • Similar Issues:

      Description

      When build is successful, but the push fails the plugin tries to change state of the build to failed. At this point it is not allowed by the Jenkins plugin model.

      So integration is successful according to build status, but the changes never got pushed.

      Performing pre-verified post build steps
      [PREINT-GIT] Commiting changes
      [PREINT]  git push origin master
      [bpe.roadshow.verify] $ git push origin master
      
      Failed to commit integrated changes, message was:
      fatal: could not read Username for 'https://github.com': No such device or address
      
      ERROR: Build step failed with exception
      java.lang.IllegalStateException: cannot change build result while in POST_PRODUCTION
      	at hudson.model.Run.setResult(Run.java:461)
      	at org.jenkinsci.plugins.pretestedintegration.PretestedIntegrationPostCheckout.perform(PretestedIntegrationPostCheckout.java:71)
      	at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:761)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:721)
      	at hudson.model.Build$BuildExecution.cleanUp(Build.java:193)
      	at hudson.model.Run.execute(Run.java:1797)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:89)
      	at hudson.model.Executor.run(Executor.java:240)
      Build step 'Pretested Integration post-build' marked build as failure
      Finished: SUCCESS
      

        Attachments

          Activity

          Hide
          lars_kruse Lars Kruse added a comment -

          This is fixed. The publisher is now a Recorder which CAN change the build status. So you will not get this type of error anymore.

          Show
          lars_kruse Lars Kruse added a comment - This is fixed. The publisher is now a Recorder which CAN change the build status. So you will not get this type of error anymore.

            People

            • Assignee:
              praqma Praqma Support
              Reporter:
              bue Bue Petersen
            • Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: