-
Type:
Improvement
-
Resolution: Unresolved
-
Priority:
Minor
-
Component/s: pipeline-model-definition-plugin
-
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
-