edff2c26c2
We want to support jobs specifying that they check out a tag rather than merely a branch. This accidentally worked in Zuul v2 with zuul-cloner, and some jobs have come to rely on the behavior. There's no reason not to support it, so let's do so. However, for clarity, change the name of the option to "override-checkout". This is intended to be intuitive (anything you can tell git to 'checkout' you can put here), while avoiding the suggestion that only branches or tags may be checked out. The old form, "override-branch" is deprecated and will be removed. Change-Id: Icc2907e72596626e96d2dc9f6ab1c3026f4085ab
37 lines
582 B
YAML
37 lines
582 B
YAML
- pipeline:
|
|
name: check
|
|
manager: independent
|
|
trigger:
|
|
gerrit:
|
|
- event: patchset-created
|
|
success:
|
|
gerrit:
|
|
Verified: 1
|
|
failure:
|
|
gerrit:
|
|
Verified: -1
|
|
|
|
- job:
|
|
name: base
|
|
parent: null
|
|
|
|
- job:
|
|
name: integration
|
|
required-projects:
|
|
- org/project1
|
|
- name: org/project2
|
|
override-checkout: test-tag
|
|
run: playbooks/integration.yaml
|
|
|
|
- project:
|
|
name: org/project1
|
|
check:
|
|
jobs:
|
|
- integration
|
|
|
|
- project:
|
|
name: org/project2
|
|
check:
|
|
jobs:
|
|
- integration
|