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 added a comment -

          Andrew Bayer added a comment - Initial PR up at https://github.com/jenkinsci/pipeline-model-definition-plugin/pull/115

          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?

          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

          Code changed in jenkins
          User: R. Tyler Croy
          Path:
          content/doc/book/pipeline/syntax.adoc
          http://jenkins-ci.org/commit/jenkins.io/5d68ab40bd08275d1a581a1389b230375d844536
          Log:
          Merge pull request #966 from vkotovv/skipAfterUnstable-docs

          Added documentation for skipStagesAfterUnstable (JENKINS-42039)

          Compare: https://github.com/jenkins-infra/jenkins.io/compare/81fe52134d63...5d68ab40bd08

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: R. Tyler Croy Path: content/doc/book/pipeline/syntax.adoc http://jenkins-ci.org/commit/jenkins.io/5d68ab40bd08275d1a581a1389b230375d844536 Log: Merge pull request #966 from vkotovv/skipAfterUnstable-docs Added documentation for skipStagesAfterUnstable ( JENKINS-42039 ) Compare: https://github.com/jenkins-infra/jenkins.io/compare/81fe52134d63...5d68ab40bd08

          Liam Newman added a comment -

          Bulk closing resolved issues.

          Liam Newman added a comment - Bulk closing resolved issues.

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

              Created:
              Updated:
              Resolved: