zuul/tests/fixtures/layouts/timer-jitter.yaml
Benjamin Schanzel 736c6c45ef Fix Test Case "TestScheduler.test_timer_with_jitter"
A jitter value for the periodic pipeline in
`test_timer_with_jitter` renders this test
flaky, since we can not know when exactly the
pipeline gets triggered.
This change makes the test case deterministic
by replacing sleeps with `iterate_timeout`.

Change-Id: I2dd5222fbf33fbee234b6e1ae577db44004a2e12
2020-01-22 10:34:38 +01:00

57 lines
925 B
YAML

- pipeline:
name: check
manager: independent
trigger:
gerrit:
- event: patchset-created
success:
gerrit:
Verified: 1
failure:
gerrit:
Verified: -1
- pipeline:
name: periodic
manager: independent
trigger:
timer:
- time: '* * * * * */1 1'
- job:
name: base
parent: null
run: playbooks/base.yaml
- job:
name: project-test1
run: playbooks/project-test1.yaml
- job:
name: project-test2
run: playbooks/project-test2.yaml
- job:
name: project-bitrot
nodeset:
nodes:
- name: static
label: ubuntu-xenial
run: playbooks/project-bitrot.yaml
- project:
name: org/project1
check:
jobs:
- project-test1
- project:
name: org/project
check:
jobs:
- project-test1
- project-test2
periodic:
jobs:
- project-bitrot