Uploaded image for project: 'Jenkins Artifactory Plug-in'
  1. Jenkins Artifactory Plug-in
  2. HAP-970

Prevent setting the Maven to failure if Maven task fails

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 2.14.0
    • Fix Version/s: 2.15.0
    • Component/s: None
    • Labels:
      None

      Description

      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:

      Success
      Unstable
      Failure
      Aborted.

      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.

        Attachments

          Activity

            People

            • Assignee:
              barb Bar Belity
              Reporter:
              alexeiv Alexei Vainshtein
            • Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: