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

Add a Declarative option for "treat unstable as failure"

      This is related to JENKINS-41943 - I think it'd make sense to have an option that says "If a stage makes the build unstable, skip any subsequent stages the same as we would if they failed". This'll probably end up needing some Blue Ocean visualization work to have a different way of visualizing "skipped due to unstable" rather than "skipped due to failure", but that can wait.

          [JENKINS-42039] Add a Declarative option for "treat unstable as failure"

          Andrew Bayer created issue -
          Andrew Bayer made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Andrew Bayer made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]

          Andrew Bayer added a comment -

          Andrew Bayer added a comment - Initial PR up at https://github.com/jenkinsci/pipeline-model-definition-plugin/pull/115
          Andrew Bayer made changes -
          Remote Link New: This issue links to "PR #115 (Web Link)" [ 15453 ]
          Andrew Bayer made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Review [ 10005 ] New: Resolved [ 5 ]

          Code changed in jenkins
          User: Andrew Bayer
          Path:
          pipeline-model-definition/src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/Utils.groovy
          pipeline-model-definition/src/main/java/org/jenkinsci/plugins/pipeline/modeldefinition/options/impl/SkipStagesAfterUnstable.java
          pipeline-model-definition/src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy
          pipeline-model-definition/src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/BasicModelDefTest.java
          pipeline-model-definition/src/test/resources/skipAfterUnstable.groovy
          pipeline-stage-tags-metadata/src/main/java/org/jenkinsci/plugins/pipeline/StageStatus.java
          http://jenkins-ci.org/commit/pipeline-model-definition-plugin/f88b0e85b1f2eeb063ff8dba777e1d2d31307f00
          Log:
          [FIXED JENKINS-42039] Add option for skipping stages after unstable

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Andrew Bayer Path: pipeline-model-definition/src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/Utils.groovy pipeline-model-definition/src/main/java/org/jenkinsci/plugins/pipeline/modeldefinition/options/impl/SkipStagesAfterUnstable.java pipeline-model-definition/src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy pipeline-model-definition/src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/BasicModelDefTest.java pipeline-model-definition/src/test/resources/skipAfterUnstable.groovy pipeline-stage-tags-metadata/src/main/java/org/jenkinsci/plugins/pipeline/StageStatus.java http://jenkins-ci.org/commit/pipeline-model-definition-plugin/f88b0e85b1f2eeb063ff8dba777e1d2d31307f00 Log: [FIXED JENKINS-42039] Add option for skipping stages after unstable

          Would you mind documenting this awesome new feature also at https://jenkins.io/doc/book/pipeline/syntax/#declarative-directives, or is there another (better) place for that?

          Reinhold Füreder added a comment - Would you mind documenting this awesome new feature also at https://jenkins.io/doc/book/pipeline/syntax/#declarative-directives , or is there another (better) place for that?
          Andrew Bayer made changes -
          Link New: This issue is duplicated by JENKINS-41943 [ JENKINS-41943 ]

          Code changed in jenkins
          User: Vadim Kotov
          Path:
          content/doc/book/pipeline/syntax.adoc
          http://jenkins-ci.org/commit/jenkins.io/01c81074f622335cd021312532b8af50d21ccf52
          Log:
          Added documentation for JENKINS-42039

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Vadim Kotov Path: content/doc/book/pipeline/syntax.adoc http://jenkins-ci.org/commit/jenkins.io/01c81074f622335cd021312532b8af50d21ccf52 Log: Added documentation for JENKINS-42039

            abayer Andrew Bayer
            abayer Andrew Bayer
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: