blob: dda7ab5cd45c8811cde451e5df20c3a3d2e7cb47 [file] [log] [blame]
Paul Sokolovsky04b2e1f2023-05-18 00:45:31 +03001- job:
2 name: tf-a-lts2.8-main
Paul Sokolovsky209f6632023-06-01 20:34:54 +03003 node: docker-amd64-tf-a-lts2.8-jammy
Paul Sokolovsky04b2e1f2023-05-18 00:45:31 +03004 project-type: multijob
5 concurrent: true
6 disabled: false
7 description: Main CI job for Trusted Firmware.
8 properties:
Arthur She0cfe3642025-01-10 21:49:38 -08009 - throttle:
10 option: project
11 enabled: true
12 max-total: 5
13 - build-discarder:
14 days-to-keep: 60
15 num-to-keep: 30
Paul Sokolovsky04b2e1f2023-05-18 00:45:31 +030016 parameters:
Arthur She0cfe3642025-01-10 21:49:38 -080017 - string:
18 name: TF_GERRIT_PROJECT
Chris Kay675db4f2025-06-24 14:14:34 +010019 default: TF-A/trusted-firmware-a
Arthur She0cfe3642025-01-10 21:49:38 -080020 - string:
21 name: TF_GERRIT_BRANCH
Chris Kay675db4f2025-06-24 14:14:34 +010022 default: refs/heads/lts-v2.8
Arthur She0cfe3642025-01-10 21:49:38 -080023 - string:
24 name: TF_GERRIT_REFSPEC
Chris Kay675db4f2025-06-24 14:14:34 +010025 default: +refs/heads/lts-v2.8:refs/remotes/origin/lts-v2.8
Arthur She0cfe3642025-01-10 21:49:38 -080026 - string:
27 name: TFTF_GERRIT_PROJECT
Chris Kay675db4f2025-06-24 14:14:34 +010028 default: TF-A/tf-a-tests
Arthur She0cfe3642025-01-10 21:49:38 -080029 - string:
30 name: TFTF_GERRIT_BRANCH
Chris Kay675db4f2025-06-24 14:14:34 +010031 default: refs/heads/lts-v2.8
Arthur She0cfe3642025-01-10 21:49:38 -080032 - string:
33 name: TFTF_GERRIT_REFSPEC
Chris Kay675db4f2025-06-24 14:14:34 +010034 default: +refs/heads/lts-v2.8:refs/remotes/origin/lts-v2.8
Arthur She0cfe3642025-01-10 21:49:38 -080035 - string:
Chris Kay675db4f2025-06-24 14:14:34 +010036 name: SPM_REFSPEC
37 default: v2.8
38 description: |
39 SPM(Hafnium) refspec to use. The master branch is used by default.
Arthur She0cfe3642025-01-10 21:49:38 -080040 - string:
41 name: CI_REFSPEC
Chris Kay675db4f2025-06-24 14:14:34 +010042 default: +refs/heads/lts-v2.8:refs/remotes/origin/lts-v2.8
Arthur She0cfe3642025-01-10 21:49:38 -080043 - string:
Saheer Babub495f032025-01-21 23:01:11 +000044 name: JOBS_REFSPEC
Chris Kay675db4f2025-06-24 14:14:34 +010045 default: refs/heads/master
Saheer Babub495f032025-01-21 23:01:11 +000046 description: |
47 tf-a-job-configs refspec to use. The master branch is used by default.
48 - string:
Arthur She0cfe3642025-01-10 21:49:38 -080049 name: MBEDTLS_URL
Chris Kay675db4f2025-06-24 14:14:34 +010050 default: https://github.com/Mbed-TLS/mbedtls/archive/mbedtls-3.6.3.tar.gz
Arthur She0cfe3642025-01-10 21:49:38 -080051 - string:
52 name: LAVA_RETRIES
53 default: 2
54 description: |
55 Number of tries submitting job to LAVA in case it fails (stopgap measure against nondeterministic failures)
56 - string:
57 name: USE_TUXSUITE_FVP
58 default: 1
59 description: |
60 Whether to submit FVP tests via TuxSuite (instead of LAVA)
61 - bool:
62 name: FORCE_TO_BUILD
63 default: false
64 description: |
65 If there are no new commits in trusted-firmware-a tf-a-tests, or tf-a-ci-scripts the build will be sikpped.
66 However, you can always force to run the build
67 - string:
68 name: SHARE_FOLDER
Chris Kay675db4f2025-06-24 14:14:34 +010069 default: /srv/shared/${JOB_NAME}/${BUILD_NUMBER}
70 description: Folder containing shared repositories for downstream pipeline jobs
Paul Sokolovsky04b2e1f2023-05-18 00:45:31 +030071 triggers:
Chris Kay675db4f2025-06-24 14:14:34 +010072 - timed: H H(0-7) * * 3,6
Paul Sokolovsky04b2e1f2023-05-18 00:45:31 +030073 wrappers:
74 - credentials-binding:
75 - ssh-user-private-key:
76 credential-id: TFA_CI_BOT_USER_SSH_KEY
77 key-file-variable: CI_BOT_KEY
78 username-variable: CI_BOT_USERNAME
Chris Kay675db4f2025-06-24 14:14:34 +010079 passphrase-variable: ""
Paul Sokolovsky04b2e1f2023-05-18 00:45:31 +030080 - workspace-cleanup
81 - timestamps
82 builders:
Chris Kay675db4f2025-06-24 14:14:34 +010083 - shell: !include-raw: scripts/clone.sh
Arthur She0cfe3642025-01-10 21:49:38 -080084 - shell: |
85 #!/bin/bash
86 set -e
87 cat << EOF > tf-a-env.param
88 GERRIT_PROJECT=${TF_GERRIT_PROJECT}
89 GERRIT_BRANCH=${TF_GERRIT_BRANCH}
90 GERRIT_REFSPEC=${TF_GERRIT_REFSPEC}
91 QA_SERVER_PROJECT=${JOB_NAME}
92 QA_SERVER_VERSION=${BUILD_NUMBER}
93 SHARE_FOLDER=${SHARE_FOLDER}
94 EOF
95 cat << EOF > tf-a-tests-env.param
96 GERRIT_PROJECT=${TFTF_GERRIT_PROJECT}
97 GERRIT_BRANCH=${TFTF_GERRIT_BRANCH}
98 GERRIT_REFSPEC=${TFTF_GERRIT_REFSPEC}
99 QA_SERVER_PROJECT=${JOB_NAME}
100 QA_SERVER_VERSION=${BUILD_NUMBER}
101 SHARE_FOLDER=${SHARE_FOLDER}
102 EOF
Chris Kay675db4f2025-06-24 14:14:34 +0100103 - shell: !include-raw: scripts/lts-check-last-commit.sh
Arthur She0cfe3642025-01-10 21:49:38 -0800104 - conditional-step:
105 condition-kind: file-exists
106 condition-filename: TO_BUILD
107 condition-basedir: workspace
108 steps:
109 - multijob:
110 name: Run static checks on the code
111 condition: COMPLETED
112 projects:
Chris Kay675db4f2025-06-24 14:14:34 +0100113 - name: tf-a-static-checks
114 current-parameters: true
115 kill-phase-on: NEVER
116 property-file: tf-a-env.param
Arthur She0cfe3642025-01-10 21:49:38 -0800117 - multijob:
118 name: Build Trusted Firmware
119 condition: COMPLETED
120 projects:
Chris Kay675db4f2025-06-24 14:14:34 +0100121 - name: tf-a-lts2.8-ci-gateway
122 alias: tf-l1-build-fvp tf-l2-build-fvp
123 current-parameters: true
124 kill-phase-on: NEVER
125 predefined-parameters: |
126 TEST_GROUPS=tf-l1-build-fvp tf-l2-build-fvp
127 property-file: tf-a-env.param
128 - name: tf-a-lts2.8-ci-gateway
129 alias: tf-l1-build-juno tf-l2-build-juno
130 current-parameters: true
131 kill-phase-on: NEVER
132 predefined-parameters: TEST_GROUPS=tf-l1-build-juno tf-l2-build-juno
133 property-file: tf-a-env.param
134 - name: tf-a-lts2.8-ci-gateway
135 alias: tf-l1-build-plat
136 current-parameters: true
137 kill-phase-on: NEVER
138 predefined-parameters: TEST_GROUPS=tf-l1-build-plat
139 property-file: tf-a-env.param
140 - name: tf-a-lts2.8-ci-gateway
141 alias: tf-l1-build-clang
142 current-parameters: true
143 kill-phase-on: NEVER
144 predefined-parameters: TEST_GROUPS=tf-l1-build-clang
145 property-file: tf-a-env.param
Arthur She0cfe3642025-01-10 21:49:38 -0800146 - multijob:
147 name: TFTF Tests for FVP
148 condition: COMPLETED
149 projects:
Chris Kay675db4f2025-06-24 14:14:34 +0100150 - name: tf-a-lts2.8-ci-gateway
151 alias: tftf-l2-fwu
152 current-parameters: true
153 kill-phase-on: NEVER
154 predefined-parameters: TEST_GROUPS=tftf-l2-fwu
155 property-file: tf-a-tests-env.param
156 - name: tf-a-lts2.8-ci-gateway
157 alias: tftf-l1-fvp tftf-l2-fvp-auxiliary
158 current-parameters: true
159 kill-phase-on: NEVER
160 predefined-parameters: TEST_GROUPS=tftf-l1-fvp tftf-l2-fvp-auxiliary
161 property-file: tf-a-tests-env.param
162 - name: tf-a-lts2.8-ci-gateway
163 alias: tftf-l2-fvp tftf-l2-fvp-dynamiq
164 current-parameters: true
165 kill-phase-on: NEVER
166 predefined-parameters: TEST_GROUPS=tftf-l2-fvp tftf-l2-fvp-dynamiq
167 property-file: tf-a-tests-env.param
168 - name: tf-a-lts2.8-ci-gateway
169 alias: tftf-l2-extensive-tests-fvp
170 current-parameters: true
171 kill-phase-on: NEVER
172 predefined-parameters: TEST_GROUPS=tftf-l2-extensive-tests-fvp
173 property-file: tf-a-tests-env.param
Arthur She0cfe3642025-01-10 21:49:38 -0800174 - multijob:
175 name: Boot up to the Linux shell prompt
176 condition: COMPLETED
177 projects:
Chris Kay675db4f2025-06-24 14:14:34 +0100178 - name: tf-a-lts2.8-ci-gateway
179 alias: tf-l2-boot-tests-aarch32
180 current-parameters: true
181 kill-phase-on: NEVER
182 predefined-parameters: TEST_GROUPS=tf-l2-boot-tests-aarch32
183 property-file: tf-a-env.param
184 - name: tf-a-lts2.8-ci-gateway
185 alias: tf-l2-boot-tests-rootfs
186 current-parameters: true
187 kill-phase-on: NEVER
188 predefined-parameters: TEST_GROUPS=tf-l2-boot-tests-rootfs
189 property-file: tf-a-env.param
190 - name: tf-a-lts2.8-ci-gateway
191 alias: tf-l2-boot-tests-spm-mm
192 current-parameters: true
193 kill-phase-on: NEVER
194 predefined-parameters: TEST_GROUPS=tf-l2-boot-tests-spm-mm
195 property-file: tf-a-env.param
196 - name: tf-a-lts2.8-ci-gateway
197 alias: spm-l2-boot-tests
198 current-parameters: true
199 kill-phase-on: NEVER
200 predefined-parameters: TEST_GROUPS=spm-l2-boot-tests
201 property-file: tf-a-env.param
Arthur She0cfe3642025-01-10 21:49:38 -0800202 - multijob:
203 name: Boot up to the Linux shell prompt - Part 2
204 condition: COMPLETED
205 projects:
Chris Kay675db4f2025-06-24 14:14:34 +0100206 - name: tf-a-lts2.8-ci-gateway
207 alias: tf-l2-boot-tests-misc
208 current-parameters: true
209 kill-phase-on: NEVER
210 predefined-parameters: TEST_GROUPS=tf-l2-boot-tests-misc
211 property-file: tf-a-env.param
212 - name: tf-a-lts2.8-ci-gateway
213 alias: tf-l2-boot-tests-latest
214 current-parameters: true
215 kill-phase-on: NEVER
216 predefined-parameters: TEST_GROUPS=tf-l2-boot-tests-latest
217 property-file: tf-a-env.param
218 - name: tf-a-lts2.8-ci-gateway
219 alias: tf-l2-boot-tests-cortex
220 current-parameters: true
221 kill-phase-on: NEVER
222 predefined-parameters: TEST_GROUPS=tf-l2-boot-tests-cortex
223 property-file: tf-a-env.param
224 - name: tf-a-lts2.8-ci-gateway
225 alias: tf-l2-boot-tests-gicv2
226 current-parameters: true
227 kill-phase-on: NEVER
228 predefined-parameters: TEST_GROUPS=tf-l2-boot-tests-gicv2
229 property-file: tf-a-env.param
230 - name: tf-a-lts2.8-ci-gateway
231 alias: tf-l2-boot-tests-bl2_el3
232 current-parameters: true
233 kill-phase-on: NEVER
234 predefined-parameters: TEST_GROUPS=tf-l2-boot-tests-bl2_el3
235 property-file: tf-a-env.param
236 - name: tf-a-lts2.8-ci-gateway
237 alias: qemu-boot-tests
238 current-parameters: true
239 kill-phase-on: NEVER
240 predefined-parameters: TEST_GROUPS=qemu-boot-tests
241 property-file: tf-a-env.param
Arthur She0cfe3642025-01-10 21:49:38 -0800242 - multijob:
243 name: Juno Boot Tests
244 condition: COMPLETED
245 projects:
Chris Kay675db4f2025-06-24 14:14:34 +0100246 - name: tf-a-lts2.8-ci-gateway
247 alias: tf-l2-boot-tests-juno
248 current-parameters: true
249 kill-phase-on: NEVER
250 predefined-parameters: TEST_GROUPS=tf-l2-boot-tests-juno
251 property-file: tf-a-env.param
252 - name: tf-a-lts2.8-ci-gateway
253 alias: tftf-l1-juno
254 current-parameters: true
255 kill-phase-on: NEVER
256 predefined-parameters: TEST_GROUPS=tftf-l1-juno
257 property-file: tf-a-env.param
Arthur She0cfe3642025-01-10 21:49:38 -0800258 - multijob:
259 name: Miscellaneous tests
260 condition: COMPLETED
261 projects:
Chris Kay675db4f2025-06-24 14:14:34 +0100262 - name: tf-a-lts2.8-ci-gateway
263 alias: tf-l3-boot-tests-css
264 current-parameters: true
265 kill-phase-on: NEVER
266 predefined-parameters: TEST_GROUPS=tf-l3-boot-tests-css
267 property-file: tf-a-env.param
268 - name: tf-a-lts2.8-ci-gateway
269 alias: tf-l3-boot-tests-spm-mm
270 current-parameters: true
271 kill-phase-on: NEVER
272 predefined-parameters: TEST_GROUPS=tf-l3-boot-tests-spm-mm
273 property-file: tf-a-env.param
274 - name: tf-a-lts2.8-ci-gateway
275 alias: tf-l3-boot-tests-ras
276 current-parameters: true
277 kill-phase-on: NEVER
278 predefined-parameters: TEST_GROUPS=tf-l3-boot-tests-ras
279 property-file: tf-a-env.param
280 - name: tf-a-lts2.8-ci-gateway
281 alias: tf-l3-boot-tests-misc
282 current-parameters: true
283 kill-phase-on: NEVER
284 predefined-parameters: TEST_GROUPS=tf-l3-boot-tests-misc
285 property-file: tf-a-env.param
286 - name: tf-a-lts2.8-ci-gateway
287 alias: spm-l3-boot-tests
288 current-parameters: true
289 kill-phase-on: NEVER
290 predefined-parameters: TEST_GROUPS=spm-l3-boot-tests
291 property-file: tf-a-env.param
292 - name: tf-a-lts2.8-ci-gateway
293 alias: tf-l1-boot-tests-plat
294 current-parameters: true
295 kill-phase-on: NEVER
296 predefined-parameters: TEST_GROUPS=tf-l1-boot-tests-plat
297 property-file: tf-a-env.param
Arthur She0cfe3642025-01-10 21:49:38 -0800298 - multijob:
299 name: Run doc build check
300 condition: COMPLETED
301 projects:
Chris Kay675db4f2025-06-24 14:14:34 +0100302 - name: tf-a-lts2.8-ci-gateway
303 current-parameters: true
304 kill-phase-on: NEVER
305 predefined-parameters: TEST_GROUPS=tf-l1-check-docs
306 property-file: tf-a-env.param
Arthur She0cfe3642025-01-10 21:49:38 -0800307 - multijob:
308 name: Generate visualizations
309 condition: COMPLETED
310 projects:
Chris Kay675db4f2025-06-24 14:14:34 +0100311 # - name: tf-a-sloc-visualization
312 # current-parameters: true
313 # kill-phase-on: NEVER
314 # property-file: tf-a-env.param
315 # - name: tf-a-test-category-visualization
316 # current-parameters: true
317 # kill-phase-on: NEVER
318 # property-file: tf-a-env.param
Arthur She0cfe3642025-01-10 21:49:38 -0800319 - name: tf-a-test-result-visualization
320 current-parameters: true
321 kill-phase-on: NEVER
322 predefined-parameters: TARGET_BUILD=${JOB_NAME}/${BUILD_NUMBER}
323 property-file: tf-a-env.param
324 # Run the unstable TF-A Tests at the end but do not let their results
325 # participate in the job's success/failure.
326 - trigger-builds:
327 - project: tf-a-lts2.8-ci-gateway
328 current-parameters: True
329 property-file: tf-a-tests-env.param
330 property-file-fail-on-missing: True
331 predefined-parameters: TEST_GROUPS=tftf-unstable
332 block: True
333 block-thresholds:
334 build-step-failure-threshold: never
335 unstable-threshold: never
336 failure-threshold: never
Paul Sokolovsky04b2e1f2023-05-18 00:45:31 +0300337 publishers:
Arthur She9f3a0d62025-01-27 07:59:10 -0800338 - conditional-publisher:
339 - condition-kind: shell
340 condition-command: |
341 ! test -f ${WORKSPACE}/TO_BUILD
342 action:
343 - groovy-postbuild:
344 script: |
345 def currentBuild = Thread.currentThread().executable
346 currentBuild.setDescription("There are no new commits in the repositories, skip the build!")
Chris Kay675db4f2025-06-24 14:14:34 +0100347 on-failure: nothing
Arthur She0cfe3642025-01-10 21:49:38 -0800348 - email:
Govindraj Raja3ceffb02025-06-13 11:28:23 -0500349 recipients: bipin.ravi@arm.com, vwadekar@nvidia.com, yann.gautier@st.com, jidong@google.com, govindraj.raja@arm.com