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

Add capability for globally configured Declarative when conditions

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      It would be useful to be able to define when conditions that apply globally across all jobs, enabling things like skipping all stages with a certain name pattern (like, say, not running deploy stages on the weekend) or inspecting the stage to see if it is trying to use a service that's currently down. This would require some changes in Declarative to allow plugins to add when condition types that can't be specified in the Jenkinsfile, won't show up in validation, and won't be available in the snippet generator, and parsing/execution-side changes to support transparently adding any configured global conditions to all stages while retaining conditions directly defined on stages.

        Attachments

          Issue Links

            Activity

            Hide
            abayer Andrew Bayer added a comment -

            Draft PR up at https://github.com/jenkinsci/pipeline-model-definition-plugin/pull/409 - still need to add more javadocs etc at a minimum.

            Show
            abayer Andrew Bayer added a comment - Draft PR up at https://github.com/jenkinsci/pipeline-model-definition-plugin/pull/409 - still need to add more javadocs etc at a minimum.
            Hide
            abayer Andrew Bayer added a comment -

            This has been merged and should be in the next release of Declarative (either 1.7.3 or 1.8.0).

            Show
            abayer Andrew Bayer added a comment - This has been merged and should be in the next release of Declarative (either 1.7.3 or 1.8.0).

              People

              Assignee:
              abayer Andrew Bayer
              Reporter:
              abayer Andrew Bayer
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: