Merge "Add always-dynamic-branches option"

This commit is contained in:
Zuul
2022-06-22 21:54:55 +00:00
committed by Gerrit Code Review
12 changed files with 335 additions and 7 deletions

View File

@@ -0,0 +1,10 @@
- tenant:
name: tenant-one
source:
gerrit:
config-projects:
- common-config
untrusted-projects:
- org/project:
always-dynamic-branches:
- "^feature/.*"

View File

@@ -0,0 +1,10 @@
- tenant:
name: tenant-one
source:
gerrit:
config-projects:
- common-config
untrusted-projects:
- org/project:
exclude-branches:
- "^feature/.*"

View File

@@ -0,0 +1 @@
---

View 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

View File

@@ -0,0 +1 @@
test

View 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

View File

@@ -0,0 +1,11 @@
- tenant:
name: tenant-one
source:
gerrit:
config-projects:
- common-config
untrusted-projects:
- org/project:
include-branches:
- master
- stable