-
Bug
-
Resolution: Fixed
-
Critical
-
Serena Dimsions CM 12.2.2.4
Jenkins 1.619 with Dimensionsscm plugin 0.8.12
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 'Tag successful builds in Dimensions as a baseline' marked build as failure but then it carries on and doesn't mark the entire build as failed. It ends the job with Finished: SUCCESS 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: COR0005315E Identifier "TEST_MAIN_33" is already used for another object of this type, please use a different identifier
)))
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)
Build step 'Tag successful builds in Dimensions as a baseline' marked build as failure
Finished: SUCCESS_