-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
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') } }
- is duplicated by
-
JENKINS-48898 Multibranch pipeline: conditional triggers
-
- Closed
-
- relates to
-
JENKINS-52203 Provide a 'prerequisites' sections (like triggers) that allows blocking the execution of a job
-
- Open
-
[JENKINS-42643] Conditional application of triggers in Declarative
Summary | Original: when/if doesn't work in trigger | New: Conditional application of triggers in Declarative |
Issue Type | Original: Bug [ 1 ] | New: Improvement [ 4 ] |
Link |
New:
This issue is duplicated by |
Link | New: This issue relates to JENKINS-52203 [ JENKINS-52203 ] |
Assignee | Original: Andrew Bayer [ abayer ] |