Multibranch pipeline: conditional triggers

XMLWordPrintable

      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')
          }

            Assignee:
            Andrew Bayer
            Reporter:
            Łukasz Dudek
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: