blob: abe0493ce5ea71a9de330fd11aa4249fdfd65d93 [file] [log] [blame]
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -05001- job:
Leonardo Sandovalffaee982021-11-11 10:27:57 -06002 name: tf-a-gerrit-tforg-l2
Paul Sokolovskybd2d0642023-06-06 19:49:22 +03003 node: docker-amd64-tf-a-jammy
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -05004 project-type: multijob
5 concurrent: true
6 disabled: false
7 description: |
8 Job that triggers for every TF-A 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:
Arthur She1e9ab362025-02-25 14:30:42 -080016 days-to-keep: 15
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050017 parameters:
18 - string:
19 name: GERRIT_PROJECT
20 default: 'TF-A/trusted-firmware-a'
21 - string:
22 name: GERRIT_BRANCH
Leonardo Sandoval3da340d2021-02-09 14:53:30 -060023 default: 'refs/heads/integration'
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050024 - string:
25 name: GERRIT_REFSPEC
Leonardo Sandoval3da340d2021-02-09 14:53:30 -060026 default: '+refs/heads/integration:refs/remotes/origin/integration'
Milosz Wasilewski10438582020-12-03 11:36:21 +000027 - string:
28 name: GERRIT_PATCHSET_NUMBER
29 default: ''
30 - string:
31 name: GERRIT_CHANGE_NUMBER
32 default: ''
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050033 - string:
34 name: TF_GERRIT_REFSPEC
35 default: ${GERRIT_REFSPEC}
36 description: 'Parameter only used by the clone script'
37 - string:
Paul Sokolovsky3f523012023-03-01 16:19:39 +070038 name: TFTF_GERRIT_PROJECT
39 default: 'TF-A/tf-a-tests'
40 - string:
41 name: TFTF_GERRIT_BRANCH
42 default: 'refs/heads/master'
43 - string:
44 name: TFTF_GERRIT_REFSPEC
45 default: '+refs/heads/master:refs/remotes/origin/master'
46 - string:
Paul Sokolovskyd840f242024-02-02 12:48:47 +070047 name: SPM_REFSPEC
48 default: '+refs/heads/master:refs/remotes/origin/master'
49 description: |
50 SPM(Hafnium) refspec to use. The master branch is used by default.
51 - string:
52 name: CI_REFSPEC
53 default: '+refs/heads/master:refs/remotes/origin/master'
54 - string:
Saheer Babub495f032025-01-21 23:01:11 +000055 name: JOBS_REFSPEC
56 default: 'refs/heads/master'
57 description: |
58 tf-a-job-configs refspec to use. The master branch is used by default.
59 - string:
Paul Sokolovskyd840f242024-02-02 12:48:47 +070060 name: MBEDTLS_URL
Lauren Wehrmeistercec409a2025-04-03 14:34:02 -050061 default: 'https://github.com/Mbed-TLS/mbedtls/archive/mbedtls-3.6.3.tar.gz'
Paul Sokolovskyd840f242024-02-02 12:48:47 +070062 - string:
Paul Sokolovskyccbe4af2023-10-04 22:53:03 +030063 name: LAVA_RETRIES
Paul Sokolovsky048d74a2023-10-04 23:40:00 +030064 default: 2
Paul Sokolovskyccbe4af2023-10-04 22:53:03 +030065 description: |
66 Number of tries submitting job to LAVA in case it fails (stopgap measure against nondeterministic failures)
67 - string:
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050068 name: SHARE_FOLDER
69 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
70 description: 'Folder containing shared repositories for downstream pipeline jobs'
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050071 wrappers:
72 - credentials-binding:
73 - ssh-user-private-key:
74 credential-id: TFA_CI_BOT_USER_SSH_KEY
75 key-file-variable: CI_BOT_KEY
76 username-variable: CI_BOT_USERNAME
77 passphrase-variable: ''
78 - workspace-cleanup
79 - timestamps
80 builders:
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050081 - shell:
82 !include-raw: scripts/clone.sh
Fathi Boudra9c8a9452020-12-08 22:16:57 +010083 - shell: |
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050084 #!/bin/bash
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050085 set -e
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050086 cat << EOF > env.param
Milosz Wasilewski10438582020-12-03 11:36:21 +000087 GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER}
88 GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER}
Milosz Wasilewski204a27e2020-12-10 10:29:45 +000089 GERRIT_HOST=${GERRIT_HOST}
Milosz Wasilewski10438582020-12-03 11:36:21 +000090 QA_SERVER_PROJECT=${JOB_NAME}
91 QA_SERVER_VERSION=${BUILD_NUMBER}
Leonardo Sandoval030e3362021-06-17 11:38:25 -050092 TF_GERRIT_PROJECT=${GERRIT_PROJECT}
93 TF_GERRIT_BRANCH=${GERRIT_BRANCH}
94 TF_GERRIT_REFSPEC=${GERRIT_REFSPEC}
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050095 SHARE_FOLDER=${SHARE_FOLDER}
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050096 EOF
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050097 - multijob:
98 condition: COMPLETED
99 name: Carry out level 1 tests
100 projects:
101 - kill-phase-on: NEVER
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600102 name: tf-a-gerrit-tforg-l1
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500103 current-parameters: true
104 property-file: env.param
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500105 - multijob:
106 condition: COMPLETED
107 name: Build Trusted Firmware
108 projects:
109 - kill-phase-on: NEVER
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600110 name: tf-a-ci-gateway
Paul Sokolovskyd255a1a2024-02-02 13:57:30 +0700111 current-parameters: true
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500112 predefined-parameters: |
113 TEST_GROUPS=tf-l2-build-fvp tf-l2-build-juno
114 TF_REFSPEC=$GERRIT_REFSPEC
115 property-file: env.param
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500116 - multijob:
117 condition: COMPLETED
Manish Pandey3c8b6702024-03-20 15:38:46 +0000118 name: Run platform boot tests
Manish Pandey253f88a2022-06-28 11:59:28 +0100119 projects:
120 - kill-phase-on: NEVER
121 name: tf-a-ci-gateway
122 predefined-parameters: |
Manish Pandey939c5002024-03-22 14:06:21 +0000123 TEST_GROUPS=tf-l2-boot-tests-arm-plats tf-l2-boot-tests-partner-boards
Manish Pandey253f88a2022-06-28 11:59:28 +0100124 TF_REFSPEC=$GERRIT_REFSPEC
125 property-file: env.param
126 - multijob:
127 condition: COMPLETED
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500128 name: TFTF tests
129 projects:
130 - kill-phase-on: NEVER
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600131 name: tf-a-ci-gateway
Paul Sokolovskyd255a1a2024-02-02 13:57:30 +0700132 current-parameters: true
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500133 predefined-parameters: |
Leonardo Sandoval0b9ee852021-02-12 18:27:37 -0600134 TEST_GROUPS=tftf-l1-fvp tftf-l1-juno tftf-l2-fvp-auxiliary tftf-l2-fvp-dynamiq tftf-l2-fwu tftf-l2-fvp
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500135 TF_REFSPEC=$GERRIT_REFSPEC
136 property-file: env.param
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500137 - multijob:
138 condition: COMPLETED
139 name: Boot up to the Linux shell prompt
140 projects:
141 - kill-phase-on: NEVER
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600142 name: tf-a-ci-gateway
Paul Sokolovskyd255a1a2024-02-02 13:57:30 +0700143 current-parameters: true
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500144 predefined-parameters: |
Manish Pandey3c8b6702024-03-20 15:38:46 +0000145 TEST_GROUPS=tf-l2-boot-tests-aarch32 tf-l2-boot-tests-bl2_el3 tf-l2-boot-tests-cortex tf-l2-boot-tests-juno tf-l2-boot-tests-latest tf-l2-boot-tests-misc tf-l2-boot-tests-rootfs tf-l2-boot-tests-spm-mm spm-l2-boot-tests
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500146 TF_REFSPEC=$GERRIT_REFSPEC
147 property-file: env.param
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500148 - conditional-step:
149 condition-command: |-
150 [ "$NOMINATION_FILE" ]
151 condition-kind: shell
152 on-evaluation-failure: dont-run
153 steps:
154 - multijob:
155 condition: COMPLETED
156 name: Nominated tests
157 projects:
158 - kill-phase-on: NEVER
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600159 name: tf-a-ci-gateway
Paul Sokolovskyd255a1a2024-02-02 13:57:30 +0700160 current-parameters: true
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500161 predefined-parameters: |
162 TEST_GROUPS=@$NOMINATION_FILE
163 TF_REFSPEC=$GERRIT_REFSPEC
164 property-file: env.param
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500165 triggers:
166 - gerrit:
167 server-name: review.trustedfirmware.org
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500168 trigger-on:
169 - comment-added-event:
170 approval-category: "Allow-CI"
171 approval-value: 2
Riku Voipiocfaf87d2020-12-03 10:23:16 +0200172 projects:
173 - project-compare-type: PLAIN
174 project-pattern: TF-A/trusted-firmware-a
175 branches:
176 - branch-compare-type: PLAIN
177 branch-pattern: integration
178 override-votes: true
Fathi Boudra0dcfdbe2020-12-14 10:16:12 +0100179 gerrit-build-started-verified-value: 0
Riku Voipiocfaf87d2020-12-03 10:23:16 +0200180 gerrit-build-successful-verified-value: 1
Arthur She06125a42021-10-19 22:58:21 -0700181 gerrit-build-failed-verified-value: -1
Riku Voipiocfaf87d2020-12-03 10:23:16 +0200182 gerrit-build-unstable-verified-value: -1
Fathi Boudra0dcfdbe2020-12-14 10:16:12 +0100183 gerrit-build-notbuilt-verified-value: 0
184 gerrit-build-started-codereview-value: 0
185 gerrit-build-successful-codereview-value: 0
186 gerrit-build-failed-codereview-value: 0
Arthur She06125a42021-10-19 22:58:21 -0700187 gerrit-build-unstable-codereview-value: 0
Fathi Boudra0dcfdbe2020-12-14 10:16:12 +0100188 gerrit-build-notbuilt-codereview-value: 0
189 failure-message: 'OpenCI: build failed'
190 successful-message: 'OpenCI: build successful'
191 unstable-message: 'OpenCI: build unstable'
192 notbuilt-message: 'OpenCI: no builds executed'
Fathi Boudra0dcfdbe2020-12-14 10:16:12 +0100193 silent: false
194 silent-start: false