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

Jenkins JIRA | Nas Taibi | 11 months ago
  1. 0

    Hello , When Tagging Successful builds in Dimensions as a Baseline and when the said a baseline name already exists in Dimensions, the dimensionsscm plugin reports the failure thrown by Dimesions (as expected) by logging the message{color:red} 'Tag successful builds in Dimensions as a baseline' marked build as failure{color} but then it carries on and doesn't mark the entire build as failed. It ends the job with {color:red}*Finished: SUCCESS*{color} which is misleading. Ideally when the tagging fails it should make the entire build as failed and change the icon accordingly. here is the full error and some ---- _FATAL: Unable to tag build in Dimensions (DimensionsRuntimeException: Create baseline (DimensionsRuntimeException: Dimensions command 'CBL "STREAM1:TEST_MAIN_33" /WORKSET="STREAM1:TEST_MAIN" /SCOPE=WORKSET /DESCRIPTION="Baseline created by Hudson/Jenkins for job 'TEST_MAIN' - build 94"' failed (DimensionsRuntimeException: {color:red}COR0005315E Identifier "TEST_MAIN_33" is already used for another object of this type, please use a different identifier{color} ))) ERROR: Build step failed with exception java.lang.IllegalStateException: cannot change build result while in POST_PRODUCTION at hudson.model.Run.setResult(Run.java:456) at hudson.plugins.dimensionsscm.DimensionsBuildNotifier.perform(DimensionsBuildNotifier.java:410) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723) at hudson.model.Build$BuildExecution.cleanUp(Build.java:195) 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:410) {color:red}Build step 'Tag successful builds in Dimensions as a baseline' marked build as failure Finished: SUCCESS{color}_

    Jenkins JIRA | 11 months ago | Nas Taibi
    java.lang.IllegalStateException: cannot change build result while in POST_PRODUCTION
  2. 0

    Hello , When Tagging Successful builds in Dimensions as a Baseline and when the said a baseline name already exists in Dimensions, the dimensionsscm plugin reports the failure thrown by Dimesions (as expected) by logging the message{color:red} 'Tag successful builds in Dimensions as a baseline' marked build as failure{color} but then it carries on and doesn't mark the entire build as failed. It ends the job with {color:red}*Finished: SUCCESS*{color} which is misleading. Ideally when the tagging fails it should make the entire build as failed and change the icon accordingly. here is the full error and some ---- _FATAL: Unable to tag build in Dimensions (DimensionsRuntimeException: Create baseline (DimensionsRuntimeException: Dimensions command 'CBL "STREAM1:TEST_MAIN_33" /WORKSET="STREAM1:TEST_MAIN" /SCOPE=WORKSET /DESCRIPTION="Baseline created by Hudson/Jenkins for job 'TEST_MAIN' - build 94"' failed (DimensionsRuntimeException: {color:red}COR0005315E Identifier "TEST_MAIN_33" is already used for another object of this type, please use a different identifier{color} ))) ERROR: Build step failed with exception java.lang.IllegalStateException: cannot change build result while in POST_PRODUCTION at hudson.model.Run.setResult(Run.java:456) at hudson.plugins.dimensionsscm.DimensionsBuildNotifier.perform(DimensionsBuildNotifier.java:410) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723) at hudson.model.Build$BuildExecution.cleanUp(Build.java:195) 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:410) {color:red}Build step 'Tag successful builds in Dimensions as a baseline' marked build as failure Finished: SUCCESS{color}_

    Jenkins JIRA | 11 months ago | Nas Taibi
    java.lang.IllegalStateException: cannot change build result while in POST_PRODUCTION
  3. 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
  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

    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

    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:456)
      1 frame
    3. hudson.plugins.dimensionsscm
      DimensionsBuildNotifier.perform
      1. hudson.plugins.dimensionsscm.DimensionsBuildNotifier.perform(DimensionsBuildNotifier.java:410)
      1 frame
    4. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
      3. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723)
      4. hudson.model.Build$BuildExecution.cleanUp(Build.java:195)
      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:410)
      8 frames