Paul Sokolovsky | 36e2da9 | 2024-02-02 14:37:31 +0700 | [diff] [blame] | 1 | - job: |
| 2 | name: tf-a-lts2.10-gerrit-tforg-l2 |
Paul Sokolovsky | 6067c52 | 2024-02-07 13:48:17 +0700 | [diff] [blame] | 3 | node: docker-amd64-tf-a-lts2.10-jammy |
Paul Sokolovsky | 36e2da9 | 2024-02-02 14:37:31 +0700 | [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: |
| 11 | - throttle: |
| 12 | option: project |
| 13 | enabled: true |
| 14 | max-total: 5 |
| 15 | - build-discarder: |
| 16 | days-to-keep: 14 |
Paul Sokolovsky | 36e2da9 | 2024-02-02 14:37:31 +0700 | [diff] [blame] | 17 | parameters: |
| 18 | - string: |
| 19 | name: GERRIT_PROJECT |
| 20 | default: 'TF-A/trusted-firmware-a' |
| 21 | - string: |
| 22 | name: GERRIT_BRANCH |
| 23 | default: 'refs/heads/lts-v2.10' |
| 24 | - string: |
| 25 | name: GERRIT_REFSPEC |
| 26 | default: '+refs/heads/lts-v2.10:refs/remotes/origin/lts-v2.10' |
| 27 | - string: |
| 28 | name: GERRIT_PATCHSET_NUMBER |
| 29 | default: '' |
| 30 | - string: |
| 31 | name: GERRIT_CHANGE_NUMBER |
| 32 | default: '' |
| 33 | - string: |
| 34 | name: TF_GERRIT_REFSPEC |
| 35 | default: ${GERRIT_REFSPEC} |
| 36 | description: 'Parameter only used by the clone script' |
| 37 | - string: |
| 38 | name: TFTF_GERRIT_PROJECT |
| 39 | default: 'TF-A/tf-a-tests' |
| 40 | - string: |
| 41 | name: TFTF_GERRIT_BRANCH |
| 42 | default: 'refs/heads/lts-v2.10' |
| 43 | - string: |
| 44 | name: TFTF_GERRIT_REFSPEC |
| 45 | default: '+refs/heads/lts-v2.10:refs/remotes/origin/lts-v2.10' |
| 46 | - string: |
| 47 | name: SPM_REFSPEC |
| 48 | default: 'v2.10' |
| 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/lts-v2.10:refs/remotes/origin/lts-v2.10' |
| 54 | - string: |
Saheer Babu | b495f03 | 2025-01-21 23:01:11 +0000 | [diff] [blame] | 55 | 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 Sokolovsky | 36e2da9 | 2024-02-02 14:37:31 +0700 | [diff] [blame] | 60 | name: MBEDTLS_URL |
Yann Gautier | 63a28f3 | 2025-04-10 17:00:43 +0200 | [diff] [blame] | 61 | default: 'https://github.com/Mbed-TLS/mbedtls/archive/mbedtls-3.6.3.tar.gz' |
Paul Sokolovsky | 36e2da9 | 2024-02-02 14:37:31 +0700 | [diff] [blame] | 62 | - string: |
| 63 | name: LAVA_RETRIES |
| 64 | default: 2 |
| 65 | description: | |
| 66 | Number of tries submitting job to LAVA in case it fails (stopgap measure against nondeterministic failures) |
| 67 | - string: |
| 68 | name: SHARE_FOLDER |
| 69 | default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}' |
| 70 | description: 'Folder containing shared repositories for downstream pipeline jobs' |
| 71 | 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: |
| 81 | - shell: |
| 82 | !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.10-gerrit-tforg-l1 |
| 103 | current-parameters: true |
| 104 | property-file: env.param |
| 105 | - multijob: |
| 106 | condition: COMPLETED |
| 107 | name: Build Trusted Firmware |
| 108 | projects: |
| 109 | - kill-phase-on: NEVER |
| 110 | name: tf-a-lts2.10-ci-gateway |
| 111 | current-parameters: true |
| 112 | predefined-parameters: | |
| 113 | TEST_GROUPS=tf-l2-build-fvp tf-l2-build-juno |
| 114 | TF_REFSPEC=$GERRIT_REFSPEC |
| 115 | property-file: env.param |
| 116 | - multijob: |
| 117 | condition: COMPLETED |
Manish Pandey | 939c500 | 2024-03-22 14:06:21 +0000 | [diff] [blame] | 118 | name: Run platform boot tests |
Paul Sokolovsky | 36e2da9 | 2024-02-02 14:37:31 +0700 | [diff] [blame] | 119 | projects: |
| 120 | - kill-phase-on: NEVER |
| 121 | name: tf-a-lts2.10-ci-gateway |
| 122 | predefined-parameters: | |
Manish Pandey | 939c500 | 2024-03-22 14:06:21 +0000 | [diff] [blame] | 123 | TEST_GROUPS=tf-l2-boot-tests-arm-plats tf-l2-boot-tests-partner-boards |
Paul Sokolovsky | 36e2da9 | 2024-02-02 14:37:31 +0700 | [diff] [blame] | 124 | TF_REFSPEC=$GERRIT_REFSPEC |
| 125 | property-file: env.param |
| 126 | - multijob: |
| 127 | condition: COMPLETED |
| 128 | name: TFTF tests |
| 129 | projects: |
| 130 | - kill-phase-on: NEVER |
| 131 | name: tf-a-lts2.10-ci-gateway |
| 132 | current-parameters: true |
| 133 | predefined-parameters: | |
| 134 | TEST_GROUPS=tftf-l1-fvp tftf-l1-juno tftf-l2-fvp-auxiliary tftf-l2-fvp-dynamiq tftf-l2-fwu tftf-l2-fvp |
| 135 | TF_REFSPEC=$GERRIT_REFSPEC |
| 136 | property-file: env.param |
| 137 | - multijob: |
| 138 | condition: COMPLETED |
| 139 | name: Boot up to the Linux shell prompt |
| 140 | projects: |
| 141 | - kill-phase-on: NEVER |
| 142 | name: tf-a-lts2.10-ci-gateway |
| 143 | current-parameters: true |
| 144 | predefined-parameters: | |
Manish Pandey | 3c8b670 | 2024-03-20 15:38:46 +0000 | [diff] [blame] | 145 | 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 |
Paul Sokolovsky | 36e2da9 | 2024-02-02 14:37:31 +0700 | [diff] [blame] | 146 | TF_REFSPEC=$GERRIT_REFSPEC |
| 147 | property-file: env.param |
| 148 | - 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 |
| 159 | name: tf-a-lts2.10-ci-gateway |
| 160 | current-parameters: true |
| 161 | predefined-parameters: | |
| 162 | TEST_GROUPS=@$NOMINATION_FILE |
| 163 | TF_REFSPEC=$GERRIT_REFSPEC |
| 164 | property-file: env.param |
| 165 | triggers: |
| 166 | - gerrit: |
| 167 | server-name: review.trustedfirmware.org |
| 168 | trigger-on: |
| 169 | - comment-added-event: |
| 170 | approval-category: "Allow-CI" |
| 171 | approval-value: 2 |
| 172 | projects: |
| 173 | - project-compare-type: PLAIN |
Saheer Babu | fd52422 | 2025-01-21 23:42:41 +0000 | [diff] [blame] | 174 | project-pattern: next/TF-A/trusted-firmware-a |
Paul Sokolovsky | 36e2da9 | 2024-02-02 14:37:31 +0700 | [diff] [blame] | 175 | branches: |
| 176 | - branch-compare-type: PLAIN |
Saheer Babu | fd52422 | 2025-01-21 23:42:41 +0000 | [diff] [blame] | 177 | branch-pattern: openci-migration-lts-v2.10 |
Paul Sokolovsky | 36e2da9 | 2024-02-02 14:37:31 +0700 | [diff] [blame] | 178 | override-votes: true |
| 179 | gerrit-build-started-verified-value: 0 |
| 180 | gerrit-build-successful-verified-value: 1 |
| 181 | gerrit-build-failed-verified-value: -1 |
| 182 | gerrit-build-unstable-verified-value: -1 |
| 183 | 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 |
| 187 | gerrit-build-unstable-codereview-value: 0 |
| 188 | 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' |
| 193 | silent: false |
| 194 | silent-start: false |