Affects Version/s: 2.14.0
Fix Version/s: 2.15.0
Pipeline: Currently when a Maven task fails we are throwing exception (RunTimeException). If you catch the exception and performing some logic after it, the build always be marked as failure. This happens since in the code when the build fails, the result is set to Failure automatically (Maven3Builder class --> RunMaven method).
Jenkins preventing changing dynamically the result of the build to a higher level. The levels are:
The request is to have a flag in pipeline that could prevent the exception throwing and setting in such case the build to be unstable.