Conditional application of triggers in Declarative

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      I want to be able to use trigger with cron but only for the master branch.

      if and when both don't work in the trigger context.

      Here is what I expected to work:

       

      if (env.BRANCH == 'master') {
        trigger { cron('@daily') }
      }
      

            Assignee:
            Unassigned
            Reporter:
            Christian Höltje
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: