Merge "Add always-dynamic-branches option"
This commit is contained in:
10
tests/fixtures/config/dynamic-only-project/dynamic.yaml
vendored
Normal file
10
tests/fixtures/config/dynamic-only-project/dynamic.yaml
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
- tenant:
|
||||
name: tenant-one
|
||||
source:
|
||||
gerrit:
|
||||
config-projects:
|
||||
- common-config
|
||||
untrusted-projects:
|
||||
- org/project:
|
||||
always-dynamic-branches:
|
||||
- "^feature/.*"
|
||||
10
tests/fixtures/config/dynamic-only-project/exclude.yaml
vendored
Normal file
10
tests/fixtures/config/dynamic-only-project/exclude.yaml
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
- tenant:
|
||||
name: tenant-one
|
||||
source:
|
||||
gerrit:
|
||||
config-projects:
|
||||
- common-config
|
||||
untrusted-projects:
|
||||
- org/project:
|
||||
exclude-branches:
|
||||
- "^feature/.*"
|
||||
1
tests/fixtures/config/dynamic-only-project/git/common-config/playbooks/run.yaml
vendored
Normal file
1
tests/fixtures/config/dynamic-only-project/git/common-config/playbooks/run.yaml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
---
|
||||
67
tests/fixtures/config/dynamic-only-project/git/common-config/zuul.yaml
vendored
Normal file
67
tests/fixtures/config/dynamic-only-project/git/common-config/zuul.yaml
vendored
Normal file
@@ -0,0 +1,67 @@
|
||||
- pipeline:
|
||||
name: check
|
||||
manager: independent
|
||||
trigger:
|
||||
gerrit:
|
||||
- event: patchset-created
|
||||
- event: comment-added
|
||||
comment: '^(Patch Set [0-9]+:\n\n)?(?i:recheck)$'
|
||||
success:
|
||||
gerrit:
|
||||
Verified: 1
|
||||
failure:
|
||||
gerrit:
|
||||
Verified: -1
|
||||
|
||||
- pipeline:
|
||||
name: gate
|
||||
manager: dependent
|
||||
success-message: Build succeeded (gate).
|
||||
trigger:
|
||||
gerrit:
|
||||
- event: comment-added
|
||||
approval:
|
||||
- Approved: 1
|
||||
success:
|
||||
gerrit:
|
||||
Verified: 2
|
||||
submit: true
|
||||
failure:
|
||||
gerrit:
|
||||
Verified: -2
|
||||
start:
|
||||
gerrit:
|
||||
Verified: 0
|
||||
precedence: high
|
||||
|
||||
- pipeline:
|
||||
name: post
|
||||
manager: independent
|
||||
trigger:
|
||||
gerrit:
|
||||
- event: ref-updated
|
||||
ref: ^(?!refs/).*$
|
||||
precedence: low
|
||||
|
||||
- job:
|
||||
name: base
|
||||
parent: null
|
||||
run: playbooks/run.yaml
|
||||
|
||||
- job:
|
||||
name: central-test
|
||||
|
||||
- job:
|
||||
name: central-post
|
||||
|
||||
- project:
|
||||
name: "^org/project.*"
|
||||
check:
|
||||
jobs:
|
||||
- central-test
|
||||
gate:
|
||||
jobs:
|
||||
- central-test
|
||||
post:
|
||||
jobs:
|
||||
- central-post
|
||||
1
tests/fixtures/config/dynamic-only-project/git/org_project/README
vendored
Normal file
1
tests/fixtures/config/dynamic-only-project/git/org_project/README
vendored
Normal file
@@ -0,0 +1 @@
|
||||
test
|
||||
17
tests/fixtures/config/dynamic-only-project/git/org_project/zuul.yaml
vendored
Normal file
17
tests/fixtures/config/dynamic-only-project/git/org_project/zuul.yaml
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
- job:
|
||||
name: project-test
|
||||
|
||||
# Note: this job is not expected to run
|
||||
- job:
|
||||
name: project-post
|
||||
|
||||
- project:
|
||||
check:
|
||||
jobs:
|
||||
- project-test
|
||||
gate:
|
||||
jobs:
|
||||
- project-test
|
||||
post:
|
||||
jobs:
|
||||
- project-post
|
||||
11
tests/fixtures/config/dynamic-only-project/include.yaml
vendored
Normal file
11
tests/fixtures/config/dynamic-only-project/include.yaml
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
- tenant:
|
||||
name: tenant-one
|
||||
source:
|
||||
gerrit:
|
||||
config-projects:
|
||||
- common-config
|
||||
untrusted-projects:
|
||||
- org/project:
|
||||
include-branches:
|
||||
- master
|
||||
- stable
|
||||
Reference in New Issue
Block a user