Convert Verified MaxWithBlock to submit-requirement in testing

Now that we've dropped gerrit 3.5 we can convert label functions to
submit requirements. This is required for Gerrit 3.7 but is optional
under 3.6. Eventually we'll need to do this for all of our custom labels
prior to the 3.7 upgrade.

Change-Id: I4dda45040842de76c12f36b5b6d6b5948d82077a
This commit is contained in:
Clark Boylan 2023-01-13 08:39:37 -08:00
parent 2cbd400c4e
commit 499af2c0cb

View File

@ -105,12 +105,15 @@
cat >> project.config << EOF
[label "Verified"]
function = MaxWithBlock
value = -2 Fails
value = -1 Doesn't seem to work
value = 0 No score
value = +1 Works for me
value = +2 Verified
[submit-requirement "Verified"]
description = CI result votes. Maximum required to merge and is provided by the Zuul's gate queue.
submittableIf = label:Verified=MAX AND -label:Verified=MIN
canOverrideInChildProjects = false
[access "refs/heads/*"]
label-Verified = -2..+2 group CI-tools
EOF