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

Ability to stop an UNSTABLE declarative pipeline

XMLWordPrintable

      I have a pipeline with with many steps.

      If my unit tests fail, I want to mark the pipeline as UNSTABLE and then to stop the pipeline.

      I am using Declarative style.

      I cannot figure out how to stop the pipeline from continuing. If I use error(), the pipeline does stop but it also gets marked as failed.

      Am I missing something? Can a pipeline be BOTH marked as UNSTABLE and also stop progress?

            abayer Andrew Bayer
            piratejohnny Jon B
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: