I have a pipeline and 2 conditions when I want to run it: 1.cron job, 2.push to some repo
condition 1:
event:
- cron
cron:
- nightly
condition 2:
repo:
- repo-name
branch:
- master
event:
- push
Could you please tell me if I can have one pipeline with these 2 triggers at the same time? (trigger if: condition1 OR condition2)
I’ve checked this doc (Triggers | Drone), however I’m confused by this phrase: You can also combine multiple triggers. Note that all triggers must evaluate to true when combining multiple triggers.
does it mean that OR between 2 different conditions is not possible?
Note: this kind of thing can sometimes be achieved by writing 2 “copies” of the pipeline. Give each copy mutually-exclusive sets of trigger conditions, so that both pipelines never both trigger in the same build. But one or the other will trigger when one of the sets of trigger conditions evaluates to true. That lets you write “independent” sets of trigger conditions.