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

Pipeline Config: ability to skip whole pipeline or stages based on boolean condition

    XMLWordPrintable

Details

    Description

      A common enough pattern is to skip either a whole pipeline or a stage based on the branch of execution. This is pretty common in deployment focused pipelines, and would be a strong reason to break out of config and that would be a shame.

      It would be nice if this was somewhat first class in pipeline config. Some may be able to be done with a block scoped step... but not clear if all can be.

      A general way of saying "if this boolean condition is false, skip this stage" would be the way to go - a branch matching would be one particular use of this, but the right thing to do is go generic.

      Attachments

        Issue Links

          Activity

            abayer Andrew Bayer created issue -
            abayer Andrew Bayer made changes -
            Field Original Value New Value
            Description A common enough pattern is to skip either a whole pipeline or a stage based on the branch of execution. This is pretty common in deployment focussed pipelines, and would be a strong reason to break out of config and that would be a shame.

            It would be nice if this was somewhat first class in pipeline config. Some may be able to be done with a block scoped step... but not clear if all can be.

            In scope:

            * on-branch declaration as a peer with postBuild or stages
            * same on-branch pattern per stage
            A common enough pattern is to skip either a whole pipeline or a stage based on the branch of execution. This is pretty common in deployment focused pipelines, and would be a strong reason to break out of config and that would be a shame.

            It would be nice if this was somewhat first class in pipeline config. Some may be able to be done with a block scoped step... but not clear if all can be.

            A general way of saying "if this boolean condition is false, skip this stage" would be the way to go - a branch matching would be one particular use of this, but the right thing to do is go generic.

            Summary Pipeline Config: ability to skip whole pipeline or stages based on branch Pipeline Config: ability to skip whole pipeline or stages based on boolean condition
            abayer Andrew Bayer made changes -
            Assignee Andrew Bayer [ abayer ] rsandell [ rsandell ]
            rsandell rsandell made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            rsandell rsandell made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            rsandell rsandell made changes -
            Resolution Done [ 10000 ]
            Status In Review [ 10005 ] Resolved [ 5 ]
            reinholdfuereder Reinhold Füreder made changes -
            Link This issue is related to JENKINS-47286 [ JENKINS-47286 ]
            bitwiseman Liam Newman made changes -
            Status Resolved [ 5 ] Closed [ 6 ]

            People

              rsandell rsandell
              abayer Andrew Bayer
              Votes:
              3 Vote for this issue
              Watchers:
              18 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: