61e5c3a0f9
To allow a tenant to use any labels *except* some pattern, add the disallowed-labels tenant option. Both this and the allowed-labels option use re2, and therefore lookahead assertions are not supported. A complimentary option to allowed-labels is the only way to support this use case. Change-Id: Ic722b1d2b0b609ec7de583dab159094159f00630
42 lines
843 B
YAML
42 lines
843 B
YAML
- tenant:
|
|
name: tenant-one
|
|
max-job-timeout: 1800
|
|
allowed-reporters:
|
|
- gerrit
|
|
allowed-labels:
|
|
- tenant-one-.*
|
|
- ubuntu-trusty
|
|
- fake
|
|
source:
|
|
gerrit:
|
|
config-projects:
|
|
- common-config
|
|
- tenant-one-config
|
|
untrusted-projects:
|
|
- org/project1
|
|
|
|
- tenant:
|
|
name: tenant-two
|
|
max-nodes-per-job: 10
|
|
allowed-triggers: gerrit
|
|
disallowed-labels:
|
|
- tenant-one-.*
|
|
source:
|
|
gerrit:
|
|
config-projects:
|
|
- common-config
|
|
- tenant-two-config
|
|
untrusted-projects:
|
|
- org/project2
|
|
|
|
- tenant:
|
|
name: tenant-three
|
|
max-nodes-per-job: 10
|
|
allowed-triggers: gerrit
|
|
source:
|
|
gerrit:
|
|
config-projects:
|
|
- common-config
|
|
untrusted-projects:
|
|
- org/project3
|