zuul/tests/fixtures/layouts/job-dedup-semaphore.yaml
James E. Blair 959a0b9834 Deduplicate jobs in dependency cycles
This adds support for deduplicating jobs within dependency cycles.

By default, this will happen automatically if we can determine that the
results of two builds would be expected to be identical.  This uses a
heuristic which should almost always be correct; the behavior can be
overidden otherwise.

Change-Id: I890407df822035d52ead3516942fd95e3633094b
2022-05-24 09:35:14 -07:00

71 lines
1.1 KiB
YAML

- queue:
name: integrated
allow-circular-dependencies: true
- semaphore:
name: test-semaphore
- pipeline:
name: gate
manager: dependent
success-message: Build succeeded (gate).
require:
gerrit:
approval:
- Approved: 1
trigger:
gerrit:
- event: comment-added
approval:
- Approved: 1
success:
gerrit:
Verified: 2
submit: true
failure:
gerrit:
Verified: -2
start:
gerrit:
Verified: 0
precedence: high
- job:
name: base
parent: null
run: playbooks/run.yaml
nodeset:
nodes:
- label: debian
name: controller
- job:
name: common-job
semaphore:
name: test-semaphore
required-projects:
- org/project1
- org/project2
- job:
name: project1-job
- job:
name: project2-job
- project:
name: org/project1
queue: integrated
gate:
jobs:
- common-job
- project1-job
- project:
name: org/project2
queue: integrated
gate:
jobs:
- common-job
- project2-job