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

Build job succeds even though pretested says error (case 13574)

XMLWordPrintable

      The preintegration post build step fails with an exception and marks build as failure.
      Still the build ends up as success.

      [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
      

            praqma Praqma Support
            pablaasmo Per Arnold Blaasmo
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: