tf-gerrit-tforg-l2: fix gerrit trigger structure
The review of this job failed the automated sanity check at:
https://review.trustedfirmware.org/c/ci/tf-a-job-configs/+/6384
Fix the trigger to match the documented structure of gerrit triggers at:
https://docs.openstack.org/infra/jenkins-job-builder/triggers.html?highlight=gerrit#triggers.gerrit
So the job can actually be deployed on the server.
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Change-Id: I501126caacb40ee1b8c35eb20dbd538551c733dd
diff --git a/tf-gerrit-tforg-l2.yaml b/tf-gerrit-tforg-l2.yaml
index 6f05af7..b7ed925 100644
--- a/tf-gerrit-tforg-l2.yaml
+++ b/tf-gerrit-tforg-l2.yaml
@@ -129,18 +129,18 @@
triggers:
- gerrit:
server-name: review.trustedfirmware.org
- projects:
- - branches:
- - branch-compare-type: PLAIN
- branch-pattern: integration
- project-compare-type: PLAIN
- project-pattern: TF-A/trusted-firmware-a
trigger-on:
- comment-added-event:
approval-category: "Allow-CI"
approval-value: 2
- override-votes: true
- gerrit-build-successful-verified-value: 1
- gerrit-build-failed-verified-value: -1
- gerrit-build-unstable-verified-value: -1
- approval-value: 1
+ projects:
+ - project-compare-type: PLAIN
+ project-pattern: TF-A/trusted-firmware-a
+ branches:
+ - branch-compare-type: PLAIN
+ branch-pattern: integration
+ override-votes: true
+ gerrit-build-successful-verified-value: 1
+ gerrit-build-failed-verified-value: -1
+ gerrit-build-unstable-verified-value: -1
+ approval-value: 1