zuul/tests/fixtures/layout-timer-smtp.yaml
Clark Boylan 3ee090a243 Fix races in timer trigger tests.
Timer trigger tests are vulnerable to a race where the timer trigger can
enqueue new builds while we are checking the number of builds queued.
This can happen during intermediate build queue checks or in
assertFinalState.

To fix this race swap in a layout that does not use the timer trigger
which will prevent further build queueing once the timer triggered
builds have done their thing.

Change-Id: Ic9b64e34c6a39275b57b1299b47d9b1d0e0e5c79
2014-04-23 12:43:17 -07:00

24 lines
633 B
YAML

pipelines:
- name: periodic
manager: IndependentPipelineManager
trigger:
timer:
- time: '* * * * * */1'
success:
smtp:
to: alternative_me@example.com
from: zuul_from@example.com
subject: 'Periodic check for {change.project} succeeded'
jobs:
- name: project-bitrot-stable-old
success-pattern: http://logs.example.com/{job.name}/{build.number}
- name: project-bitrot-stable-older
success-pattern: http://logs.example.com/{job.name}/{build.number}
projects:
- name: org/project
periodic:
- project-bitrot-stable-old
- project-bitrot-stable-older