I have a job
job-1 with two resources
mon-to-fri-office-hours that are both intended to be triggers for the job. (See sample pipeline config below).
The idea is that I want
job-1 to be triggered by a new commit to
repository-1 but at the same time don’t want the job to run outside business hours. i.e. If there’s a commit to
repository-1 on Friday at 6PM, I don’t want
job-1 to run until the following Monday at 9AM.
The current situation is that
job-1 can be triggered by either
mon-to-fri-office-hours resource. So it seems that the resource triggers are an OR operation? Could it be possible to handle them as an AND operation?
jobs: - name: job-1 plan: - get: repository-1 trigger: true - get: mon-to-fri-office-hours trigger: true resources: - name: repository-1 type: git source: branch: master uri: <repository-1-uri> - name: mon-to-fri-office-hours type: time source: interval: 5m days: [Monday, Tuesday, Wednesday, Thursday, Friday] start: 9:00 AM stop: 5:00 PM location: America/New_York