java.lang.IllegalStateException: cannot change build result while in POST_PRODUCTION

Jenkins JIRA | Per Arnold Blaasmo | 1 year ago
  1. 0

    The preintegration post build step fails with an exception and marks build as failure. Still the build ends up as success. {code} [PREINT] Performing pre-verified post build steps [PREINT] Using the master branch for polling and development is not allowed since it will attempt to merge it to other branches and delete it after. Failing build. ERROR: Build step failed with exception java.lang.IllegalStateException: cannot change build result while in POST_PRODUCTION at hudson.model.Run.setResult(Run.java:459) at org.jenkinsci.plugins.pretestedintegration.scm.git.GitBridge.handlePostBuild(GitBridge.java:565) at org.jenkinsci.plugins.pretestedintegration.PretestedIntegrationAction.finalise(PretestedIntegrationAction.java:94) at org.jenkinsci.plugins.pretestedintegration.PretestedIntegrationPostCheckout.perform(PretestedIntegrationPostCheckout.java:58) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:776) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723) at hudson.model.Build$BuildExecution.cleanUp(Build.java:193) at hudson.model.Run.execute(Run.java:1785) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:381) Build step 'Pretested Integration post-build' marked build as failure [WS-CLEANUP] Deleting project workspace...[WS-CLEANUP] done Warning: ‘Access Control for Builds’ in global security configuration is empty, so falling back to legacy behavior of permitting any downstream builds to be triggered Triggering a new build of pack-status__publish__master Finished: SUCCESS {code}

    Jenkins JIRA | 1 year ago | Per Arnold Blaasmo
    java.lang.IllegalStateException: cannot change build result while in POST_PRODUCTION
  2. 0

    The preintegration post build step fails with an exception and marks build as failure. Still the build ends up as success. {code} [PREINT] Performing pre-verified post build steps [PREINT] Using the master branch for polling and development is not allowed since it will attempt to merge it to other branches and delete it after. Failing build. ERROR: Build step failed with exception java.lang.IllegalStateException: cannot change build result while in POST_PRODUCTION at hudson.model.Run.setResult(Run.java:459) at org.jenkinsci.plugins.pretestedintegration.scm.git.GitBridge.handlePostBuild(GitBridge.java:565) at org.jenkinsci.plugins.pretestedintegration.PretestedIntegrationAction.finalise(PretestedIntegrationAction.java:94) at org.jenkinsci.plugins.pretestedintegration.PretestedIntegrationPostCheckout.perform(PretestedIntegrationPostCheckout.java:58) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:776) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723) at hudson.model.Build$BuildExecution.cleanUp(Build.java:193) at hudson.model.Run.execute(Run.java:1785) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:381) Build step 'Pretested Integration post-build' marked build as failure [WS-CLEANUP] Deleting project workspace...[WS-CLEANUP] done Warning: ‘Access Control for Builds’ in global security configuration is empty, so falling back to legacy behavior of permitting any downstream builds to be triggered Triggering a new build of pack-status__publish__master Finished: SUCCESS {code}

    Jenkins JIRA | 1 year ago | Per Arnold Blaasmo
    java.lang.IllegalStateException: cannot change build result while in POST_PRODUCTION
  3. 0

    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. {code} 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 {code}

    Jenkins JIRA | 2 years ago | Bue Petersen
    java.lang.IllegalStateException: cannot change build result while in POST_PRODUCTION
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    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. {code} 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 {code}

    Jenkins JIRA | 2 years ago | Bue Petersen
    java.lang.IllegalStateException: cannot change build result while in POST_PRODUCTION
  6. 0

    [JIRA] [pretested-integration-plugin] (JENKINS-30465) Build job succeds even though pretested says error

    Google Groups | 1 year ago | pablaasmo@java.net (JIRA)
    java.lang.IllegalStateException: cannot change build result <span class="code-keyword" style="color: #000091">while</span> in POST_PRODUCTION

    1 unregistered visitors
    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. java.lang.IllegalStateException

      cannot change build result while in POST_PRODUCTION

      at hudson.model.Run.setResult()
    2. Hudson
      Run.setResult
      1. hudson.model.Run.setResult(Run.java:459)
      1 frame
    3. org.jenkinsci.plugins
      PretestedIntegrationPostCheckout.perform
      1. org.jenkinsci.plugins.pretestedintegration.scm.git.GitBridge.handlePostBuild(GitBridge.java:565)
      2. org.jenkinsci.plugins.pretestedintegration.PretestedIntegrationAction.finalise(PretestedIntegrationAction.java:94)
      3. org.jenkinsci.plugins.pretestedintegration.PretestedIntegrationPostCheckout.perform(PretestedIntegrationPostCheckout.java:58)
      3 frames
    4. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:776)
      3. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723)
      4. hudson.model.Build$BuildExecution.cleanUp(Build.java:193)
      5. hudson.model.Run.execute(Run.java:1785)
      6. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      7. hudson.model.ResourceController.execute(ResourceController.java:98)
      8. hudson.model.Executor.run(Executor.java:381)
      8 frames