This page provides an example of a pipeline that is triggered by a time resource on a pre-determined interval.
The time resource produces a new trigger (or a new version in Concourse resource lingo) for the time interval that was declared in its definition in the pipeline configuration file.
- For example, a trigger for a time range:
resources:
- name: trigger-daily-between-1am-and-2am
type: time
source:
start: 1:00 AM
stop: 2:00 AM
location: America/Phoenix
or, a trigger for a time interval:
resources:
- name: trigger-every-3-minutes
type: time
source:
interval: 3m
The pipeline below provides a sample of multiple jobs that are automatically triggered by a single interval time resource. Download its configuration file here.
To create the sample pipeline in your concourse server, download file scheduled-pipeline-01 and issue the following fly command:
fly -t <your-concourse-alias> set-pipeline -p simple-timer -c scheduled-pipeline-01.yml
Then unpaused the pipeline in Concourse and it should automatically get triggered within 3 minutes.