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

Xray build doesn't fail when the failBuild is set to true

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: 4 - Normal
    • Resolution: Done
    • Affects Version/s: 3.2.1
    • Fix Version/s: 3.2.3
    • Component/s: None
    • Labels:
      None

      Description

      When I scan a build with Xray, the build doesn't fail when there are violations. Instead, the build is marked as currentBuild.result = "FAILURE". This causes the build to continue executing the following stages, and at the end, the build is marked as failed. This is very confusing and can cause issues and unexpected results, like promoting a build to production even though it has violations and the failBuild is set to true. 

      I would expect for an exception to be raised and the build to fail immediately instead of just flagging it to fail and keep going with the stages

        Attachments

          Activity

            People

            Assignee:
            daniele Daniel Ezer (Inactive)
            Reporter:
            daniele Daniel Ezer (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: