Paul Sokolovsky | 04b2e1f | 2023-05-18 00:45:31 +0300 | [diff] [blame] | 1 | - job: |
| 2 | name: tf-a-lts2.8-main |
Paul Sokolovsky | 209f663 | 2023-06-01 20:34:54 +0300 | [diff] [blame] | 3 | node: docker-amd64-tf-a-lts2.8-jammy |
Paul Sokolovsky | 04b2e1f | 2023-05-18 00:45:31 +0300 | [diff] [blame] | 4 | project-type: multijob |
| 5 | concurrent: true |
| 6 | disabled: false |
| 7 | description: Main CI job for Trusted Firmware. |
| 8 | properties: |
Arthur She | 0cfe364 | 2025-01-10 21:49:38 -0800 | [diff] [blame] | 9 | - 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 Sokolovsky | 04b2e1f | 2023-05-18 00:45:31 +0300 | [diff] [blame] | 16 | parameters: |
Arthur She | 0cfe364 | 2025-01-10 21:49:38 -0800 | [diff] [blame] | 17 | - string: |
| 18 | name: TF_GERRIT_PROJECT |
Chris Kay | 675db4f | 2025-06-24 14:14:34 +0100 | [diff] [blame] | 19 | default: TF-A/trusted-firmware-a |
Arthur She | 0cfe364 | 2025-01-10 21:49:38 -0800 | [diff] [blame] | 20 | - string: |
| 21 | name: TF_GERRIT_BRANCH |
Chris Kay | 675db4f | 2025-06-24 14:14:34 +0100 | [diff] [blame] | 22 | default: refs/heads/lts-v2.8 |
Arthur She | 0cfe364 | 2025-01-10 21:49:38 -0800 | [diff] [blame] | 23 | - string: |
| 24 | name: TF_GERRIT_REFSPEC |
Chris Kay | 675db4f | 2025-06-24 14:14:34 +0100 | [diff] [blame] | 25 | default: +refs/heads/lts-v2.8:refs/remotes/origin/lts-v2.8 |
Arthur She | 0cfe364 | 2025-01-10 21:49:38 -0800 | [diff] [blame] | 26 | - string: |
| 27 | name: TFTF_GERRIT_PROJECT |
Chris Kay | 675db4f | 2025-06-24 14:14:34 +0100 | [diff] [blame] | 28 | default: TF-A/tf-a-tests |
Arthur She | 0cfe364 | 2025-01-10 21:49:38 -0800 | [diff] [blame] | 29 | - string: |
| 30 | name: TFTF_GERRIT_BRANCH |
Chris Kay | 675db4f | 2025-06-24 14:14:34 +0100 | [diff] [blame] | 31 | default: refs/heads/lts-v2.8 |
Arthur She | 0cfe364 | 2025-01-10 21:49:38 -0800 | [diff] [blame] | 32 | - string: |
| 33 | name: TFTF_GERRIT_REFSPEC |
Chris Kay | 675db4f | 2025-06-24 14:14:34 +0100 | [diff] [blame] | 34 | default: +refs/heads/lts-v2.8:refs/remotes/origin/lts-v2.8 |
Arthur She | 0cfe364 | 2025-01-10 21:49:38 -0800 | [diff] [blame] | 35 | - string: |
Chris Kay | 675db4f | 2025-06-24 14:14:34 +0100 | [diff] [blame] | 36 | name: SPM_REFSPEC |
| 37 | default: v2.8 |
| 38 | description: | |
| 39 | SPM(Hafnium) refspec to use. The master branch is used by default. |
Arthur She | 0cfe364 | 2025-01-10 21:49:38 -0800 | [diff] [blame] | 40 | - string: |
| 41 | name: CI_REFSPEC |
Chris Kay | 675db4f | 2025-06-24 14:14:34 +0100 | [diff] [blame] | 42 | default: +refs/heads/lts-v2.8:refs/remotes/origin/lts-v2.8 |
Arthur She | 0cfe364 | 2025-01-10 21:49:38 -0800 | [diff] [blame] | 43 | - string: |
Saheer Babu | b495f03 | 2025-01-21 23:01:11 +0000 | [diff] [blame] | 44 | name: JOBS_REFSPEC |
Chris Kay | 675db4f | 2025-06-24 14:14:34 +0100 | [diff] [blame] | 45 | default: refs/heads/master |
Saheer Babu | b495f03 | 2025-01-21 23:01:11 +0000 | [diff] [blame] | 46 | description: | |
| 47 | tf-a-job-configs refspec to use. The master branch is used by default. |
| 48 | - string: |
Arthur She | 0cfe364 | 2025-01-10 21:49:38 -0800 | [diff] [blame] | 49 | name: MBEDTLS_URL |
Chris Kay | 675db4f | 2025-06-24 14:14:34 +0100 | [diff] [blame] | 50 | default: https://github.com/Mbed-TLS/mbedtls/archive/mbedtls-3.6.3.tar.gz |
Arthur She | 0cfe364 | 2025-01-10 21:49:38 -0800 | [diff] [blame] | 51 | - 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 Kay | 675db4f | 2025-06-24 14:14:34 +0100 | [diff] [blame] | 69 | default: /srv/shared/${JOB_NAME}/${BUILD_NUMBER} |
| 70 | description: Folder containing shared repositories for downstream pipeline jobs |
Paul Sokolovsky | 04b2e1f | 2023-05-18 00:45:31 +0300 | [diff] [blame] | 71 | triggers: |
Chris Kay | 675db4f | 2025-06-24 14:14:34 +0100 | [diff] [blame] | 72 | - timed: H H(0-7) * * 3,6 |
Paul Sokolovsky | 04b2e1f | 2023-05-18 00:45:31 +0300 | [diff] [blame] | 73 | 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 Kay | 675db4f | 2025-06-24 14:14:34 +0100 | [diff] [blame] | 79 | passphrase-variable: "" |
Paul Sokolovsky | 04b2e1f | 2023-05-18 00:45:31 +0300 | [diff] [blame] | 80 | - workspace-cleanup |
| 81 | - timestamps |
| 82 | builders: |
Chris Kay | 675db4f | 2025-06-24 14:14:34 +0100 | [diff] [blame] | 83 | - shell: !include-raw: scripts/clone.sh |
Arthur She | 0cfe364 | 2025-01-10 21:49:38 -0800 | [diff] [blame] | 84 | - 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 Kay | 675db4f | 2025-06-24 14:14:34 +0100 | [diff] [blame] | 103 | - shell: !include-raw: scripts/lts-check-last-commit.sh |
Arthur She | 0cfe364 | 2025-01-10 21:49:38 -0800 | [diff] [blame] | 104 | - 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 Kay | 675db4f | 2025-06-24 14:14:34 +0100 | [diff] [blame] | 113 | - name: tf-a-static-checks |
| 114 | current-parameters: true |
| 115 | kill-phase-on: NEVER |
| 116 | property-file: tf-a-env.param |
Arthur She | 0cfe364 | 2025-01-10 21:49:38 -0800 | [diff] [blame] | 117 | - multijob: |
| 118 | name: Build Trusted Firmware |
| 119 | condition: COMPLETED |
| 120 | projects: |
Chris Kay | 675db4f | 2025-06-24 14:14:34 +0100 | [diff] [blame] | 121 | - 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 She | 0cfe364 | 2025-01-10 21:49:38 -0800 | [diff] [blame] | 146 | - multijob: |
| 147 | name: TFTF Tests for FVP |
| 148 | condition: COMPLETED |
| 149 | projects: |
Chris Kay | 675db4f | 2025-06-24 14:14:34 +0100 | [diff] [blame] | 150 | - 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 She | 0cfe364 | 2025-01-10 21:49:38 -0800 | [diff] [blame] | 174 | - multijob: |
| 175 | name: Boot up to the Linux shell prompt |
| 176 | condition: COMPLETED |
| 177 | projects: |
Chris Kay | 675db4f | 2025-06-24 14:14:34 +0100 | [diff] [blame] | 178 | - 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 She | 0cfe364 | 2025-01-10 21:49:38 -0800 | [diff] [blame] | 202 | - multijob: |
| 203 | name: Boot up to the Linux shell prompt - Part 2 |
| 204 | condition: COMPLETED |
| 205 | projects: |
Chris Kay | 675db4f | 2025-06-24 14:14:34 +0100 | [diff] [blame] | 206 | - 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 She | 0cfe364 | 2025-01-10 21:49:38 -0800 | [diff] [blame] | 242 | - multijob: |
| 243 | name: Juno Boot Tests |
| 244 | condition: COMPLETED |
| 245 | projects: |
Chris Kay | 675db4f | 2025-06-24 14:14:34 +0100 | [diff] [blame] | 246 | - 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 She | 0cfe364 | 2025-01-10 21:49:38 -0800 | [diff] [blame] | 258 | - multijob: |
| 259 | name: Miscellaneous tests |
| 260 | condition: COMPLETED |
| 261 | projects: |
Chris Kay | 675db4f | 2025-06-24 14:14:34 +0100 | [diff] [blame] | 262 | - 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 She | 0cfe364 | 2025-01-10 21:49:38 -0800 | [diff] [blame] | 298 | - multijob: |
| 299 | name: Run doc build check |
| 300 | condition: COMPLETED |
| 301 | projects: |
Chris Kay | 675db4f | 2025-06-24 14:14:34 +0100 | [diff] [blame] | 302 | - 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 She | 0cfe364 | 2025-01-10 21:49:38 -0800 | [diff] [blame] | 307 | - multijob: |
| 308 | name: Generate visualizations |
| 309 | condition: COMPLETED |
| 310 | projects: |
Chris Kay | 675db4f | 2025-06-24 14:14:34 +0100 | [diff] [blame] | 311 | # - 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 She | 0cfe364 | 2025-01-10 21:49:38 -0800 | [diff] [blame] | 319 | - 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 Sokolovsky | 04b2e1f | 2023-05-18 00:45:31 +0300 | [diff] [blame] | 337 | publishers: |
Arthur She | 9f3a0d6 | 2025-01-27 07:59:10 -0800 | [diff] [blame] | 338 | - 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 Kay | 675db4f | 2025-06-24 14:14:34 +0100 | [diff] [blame] | 347 | on-failure: nothing |
Arthur She | 0cfe364 | 2025-01-10 21:49:38 -0800 | [diff] [blame] | 348 | - email: |
Govindraj Raja | 3ceffb0 | 2025-06-13 11:28:23 -0500 | [diff] [blame] | 349 | recipients: bipin.ravi@arm.com, vwadekar@nvidia.com, yann.gautier@st.com, jidong@google.com, govindraj.raja@arm.com |