I have to be missing something simple here. What I need is for my jobs to all kick off between 12AM and 1AM. And for me to be able to manually kick off a job at any time.
The reason we need this is because the entire pipeline takes upwards of an hour to complete. Currently it is kicking off twice per day and inevitably its when we are trying to debug some problems. So it would be nice to banish the daily run to early morning and leave the rest of the day open to getting work done.
What Ive found is that if I use a standard manual trigger and a time based trigger using start: and stop:, that I can’t kick off manual tests outside of the bounds set by start: and stop:.
Here is how a job is currently configured:
resources:
- name: midnight
type: time
icon: clock-outline
source:
start: 12:00 AM
stop: 1:00 AM
location: America/New_York - name: manual-trigger
type: time
source:
interval: 1m
jobs:
- name: start-pipeline
plan:- get: manual-trigger
trigger: false
- get: manual-trigger
- name: publishing-tests
serial_groups:- run_serial1
build_logs_to_retain: 3
plan: - get: manual-trigger
trigger: true
passed:- start-pipeline
- get: midnight
trigger: true - task: build
config:
- run_serial1