Paul Sokolovsky | fc00981 | 2023-05-18 18:26:26 +0300 | [diff] [blame] | 1 | - job: |
| 2 | name: tf-a-lts2.8-gerrit-tforg-l2 |
Paul Sokolovsky | fbb010b | 2023-06-05 11:32:17 +0300 | [diff] [blame] | 3 | node: docker-amd64-tf-a-lts2.8-jammy |
Paul Sokolovsky | fc00981 | 2023-05-18 18:26:26 +0300 | [diff] [blame] | 4 | 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: |
Chris Kay | 675db4f | 2025-06-24 14:14:34 +0100 | [diff] [blame] | 11 | - throttle: |
| 12 | option: project |
| 13 | enabled: true |
| 14 | max-total: 5 |
| 15 | - build-discarder: |
| 16 | days-to-keep: 90 |
| 17 | num-to-keep: 15 |
Paul Sokolovsky | fc00981 | 2023-05-18 18:26:26 +0300 | [diff] [blame] | 18 | parameters: |
Chris Kay | 675db4f | 2025-06-24 14:14:34 +0100 | [diff] [blame] | 19 | - string: |
| 20 | name: GERRIT_PROJECT |
| 21 | default: TF-A/trusted-firmware-a |
| 22 | - string: |
| 23 | name: GERRIT_BRANCH |
| 24 | default: refs/heads/lts-v2.8 |
| 25 | - string: |
| 26 | name: GERRIT_REFSPEC |
| 27 | default: +refs/heads/lts-v2.8:refs/remotes/origin/lts-v2.8 |
| 28 | - string: |
| 29 | name: GERRIT_PATCHSET_NUMBER |
| 30 | default: "" |
| 31 | - string: |
| 32 | name: GERRIT_CHANGE_NUMBER |
| 33 | default: "" |
| 34 | - string: |
| 35 | name: TF_GERRIT_REFSPEC |
| 36 | default: ${GERRIT_REFSPEC} |
| 37 | description: Parameter only used by the clone script |
| 38 | - string: |
| 39 | name: TFTF_GERRIT_PROJECT |
| 40 | default: TF-A/tf-a-tests |
| 41 | - string: |
| 42 | name: TFTF_GERRIT_BRANCH |
| 43 | default: refs/heads/lts-v2.8 |
| 44 | - string: |
| 45 | name: TFTF_GERRIT_REFSPEC |
| 46 | default: +refs/heads/lts-v2.8:refs/remotes/origin/lts-v2.8 |
| 47 | - string: |
| 48 | name: SPM_REFSPEC |
| 49 | default: v2.8 |
| 50 | description: | |
| 51 | SPM(Hafnium) refspec to use. The master branch is used by default. |
| 52 | - string: |
| 53 | name: CI_REFSPEC |
| 54 | default: +refs/heads/lts-v2.8:refs/remotes/origin/lts-v2.8 |
| 55 | - string: |
| 56 | name: JOBS_REFSPEC |
| 57 | default: refs/heads/master |
| 58 | description: | |
| 59 | tf-a-job-configs refspec to use. The master branch is used by default. |
| 60 | - string: |
| 61 | name: MBEDTLS_URL |
| 62 | default: https://github.com/Mbed-TLS/mbedtls/archive/mbedtls-3.6.3.tar.gz |
| 63 | - string: |
| 64 | name: LAVA_RETRIES |
| 65 | default: 2 |
| 66 | description: | |
| 67 | Number of tries submitting job to LAVA in case it fails (stopgap measure against nondeterministic failures) |
| 68 | - string: |
| 69 | name: SHARE_FOLDER |
| 70 | default: /srv/shared/${JOB_NAME}/${BUILD_NUMBER} |
| 71 | description: Folder containing shared repositories for downstream pipeline jobs |
Paul Sokolovsky | fc00981 | 2023-05-18 18:26:26 +0300 | [diff] [blame] | 72 | wrappers: |
| 73 | - credentials-binding: |
| 74 | - ssh-user-private-key: |
| 75 | credential-id: TFA_CI_BOT_USER_SSH_KEY |
| 76 | key-file-variable: CI_BOT_KEY |
| 77 | username-variable: CI_BOT_USERNAME |
Chris Kay | 675db4f | 2025-06-24 14:14:34 +0100 | [diff] [blame] | 78 | passphrase-variable: "" |
Paul Sokolovsky | fc00981 | 2023-05-18 18:26:26 +0300 | [diff] [blame] | 79 | - workspace-cleanup |
| 80 | - timestamps |
| 81 | builders: |
Chris Kay | 675db4f | 2025-06-24 14:14:34 +0100 | [diff] [blame] | 82 | - shell: !include-raw: scripts/clone.sh |
| 83 | - shell: | |
| 84 | #!/bin/bash |
| 85 | set -e |
| 86 | cat << EOF > env.param |
| 87 | GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER} |
| 88 | GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER} |
| 89 | GERRIT_HOST=${GERRIT_HOST} |
| 90 | QA_SERVER_PROJECT=${JOB_NAME} |
| 91 | QA_SERVER_VERSION=${BUILD_NUMBER} |
| 92 | TF_GERRIT_PROJECT=${GERRIT_PROJECT} |
| 93 | TF_GERRIT_BRANCH=${GERRIT_BRANCH} |
| 94 | TF_GERRIT_REFSPEC=${GERRIT_REFSPEC} |
| 95 | SHARE_FOLDER=${SHARE_FOLDER} |
| 96 | EOF |
| 97 | - multijob: |
| 98 | condition: COMPLETED |
| 99 | name: Carry out level 1 tests |
| 100 | projects: |
| 101 | - kill-phase-on: NEVER |
| 102 | name: tf-a-lts2.8-gerrit-tforg-l1 |
| 103 | current-parameters: true |
| 104 | property-file: env.param |
| 105 | - multijob: |
| 106 | condition: COMPLETED |
| 107 | name: Build Trusted Firmware |
| 108 | projects: |
Paul Sokolovsky | fc00981 | 2023-05-18 18:26:26 +0300 | [diff] [blame] | 109 | - kill-phase-on: NEVER |
Paul Sokolovsky | fbb010b | 2023-06-05 11:32:17 +0300 | [diff] [blame] | 110 | name: tf-a-lts2.8-ci-gateway |
Paul Sokolovsky | fc00981 | 2023-05-18 18:26:26 +0300 | [diff] [blame] | 111 | current-parameters: true |
| 112 | predefined-parameters: | |
Chris Kay | 675db4f | 2025-06-24 14:14:34 +0100 | [diff] [blame] | 113 | TEST_GROUPS=tf-l2-build-fvp tf-l2-build-juno |
Paul Sokolovsky | fc00981 | 2023-05-18 18:26:26 +0300 | [diff] [blame] | 114 | TF_REFSPEC=$GERRIT_REFSPEC |
| 115 | property-file: env.param |
Chris Kay | 675db4f | 2025-06-24 14:14:34 +0100 | [diff] [blame] | 116 | - multijob: |
| 117 | condition: COMPLETED |
| 118 | name: TFTF tests |
| 119 | projects: |
| 120 | - kill-phase-on: NEVER |
| 121 | name: tf-a-lts2.8-ci-gateway |
| 122 | current-parameters: true |
| 123 | predefined-parameters: | |
| 124 | TEST_GROUPS=tftf-l1-fvp tftf-l1-juno tftf-l2-fvp-auxiliary tftf-l2-fvp-dynamiq tftf-l2-fwu tftf-l2-fvp |
| 125 | TF_REFSPEC=$GERRIT_REFSPEC |
| 126 | property-file: env.param |
| 127 | - multijob: |
| 128 | condition: COMPLETED |
| 129 | name: Boot up to the Linux shell prompt |
| 130 | projects: |
| 131 | - kill-phase-on: NEVER |
| 132 | name: tf-a-lts2.8-ci-gateway |
| 133 | current-parameters: true |
| 134 | predefined-parameters: | |
| 135 | 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 |
| 136 | TF_REFSPEC=$GERRIT_REFSPEC |
| 137 | property-file: env.param |
| 138 | - conditional-step: |
| 139 | condition-command: '[ "$NOMINATION_FILE" ]' |
| 140 | condition-kind: shell |
| 141 | on-evaluation-failure: dont-run |
| 142 | steps: |
| 143 | - multijob: |
| 144 | condition: COMPLETED |
| 145 | name: Nominated tests |
| 146 | projects: |
| 147 | - kill-phase-on: NEVER |
| 148 | name: tf-a-lts2.8-ci-gateway |
| 149 | current-parameters: true |
| 150 | predefined-parameters: | |
| 151 | TEST_GROUPS=@$NOMINATION_FILE |
| 152 | TF_REFSPEC=$GERRIT_REFSPEC |
| 153 | property-file: env.param |
Paul Sokolovsky | fc00981 | 2023-05-18 18:26:26 +0300 | [diff] [blame] | 154 | triggers: |
Chris Kay | 675db4f | 2025-06-24 14:14:34 +0100 | [diff] [blame] | 155 | - gerrit: |
| 156 | server-name: review.trustedfirmware.org |
| 157 | trigger-on: |
| 158 | - comment-added-event: |
| 159 | approval-category: Allow-CI |
| 160 | approval-value: 2 |
| 161 | projects: |
| 162 | - project-compare-type: PLAIN |
| 163 | project-pattern: TF-A/trusted-firmware-a |
| 164 | branches: |
| 165 | - branch-compare-type: PLAIN |
| 166 | branch-pattern: lts-v2.8 |
| 167 | override-votes: true |
| 168 | gerrit-build-started-verified-value: 0 |
| 169 | gerrit-build-successful-verified-value: 1 |
| 170 | gerrit-build-failed-verified-value: -1 |
| 171 | gerrit-build-unstable-verified-value: -1 |
| 172 | gerrit-build-notbuilt-verified-value: 0 |
| 173 | gerrit-build-started-codereview-value: 0 |
| 174 | gerrit-build-successful-codereview-value: 0 |
| 175 | gerrit-build-failed-codereview-value: 0 |
| 176 | gerrit-build-unstable-codereview-value: 0 |
| 177 | gerrit-build-notbuilt-codereview-value: 0 |
| 178 | failure-message: 'OpenCI: build failed' |
| 179 | successful-message: 'OpenCI: build successful' |
| 180 | unstable-message: 'OpenCI: build unstable' |
| 181 | notbuilt-message: 'OpenCI: no builds executed' |
| 182 | silent: false |
| 183 | silent-start: false |