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

Build does not stop if it is marked as Failure when the opportune option is enabled

    Details

    • Similar Issues:

      Description

      I've checked the option "Stop and set the build to 'failed' status if there are errors when processing a result file" on the xUnit plugin and I've set the failuer treshold to 0 so I want that if any test fails, the build becomes faiulre and it stops executing remaining steps.

      Now it is set as failure but it continues executing the next steps.

        Attachments

          Activity

          Hide
          cheeyee09 Chee Yee added a comment -

          I have the same issue. I have a Post-Build step that run xUnit on Junit xml and expect it to stop the Job if there are any error, but It carries on to execute the steps that follow and upload my artifact to Artifactory.

          Show
          cheeyee09 Chee Yee added a comment - I have the same issue. I have a Post-Build step that run xUnit on Junit xml and expect it to stop the Job if there are any error, but It carries on to execute the steps that follow and upload my artifact to Artifactory.
          Hide
          lsolano Lorenzo Solano Martinez added a comment -

          Similar issue as Chee Yee. After the Process xUnit (for NUnit 2 and 3) step my build have more tasks to run. I want a "Fail Fast" behavior in order to speedup the feedback loop.

          Show
          lsolano Lorenzo Solano Martinez added a comment - Similar issue as Chee Yee . After the Process xUnit (for NUnit 2 and 3) step my build have more tasks to run. I want a "Fail Fast" behavior in order to speedup the feedback loop.
          Hide
          nfalco Nikolas Falco added a comment -

          All post build actions are preformed by design also if an AbortException is thrown .
          I could only stop the build in the build step, but not in the post build step.

          Show
          nfalco Nikolas Falco added a comment - All post build actions are preformed by design also if an AbortException is thrown . I could only stop the build in the build step, but not in the post build step.

            People

            • Assignee:
              nfalco Nikolas Falco
              Reporter:
              carlos Carlos Lucas
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: