blob: 59a5ec444313e01333ec4bf361b57ea3904c7d45 [file] [log] [blame]
Leonardo Sandoval2902d2f2020-11-25 12:32:31 -06001- job:
Leonardo Sandovalffaee982021-11-11 10:27:57 -06002 name: tf-a-main
Boyan Karatotev5c87c072023-02-10 11:04:58 +00003 node: docker-amd64-tf-a-jammy
Leonardo Sandoval2902d2f2020-11-25 12:32:31 -06004 project-type: multijob
5 concurrent: true
6 disabled: false
7 description: Main CI job for Trusted Firmware.
8 properties:
9 - throttle:
10 option: project
11 enabled: true
12 max-total: 5
13 - build-discarder:
Leonardo Sandovala4feb552021-03-02 12:10:21 -060014 days-to-keep: 14
15 num-to-keep: 60
Leonardo Sandoval2902d2f2020-11-25 12:32:31 -060016 parameters:
17 - string:
18 name: TF_GERRIT_PROJECT
19 default: 'TF-A/trusted-firmware-a'
20 - string:
21 name: TF_GERRIT_BRANCH
Leonardo Sandoval3da340d2021-02-09 14:53:30 -060022 default: 'refs/heads/integration'
Leonardo Sandoval2902d2f2020-11-25 12:32:31 -060023 - string:
24 name: TF_GERRIT_REFSPEC
Leonardo Sandoval3da340d2021-02-09 14:53:30 -060025 default: '+refs/heads/integration:refs/remotes/origin/integration'
Leonardo Sandoval2902d2f2020-11-25 12:32:31 -060026 - string:
27 name: TFTF_GERRIT_PROJECT
28 default: 'TF-A/tf-a-tests'
29 - string:
30 name: TFTF_GERRIT_BRANCH
Leonardo Sandoval3da340d2021-02-09 14:53:30 -060031 default: 'refs/heads/master'
Leonardo Sandoval2902d2f2020-11-25 12:32:31 -060032 - string:
33 name: TFTF_GERRIT_REFSPEC
Leonardo Sandoval3da340d2021-02-09 14:53:30 -060034 default: '+refs/heads/master:refs/remotes/origin/master'
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050035 - string:
Paul Sokolovsky52038942023-03-15 16:49:57 +070036 name: SPM_REFSPEC
37 default: '+refs/heads/master:refs/remotes/origin/master'
38 description: |
39 SPM(Hafnium) refspec to use. The master branch is used by default.
40 - string:
Manish V Badarkhe08e108b2025-04-11 08:01:14 +010041 name: RMM_REFSPEC
42 default: '+refs/heads/main:refs/remotes/origin/main'
43 description: |
44 tf-rmm refspec to use. The main branch is used by default.
45 - string:
Zelalem Awekee8801df2021-10-25 13:41:44 -050046 name: CI_REFSPEC
47 default: '+refs/heads/master:refs/remotes/origin/master'
48 - string:
Arthur She9296f802025-02-08 21:02:52 -080049 name: JOBS_REFSPEC
50 default: 'refs/heads/master'
51 description: |
52 tf-a-job-configs refspec to use. The master branch is used by default.
53 - string:
Paul Sokolovsky078b36d2023-05-31 23:34:25 +030054 name: MBEDTLS_URL
Lauren Wehrmeistercec409a2025-04-03 14:34:02 -050055 default: 'https://github.com/Mbed-TLS/mbedtls/archive/mbedtls-3.6.3.tar.gz'
Paul Sokolovsky078b36d2023-05-31 23:34:25 +030056 - string:
Paul Sokolovskyc3ac8602023-10-04 22:43:47 +030057 name: LAVA_RETRIES
Paul Sokolovsky6a92e112023-10-06 11:26:45 +030058 default: 2
Paul Sokolovskyc3ac8602023-10-04 22:43:47 +030059 description: |
60 Number of tries submitting job to LAVA in case it fails (stopgap measure against nondeterministic failures)
61 - string:
Paul Sokolovskyac7599e2023-12-30 11:58:33 +030062 name: USE_TUXSUITE_FVP
Paul Sokolovsky6bdd0ec2024-01-20 01:16:18 +070063 default: 1
Paul Sokolovskyac7599e2023-12-30 11:58:33 +030064 description: |
65 Whether to submit FVP tests via TuxSuite (instead of LAVA)
66 - string:
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050067 name: SHARE_FOLDER
68 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
69 description: 'Folder containing shared repositories for downstream pipeline jobs'
Leonardo Sandoval2902d2f2020-11-25 12:32:31 -060070 wrappers:
71 - credentials-binding:
72 - ssh-user-private-key:
73 credential-id: TFA_CI_BOT_USER_SSH_KEY
74 key-file-variable: CI_BOT_KEY
75 username-variable: CI_BOT_USERNAME
76 passphrase-variable: ''
77 - workspace-cleanup
78 - timestamps
79 builders:
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050080 - shell:
81 !include-raw: scripts/clone.sh
Fathi Boudra9c8a9452020-12-08 22:16:57 +010082 - shell: |
Leonardo Sandoval2902d2f2020-11-25 12:32:31 -060083 #!/bin/bash
Leonardo Sandoval2902d2f2020-11-25 12:32:31 -060084 set -e
Leonardo Sandoval2902d2f2020-11-25 12:32:31 -060085 cat << EOF > tf-a-env.param
86 GERRIT_PROJECT=${TF_GERRIT_PROJECT}
87 GERRIT_BRANCH=${TF_GERRIT_BRANCH}
88 GERRIT_REFSPEC=${TF_GERRIT_REFSPEC}
Milosz Wasilewski10438582020-12-03 11:36:21 +000089 QA_SERVER_PROJECT=${JOB_NAME}
90 QA_SERVER_VERSION=${BUILD_NUMBER}
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050091 SHARE_FOLDER=${SHARE_FOLDER}
Leonardo Sandoval2902d2f2020-11-25 12:32:31 -060092 EOF
Leonardo Sandoval2902d2f2020-11-25 12:32:31 -060093 cat << EOF > tf-a-tests-env.param
94 GERRIT_PROJECT=${TFTF_GERRIT_PROJECT}
95 GERRIT_BRANCH=${TFTF_GERRIT_BRANCH}
96 GERRIT_REFSPEC=${TFTF_GERRIT_REFSPEC}
Milosz Wasilewski10438582020-12-03 11:36:21 +000097 QA_SERVER_PROJECT=${JOB_NAME}
98 QA_SERVER_VERSION=${BUILD_NUMBER}
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050099 SHARE_FOLDER=${SHARE_FOLDER}
Leonardo Sandoval2902d2f2020-11-25 12:32:31 -0600100 EOF
Leonardo Sandoval2902d2f2020-11-25 12:32:31 -0600101 - multijob:
102 name: Run static checks on the code
103 condition: COMPLETED
104 projects:
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600105 - name: tf-a-static-checks
Leonardo Sandoval2902d2f2020-11-25 12:32:31 -0600106 current-parameters: true
107 kill-phase-on: NEVER
Leonardo Sandoval2902d2f2020-11-25 12:32:31 -0600108 property-file: tf-a-env.param
Leonardo Sandoval2902d2f2020-11-25 12:32:31 -0600109 - multijob:
110 name: Build Trusted Firmware
111 condition: COMPLETED
112 projects:
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600113 - name: tf-a-ci-gateway
Paul Sokolovsky77be8fa2023-01-14 09:34:55 +0300114 alias: tf-l1-build-fvp tf-l2-build-fvp
Leonardo Sandoval2902d2f2020-11-25 12:32:31 -0600115 current-parameters: true
116 kill-phase-on: NEVER
117 predefined-parameters: |
118 TEST_GROUPS=tf-l1-build-fvp tf-l2-build-fvp
119 property-file: tf-a-env.param
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600120 - name: tf-a-ci-gateway
Paul Sokolovsky77be8fa2023-01-14 09:34:55 +0300121 alias: tf-l1-build-juno tf-l2-build-juno
Leonardo Sandoval2902d2f2020-11-25 12:32:31 -0600122 current-parameters: true
123 kill-phase-on: NEVER
124 predefined-parameters: TEST_GROUPS=tf-l1-build-juno tf-l2-build-juno
125 property-file: tf-a-env.param
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600126 - name: tf-a-ci-gateway
Paul Sokolovsky77be8fa2023-01-14 09:34:55 +0300127 alias: tf-l1-build-plat
Leonardo Sandoval2902d2f2020-11-25 12:32:31 -0600128 current-parameters: true
129 kill-phase-on: NEVER
130 predefined-parameters: TEST_GROUPS=tf-l1-build-plat
131 property-file: tf-a-env.param
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600132 - name: tf-a-ci-gateway
Paul Sokolovsky77be8fa2023-01-14 09:34:55 +0300133 alias: tf-l1-build-clang
Leonardo Sandoval2902d2f2020-11-25 12:32:31 -0600134 current-parameters: true
135 kill-phase-on: NEVER
136 predefined-parameters: TEST_GROUPS=tf-l1-build-clang
137 property-file: tf-a-env.param
Leonardo Sandoval2902d2f2020-11-25 12:32:31 -0600138 - multijob:
Manish Pandeyb5fcc442022-06-20 14:08:45 +0100139 name: TFTF Tests for FVP
Leonardo Sandoval2902d2f2020-11-25 12:32:31 -0600140 condition: COMPLETED
141 projects:
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600142 - name: tf-a-ci-gateway
Paul Sokolovsky77be8fa2023-01-14 09:34:55 +0300143 alias: tftf-l2-fwu
Leonardo Sandoval2902d2f2020-11-25 12:32:31 -0600144 current-parameters: true
145 kill-phase-on: NEVER
146 predefined-parameters: TEST_GROUPS=tftf-l2-fwu
147 property-file: tf-a-tests-env.param
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600148 - name: tf-a-ci-gateway
Paul Sokolovsky77be8fa2023-01-14 09:34:55 +0300149 alias: tftf-l1-fvp tftf-l2-fvp-auxiliary
Leonardo Sandoval2902d2f2020-11-25 12:32:31 -0600150 current-parameters: true
151 kill-phase-on: NEVER
Manish Pandeyb5fcc442022-06-20 14:08:45 +0100152 predefined-parameters: TEST_GROUPS=tftf-l1-fvp tftf-l2-fvp-auxiliary
Leonardo Sandoval2902d2f2020-11-25 12:32:31 -0600153 property-file: tf-a-tests-env.param
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600154 - name: tf-a-ci-gateway
Paul Sokolovsky77be8fa2023-01-14 09:34:55 +0300155 alias: tftf-l2-fvp tftf-l2-fvp-dynamiq
Leonardo Sandoval2902d2f2020-11-25 12:32:31 -0600156 current-parameters: true
157 kill-phase-on: NEVER
158 predefined-parameters: TEST_GROUPS=tftf-l2-fvp tftf-l2-fvp-dynamiq
159 property-file: tf-a-tests-env.param
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600160 - name: tf-a-ci-gateway
Paul Sokolovsky77be8fa2023-01-14 09:34:55 +0300161 alias: tftf-l2-extensive-tests-fvp
Leonardo Sandoval2902d2f2020-11-25 12:32:31 -0600162 current-parameters: true
163 kill-phase-on: NEVER
164 predefined-parameters: TEST_GROUPS=tftf-l2-extensive-tests-fvp
165 property-file: tf-a-tests-env.param
Leonardo Sandoval2902d2f2020-11-25 12:32:31 -0600166 - multijob:
167 name: Boot up to the Linux shell prompt
168 condition: COMPLETED
169 projects:
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600170 - name: tf-a-ci-gateway
Paul Sokolovsky77be8fa2023-01-14 09:34:55 +0300171 alias: tf-l2-boot-tests-aarch32
Leonardo Sandoval2902d2f2020-11-25 12:32:31 -0600172 current-parameters: true
173 kill-phase-on: NEVER
174 predefined-parameters: TEST_GROUPS=tf-l2-boot-tests-aarch32
175 property-file: tf-a-env.param
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600176 - name: tf-a-ci-gateway
Paul Sokolovsky77be8fa2023-01-14 09:34:55 +0300177 alias: tf-l2-boot-tests-rootfs
Leonardo Sandoval2902d2f2020-11-25 12:32:31 -0600178 current-parameters: true
179 kill-phase-on: NEVER
180 predefined-parameters: TEST_GROUPS=tf-l2-boot-tests-rootfs
181 property-file: tf-a-env.param
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600182 - name: tf-a-ci-gateway
Paul Sokolovsky77be8fa2023-01-14 09:34:55 +0300183 alias: tf-l2-boot-tests-spm-mm
Leonardo Sandoval2902d2f2020-11-25 12:32:31 -0600184 current-parameters: true
185 kill-phase-on: NEVER
Leonardo Sandoval67ac6f12020-12-10 11:02:26 -0600186 predefined-parameters: TEST_GROUPS=tf-l2-boot-tests-spm-mm
Leonardo Sandoval2902d2f2020-11-25 12:32:31 -0600187 property-file: tf-a-env.param
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600188 - name: tf-a-ci-gateway
Paul Sokolovsky77be8fa2023-01-14 09:34:55 +0300189 alias: spm-l2-boot-tests
Leonardo Sandoval0e0ee892021-02-16 10:39:51 -0600190 current-parameters: true
191 kill-phase-on: NEVER
192 predefined-parameters: TEST_GROUPS=spm-l2-boot-tests
193 property-file: tf-a-env.param
Leonardo Sandoval2902d2f2020-11-25 12:32:31 -0600194 - multijob:
195 name: Boot up to the Linux shell prompt - Part 2
196 condition: COMPLETED
197 projects:
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600198 - name: tf-a-ci-gateway
Paul Sokolovsky77be8fa2023-01-14 09:34:55 +0300199 alias: tf-l2-boot-tests-misc
Leonardo Sandoval2902d2f2020-11-25 12:32:31 -0600200 current-parameters: true
201 kill-phase-on: NEVER
202 predefined-parameters: TEST_GROUPS=tf-l2-boot-tests-misc
203 property-file: tf-a-env.param
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600204 - name: tf-a-ci-gateway
Paul Sokolovsky77be8fa2023-01-14 09:34:55 +0300205 alias: tf-l2-boot-tests-latest
Leonardo Sandoval2902d2f2020-11-25 12:32:31 -0600206 current-parameters: true
207 kill-phase-on: NEVER
208 predefined-parameters: TEST_GROUPS=tf-l2-boot-tests-latest
209 property-file: tf-a-env.param
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600210 - name: tf-a-ci-gateway
Paul Sokolovsky77be8fa2023-01-14 09:34:55 +0300211 alias: tf-l2-boot-tests-cortex
Leonardo Sandoval2902d2f2020-11-25 12:32:31 -0600212 current-parameters: true
213 kill-phase-on: NEVER
214 predefined-parameters: TEST_GROUPS=tf-l2-boot-tests-cortex
215 property-file: tf-a-env.param
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600216 - name: tf-a-ci-gateway
Paul Sokolovsky77be8fa2023-01-14 09:34:55 +0300217 alias: tf-l2-boot-tests-gicv2
Leonardo Sandoval2902d2f2020-11-25 12:32:31 -0600218 current-parameters: true
219 kill-phase-on: NEVER
220 predefined-parameters: TEST_GROUPS=tf-l2-boot-tests-gicv2
221 property-file: tf-a-env.param
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600222 - name: tf-a-ci-gateway
Paul Sokolovsky77be8fa2023-01-14 09:34:55 +0300223 alias: tf-l2-boot-tests-bl2_el3
Leonardo Sandoval2902d2f2020-11-25 12:32:31 -0600224 current-parameters: true
225 kill-phase-on: NEVER
226 predefined-parameters: TEST_GROUPS=tf-l2-boot-tests-bl2_el3
227 property-file: tf-a-env.param
Harrison Mutai521b3c82022-11-08 10:18:15 +0000228 - name: tf-a-ci-gateway
Paul Sokolovsky77be8fa2023-01-14 09:34:55 +0300229 alias: qemu-boot-tests
Harrison Mutai521b3c82022-11-08 10:18:15 +0000230 current-parameters: true
231 kill-phase-on: NEVER
232 predefined-parameters: TEST_GROUPS=qemu-boot-tests
233 property-file: tf-a-env.param
Leonardo Sandoval2902d2f2020-11-25 12:32:31 -0600234 - multijob:
Manish Pandeyb5fcc442022-06-20 14:08:45 +0100235 name: Juno Boot Tests
236 condition: COMPLETED
237 projects:
238 - name: tf-a-ci-gateway
Paul Sokolovsky77be8fa2023-01-14 09:34:55 +0300239 alias: tf-l2-boot-tests-juno
Manish Pandeyb5fcc442022-06-20 14:08:45 +0100240 current-parameters: true
241 kill-phase-on: NEVER
242 predefined-parameters: TEST_GROUPS=tf-l2-boot-tests-juno
243 property-file: tf-a-env.param
244 - name: tf-a-ci-gateway
Paul Sokolovsky77be8fa2023-01-14 09:34:55 +0300245 alias: tftf-l1-juno
Manish Pandeyb5fcc442022-06-20 14:08:45 +0100246 current-parameters: true
247 kill-phase-on: NEVER
248 predefined-parameters: TEST_GROUPS=tftf-l1-juno
249 property-file: tf-a-env.param
250 - multijob:
Leonardo Sandoval2902d2f2020-11-25 12:32:31 -0600251 name: Miscellaneous tests
252 condition: COMPLETED
253 projects:
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600254 - name: tf-a-ci-gateway
Paul Sokolovsky77be8fa2023-01-14 09:34:55 +0300255 alias: tf-l3-boot-tests-css
Leonardo Sandoval2902d2f2020-11-25 12:32:31 -0600256 current-parameters: true
257 kill-phase-on: NEVER
258 predefined-parameters: TEST_GROUPS=tf-l3-boot-tests-css
259 property-file: tf-a-env.param
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600260 - name: tf-a-ci-gateway
Paul Sokolovsky77be8fa2023-01-14 09:34:55 +0300261 alias: tf-l3-boot-tests-spm-mm
Leonardo Sandoval2902d2f2020-11-25 12:32:31 -0600262 current-parameters: true
263 kill-phase-on: NEVER
Leonardo Sandoval67ac6f12020-12-10 11:02:26 -0600264 predefined-parameters: TEST_GROUPS=tf-l3-boot-tests-spm-mm
Leonardo Sandoval2902d2f2020-11-25 12:32:31 -0600265 property-file: tf-a-env.param
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600266 - name: tf-a-ci-gateway
Paul Sokolovsky77be8fa2023-01-14 09:34:55 +0300267 alias: tf-l3-boot-tests-ras
Leonardo Sandoval2902d2f2020-11-25 12:32:31 -0600268 current-parameters: true
269 kill-phase-on: NEVER
270 predefined-parameters: TEST_GROUPS=tf-l3-boot-tests-ras
271 property-file: tf-a-env.param
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600272 - name: tf-a-ci-gateway
Paul Sokolovsky77be8fa2023-01-14 09:34:55 +0300273 alias: tf-l3-boot-tests-misc
Leonardo Sandoval2902d2f2020-11-25 12:32:31 -0600274 current-parameters: true
275 kill-phase-on: NEVER
276 predefined-parameters: TEST_GROUPS=tf-l3-boot-tests-misc
277 property-file: tf-a-env.param
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600278 - name: tf-a-ci-gateway
Arthur Shee61c1682023-07-10 11:09:41 -0700279 alias: tf-l3-boot-tests-n1sdp
280 current-parameters: true
281 kill-phase-on: NEVER
282 predefined-parameters: TEST_GROUPS=tf-l3-boot-tests-n1sdp
283 property-file: tf-a-env.param
284 - name: tf-a-ci-gateway
Paul Sokolovsky77be8fa2023-01-14 09:34:55 +0300285 alias: spm-l3-boot-tests
Leonardo Sandoval0e0ee892021-02-16 10:39:51 -0600286 current-parameters: true
287 kill-phase-on: NEVER
288 predefined-parameters: TEST_GROUPS=spm-l3-boot-tests
289 property-file: tf-a-env.param
Arthur Shee4fa0232022-11-03 21:05:20 -0700290 - name: tf-a-ci-gateway
Manish Pandey939c5002024-03-22 14:06:21 +0000291 alias: tf-l2-boot-tests-partner-boards
Arthur Shee4fa0232022-11-03 21:05:20 -0700292 current-parameters: true
293 kill-phase-on: NEVER
Manish Pandey939c5002024-03-22 14:06:21 +0000294 predefined-parameters: TEST_GROUPS=tf-l2-boot-tests-partner-boards
Arthur Shee4fa0232022-11-03 21:05:20 -0700295 property-file: tf-a-env.param
Sandrine Bailleuxee0bac52023-05-23 08:28:43 +0200296 # Platform-specific self-tests.
297 # These tests run from the BL31 image then halt the target.
298 - name: tf-a-ci-gateway
Manish Pandey939c5002024-03-22 14:06:21 +0000299 alias: tf-l2-boot-tests-arm-plats
Sandrine Bailleuxee0bac52023-05-23 08:28:43 +0200300 current-parameters: true
301 kill-phase-on: NEVER
Manish Pandey939c5002024-03-22 14:06:21 +0000302 predefined-parameters: TEST_GROUPS=tf-l2-boot-tests-arm-plats
Sandrine Bailleuxee0bac52023-05-23 08:28:43 +0200303 property-file: tf-a-env.param
Leonardo Sandoval2902d2f2020-11-25 12:32:31 -0600304 - multijob:
Leonardo Sandoval2902d2f2020-11-25 12:32:31 -0600305 name: Run doc build check
306 condition: COMPLETED
307 projects:
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600308 - name: tf-a-ci-gateway
Paul Sokolovsky9bf26242023-06-27 22:14:10 +0300309 alias: tf-l1-check-docs
Leonardo Sandoval2902d2f2020-11-25 12:32:31 -0600310 current-parameters: true
311 kill-phase-on: NEVER
312 predefined-parameters: TEST_GROUPS=tf-l1-check-docs
313 property-file: tf-a-env.param
Harrison Mutaiee250c72022-08-05 16:28:27 +0100314 - multijob:
Chris Kaydd569e62023-02-24 13:03:13 +0000315 name: Generate visualizations
316 condition: COMPLETED
317 projects:
318 - name: tf-a-sloc-visualization
319 current-parameters: true
320 kill-phase-on: NEVER
321 property-file: tf-a-env.param
322 - name: tf-a-test-category-visualization
323 current-parameters: true
324 kill-phase-on: NEVER
325 property-file: tf-a-env.param
326 - name: tf-a-test-result-visualization
327 current-parameters: true
328 kill-phase-on: NEVER
329 predefined-parameters: TARGET_BUILD=${JOB_NAME}/${BUILD_NUMBER}
330 property-file: tf-a-env.param
Leonardo Sandoval2902d2f2020-11-25 12:32:31 -0600331 # Run the unstable TF-A Tests at the end but do not let their results
332 # participate in the job's success/failure.
333 - trigger-builds:
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600334 - project: tf-a-ci-gateway
Leonardo Sandoval2902d2f2020-11-25 12:32:31 -0600335 current-parameters: True
336 property-file: tf-a-tests-env.param
337 property-file-fail-on-missing: True
338 predefined-parameters: TEST_GROUPS=tftf-unstable
339 block: True
340 block-thresholds:
341 build-step-failure-threshold: never
342 unstable-threshold: never
343 failure-threshold: never
Leonardo Sandoval2902d2f2020-11-25 12:32:31 -0600344 # If all tests passed, catch up the master branch with integration
345 - conditional-step:
346 condition-kind: current-status
347 condition-best: SUCCESS
348 condition-worst: SUCCESS
349 steps:
Manish V Badarkheccb7c9e2023-01-05 15:58:21 +0000350 - shell: |-
351 #!/bin/bash
Arthur Sheffd432e2025-02-02 12:35:55 -0800352 #
353 if echo ${JENKINS_PUBLIC_URL} | grep -q "ci.trustedfirmware.org"; then
354 # Only do it on the OpenCI production site
355 echo "It's running on the OpenCI procution site"
356 if [ $MULTIJOB_FAILED -eq 0 ]; then
357 echo "Proceed with integration->master fast-forward merge"
358 bash "${WORKSPACE}/tf-a-ci-scripts/script/scratch_scripts/fast-forward-master.sh"
359 else
360 echo "Do not proceed with integration->master merge as sub-jobs failed"
361 fi
Manish V Badarkheccb7c9e2023-01-05 15:58:21 +0000362 else
Arthur Sheffd432e2025-02-02 12:35:55 -0800363 echo "It's NOT on the OpenCI production site"
Manish V Badarkheccb7c9e2023-01-05 15:58:21 +0000364 fi