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

Conditional application of triggers in Declarative

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

            Unassigned Unassigned
            docwhat Christian Höltje
            Votes:
            48 Vote for this issue
            Watchers:
            61 Start watching this issue

              Created:
              Updated: