blob: 9a6b3ac342fe1c1a1dbf34f214271cc274c87376 [file] [log] [blame]
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -05001- job:
2 name: tf-tftf-gerrit-tforg-l2
3 node: master
4 project-type: multijob
5 concurrent: true
6 disabled: false
7 description: |
8 Job that triggers for every TF-A-Tests patch approved with the Allow-CI+2
9 label on review.trustedfirmware.org.
10 properties:
11 - throttle:
12 option: project
13 enabled: true
14 max-total: 5
15 - build-discarder:
16 days-to-keep: 180
17 num-to-keep: 180
18 - authorization:
Leonardo Sandovalebca8822021-01-25 18:20:04 -060019 !include: authorization.yaml.inc
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -050020 parameters:
21 - string:
22 name: GERRIT_PROJECT
23 default: 'TF-A/tf-a-tests'
24 - string:
25 name: GERRIT_BRANCH
Leonardo Sandoval3da340d2021-02-09 14:53:30 -060026 default: 'refs/heads/master'
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -050027 - string:
28 name: GERRIT_REFSPEC
Leonardo Sandoval3da340d2021-02-09 14:53:30 -060029 default: '+refs/heads/master:refs/remotes/origin/master'
Milosz Wasilewski10438582020-12-03 11:36:21 +000030 - string:
31 name: GERRIT_PATCHSET_NUMBER
32 default: ''
33 - string:
34 name: GERRIT_CHANGE_NUMBER
35 default: ''
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -050036 wrappers:
37 - credentials-binding:
38 - ssh-user-private-key:
39 credential-id: TFA_CI_BOT_USER_SSH_KEY
40 key-file-variable: CI_BOT_KEY
41 username-variable: CI_BOT_USERNAME
42 passphrase-variable: ''
43 - workspace-cleanup
44 - timestamps
45 builders:
Fathi Boudra9c8a9452020-12-08 22:16:57 +010046 - shell: |
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -050047 #!/bin/bash
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -050048 set -e
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -050049 cat << EOF > env.param
Milosz Wasilewski10438582020-12-03 11:36:21 +000050 GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER}
51 GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER}
Milosz Wasilewski204a27e2020-12-10 10:29:45 +000052 GERRIT_HOST=${GERRIT_HOST}
Milosz Wasilewski10438582020-12-03 11:36:21 +000053 QA_SERVER_PROJECT=${JOB_NAME}
54 QA_SERVER_VERSION=${BUILD_NUMBER}
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -050055 TFTF_GERRIT_PROJECT=${GERRIT_PROJECT}
56 TFTF_GERRIT_BRANCH=${GERRIT_BRANCH}
57 TFTF_GERRIT_REFSPEC=${GERRIT_REFSPEC}
58 EOF
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -050059 - multijob:
60 condition: COMPLETED
61 name: Carry out level 1 tests
62 projects:
63 - kill-phase-on: NEVER
64 name: tf-tftf-gerrit-tforg-l1
65 current-parameters: true
66 property-file: env.param
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -050067 - multijob:
68 condition: COMPLETED
69 name: Run Firmware Update Tests
70 projects:
71 - kill-phase-on: NEVER
72 name: tf-ci-gateway
73 predefined-parameters: |-
74 TEST_GROUPS=tftf-l2-fwu
75 TFTF_REFSPEC=$GERRIT_REFSPEC
76 property-file: env.param
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -050077 - multijob:
78 condition: COMPLETED
79 name: Run Level 2 testing of TF-A-Tests
80 projects:
81 - kill-phase-on: NEVER
82 name: tf-ci-gateway
83 predefined-parameters: |-
Leonardo Sandoval67ac6f12020-12-10 11:02:26 -060084 TEST_GROUPS=tftf-l2-fvp-auxiliary tftf-l2-juno tf-l2-boot-tests-spm-mm tftf-l2-fvp-dynamiq
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -050085 TFTF_REFSPEC=$GERRIT_REFSPEC
86 property-file: env.param
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -050087 - multijob:
88 condition: COMPLETED
89 name: Run extensive TF-A-Tests
90 projects:
91 - kill-phase-on: NEVER
92 name: tf-ci-gateway
93 predefined-parameters: |-
94 TEST_GROUPS=tftf-l2-extensive-tests-fvp
95 TFTF_REFSPEC=$GERRIT_REFSPEC
96 property-file: env.param
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -050097 triggers:
98 - gerrit:
99 server-name: review.trustedfirmware.org
100 projects:
101 - branches:
102 - branch-compare-type: PLAIN
103 branch-pattern: master
104 project-compare-type: PLAIN
105 project-pattern: TF-A/tf-a-tests
106 trigger-on:
107 - comment-added-event:
108 approval-category: "Allow-CI"
109 approval-value: 2
Milosz Wasilewski72b118d2020-12-03 12:18:19 +0000110 override-votes: true
111 gerrit-build-successful-verified-value: 1
112 gerrit-build-failed-verified-value: -1
113 gerrit-build-unstable-verified-value: -1