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

Multibranch pipeline: conditional triggers

    XMLWordPrintable

Details

    Description

      I'd like to use a cron trigger on a multibranch pipeline to run only one branch, or, more generally, to be able to use conditional triggers in pipelines.

      It would be great if it could be done in pipeline's code, like:

      pipeline {
          triggers {
              when { branch "master" }
              cron('H */4 * * 1-5')
          }

      Attachments

        Issue Links

          Activity

            When can we expect this to be released?

            amoreira Alfredo Moreira added a comment - When can we expect this to be released?
            bitwiseman Liam Newman added a comment -

            Bulk closing resolved issues.

            bitwiseman Liam Newman added a comment - Bulk closing resolved issues.

            People

              abayer Andrew Bayer
              ljbd Ɓukasz Dudek
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: