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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • xunit-plugin
    • Jenkins ver. 1.608
      xUnit plugin 1.94

      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.

          [JENKINS-27860] Build does not stop if it is marked as Failure when the opportune option is enabled

          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.

          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.

          Similar issue as cheeyee09. 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.

          Lorenzo Solano Martinez added a comment - Similar issue as cheeyee09 . 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.

          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.

          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.

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

              Created:
              Updated:
              Resolved: