Fathi Boudra | 9e402bf | 2019-12-05 11:16:41 +0200 | [diff] [blame] | 1 | - scm: |
| 2 | name: tf-a-ci-scripts |
| 3 | scm: |
| 4 | - git: |
| 5 | url: https://git.trustedfirmware.org/ci/tf-a-ci-scripts.git |
| 6 | refspec: +refs/heads/master:refs/remotes/origin/master |
| 7 | name: origin |
| 8 | branches: |
| 9 | - refs/heads/master |
| 10 | basedir: tf-a-ci-scripts |
| 11 | skip-tag: true |
| 12 | shallow-clone: true |
| 13 | wipe-workspace: false |
| 14 | - scm: |
Arthur She | 5fc7427 | 2021-03-26 21:24:34 -0700 | [diff] [blame] | 15 | name: tf-a-job-configs |
| 16 | scm: |
| 17 | - git: |
| 18 | url: https://git.trustedfirmware.org/ci/tf-a-job-configs.git |
| 19 | refspec: +refs/heads/master:refs/remotes/origin/master |
| 20 | name: origin |
| 21 | branches: |
| 22 | - refs/heads/master |
| 23 | basedir: tf-a-job-configs |
| 24 | skip-tag: true |
| 25 | shallow-clone: true |
| 26 | wipe-workspace: false |
| 27 | - scm: |
Fathi Boudra | 9e402bf | 2019-12-05 11:16:41 +0200 | [diff] [blame] | 28 | name: trusted-firmware-a |
| 29 | scm: |
| 30 | - git: |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 31 | url: https://review.trustedfirmware.org/${TF_GERRIT_PROJECT} |
| 32 | refspec: ${TF_GERRIT_REFSPEC} |
Fathi Boudra | 9e402bf | 2019-12-05 11:16:41 +0200 | [diff] [blame] | 33 | name: origin |
| 34 | branches: |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 35 | - ${TF_GERRIT_BRANCH} |
Fathi Boudra | 9e402bf | 2019-12-05 11:16:41 +0200 | [diff] [blame] | 36 | basedir: trusted-firmware-a |
Leonardo Sandoval | 94abc04 | 2021-03-29 19:32:39 -0600 | [diff] [blame] | 37 | choosing-strategy: gerrit |
Fathi Boudra | 9e402bf | 2019-12-05 11:16:41 +0200 | [diff] [blame] | 38 | skip-tag: true |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 39 | shallow-clone: false |
Fathi Boudra | 9e402bf | 2019-12-05 11:16:41 +0200 | [diff] [blame] | 40 | wipe-workspace: false |
| 41 | - scm: |
| 42 | name: tf-a-tests |
| 43 | scm: |
| 44 | - git: |
Leonardo Sandoval | 94abc04 | 2021-03-29 19:32:39 -0600 | [diff] [blame] | 45 | url: https://review.trustedfirmware.org/${TFTF_GERRIT_PROJECT} |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 46 | refspec: ${TFTF_GERRIT_REFSPEC} |
Fathi Boudra | 9e402bf | 2019-12-05 11:16:41 +0200 | [diff] [blame] | 47 | name: origin |
| 48 | branches: |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 49 | - ${TFTF_GERRIT_BRANCH} |
Fathi Boudra | 9e402bf | 2019-12-05 11:16:41 +0200 | [diff] [blame] | 50 | basedir: tf-a-tests |
Leonardo Sandoval | 94abc04 | 2021-03-29 19:32:39 -0600 | [diff] [blame] | 51 | choosing-strategy: gerrit |
Fathi Boudra | 9e402bf | 2019-12-05 11:16:41 +0200 | [diff] [blame] | 52 | skip-tag: true |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 53 | shallow-clone: false |
Fathi Boudra | 9e402bf | 2019-12-05 11:16:41 +0200 | [diff] [blame] | 54 | wipe-workspace: false |
Leonardo Sandoval | 5cf68e2 | 2021-07-16 12:23:20 -0500 | [diff] [blame] | 55 | - scm: |
| 56 | name: qa-tools |
| 57 | scm: |
| 58 | - git: |
| 59 | url: https://git.gitlab.arm.com/tooling/qa-tools.git |
| 60 | refspec: master |
| 61 | name: origin |
| 62 | branches: |
| 63 | - master |
| 64 | basedir: qa-tools |
| 65 | choosing-strategy: gerrit |
| 66 | skip-tag: true |
| 67 | shallow-clone: true |
| 68 | wipe-workspace: false |
Fathi Boudra | 9e402bf | 2019-12-05 11:16:41 +0200 | [diff] [blame] | 69 | - job: |
| 70 | name: tf-a-builder |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 71 | node: docker-amd64-tf-a-bionic |
Fathi Boudra | 9e402bf | 2019-12-05 11:16:41 +0200 | [diff] [blame] | 72 | project-type: freestyle |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 73 | concurrent: true |
| 74 | disabled: false |
Fathi Boudra | 9e402bf | 2019-12-05 11:16:41 +0200 | [diff] [blame] | 75 | defaults: global |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 76 | Description: | |
| 77 | Trusted Firmware A (TF-A) builder |
Fathi Boudra | 9e402bf | 2019-12-05 11:16:41 +0200 | [diff] [blame] | 78 | properties: |
| 79 | - build-discarder: |
Leonardo Sandoval | a4feb55 | 2021-03-02 12:10:21 -0600 | [diff] [blame] | 80 | days-to-keep: 14 |
Riku Voipio | bc87be2 | 2020-09-04 15:56:09 +0300 | [diff] [blame] | 81 | - authorization: |
Leonardo Sandoval | ebca882 | 2021-01-25 18:20:04 -0600 | [diff] [blame] | 82 | !include: authorization.yaml.inc |
Fathi Boudra | 9e402bf | 2019-12-05 11:16:41 +0200 | [diff] [blame] | 83 | parameters: |
| 84 | - string: |
Leonardo Sandoval | afdd5ce | 2020-07-06 11:35:36 -0500 | [diff] [blame] | 85 | name: import_cc |
Leonardo Sandoval | afdd5ce | 2020-07-06 11:35:36 -0500 | [diff] [blame] | 86 | - string: |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 87 | name: TEST_DESC |
Fathi Boudra | 18eca5c | 2020-01-16 17:50:42 +0200 | [diff] [blame] | 88 | - string: |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 89 | name: TF_GERRIT_PROJECT |
Fathi Boudra | 18eca5c | 2020-01-16 17:50:42 +0200 | [diff] [blame] | 90 | default: 'TF-A/trusted-firmware-a' |
| 91 | - string: |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 92 | name: TF_GERRIT_BRANCH |
Fathi Boudra | 18eca5c | 2020-01-16 17:50:42 +0200 | [diff] [blame] | 93 | default: 'refs/heads/master' |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 94 | - string: |
| 95 | name: TF_GERRIT_REFSPEC |
| 96 | default: '+refs/heads/master:refs/remotes/origin/master' |
| 97 | - string: |
| 98 | name: TFTF_GERRIT_PROJECT |
| 99 | default: 'TF-A/tf-a-tests' |
| 100 | - string: |
| 101 | name: TFTF_GERRIT_BRANCH |
| 102 | default: 'refs/heads/master' |
| 103 | - string: |
| 104 | name: TFTF_GERRIT_REFSPEC |
| 105 | default: '+refs/heads/master:refs/remotes/origin/master' |
| 106 | - string: |
| 107 | name: DOCKER_REGISTRY |
| 108 | default: '987685672616.dkr.ecr.us-east-1.amazonaws.com' |
| 109 | - string: |
| 110 | name: ARMLMD_LICENSE_FILE |
Riku Voipio | af06a08 | 2021-08-24 13:58:13 +0300 | [diff] [blame^] | 111 | default: '27000@flexnet.trustedfirmware.org' |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 112 | - string: |
| 113 | name: JUNO_ROOTFS_URL |
| 114 | default: 'http://releases.linaro.org/openembedded/aarch64/17.01/linaro-image-minimal-genericarmv8-20170127-888.rootfs.tar.gz' |
| 115 | - string: |
| 116 | name: MBEDTLS_URL |
Manish V Badarkhe | 2043c93 | 2021-04-14 12:38:29 +0100 | [diff] [blame] | 117 | default: 'https://github.com/ARMmbed/mbedtls/archive/mbedtls-2.26.0.tar.gz' |
Milosz Wasilewski | 1043858 | 2020-12-03 11:36:21 +0000 | [diff] [blame] | 118 | - string: |
| 119 | name: GERRIT_PATCHSET_NUMBER |
| 120 | default: '' |
| 121 | - string: |
| 122 | name: GERRIT_CHANGE_NUMBER |
| 123 | default: '' |
| 124 | - string: |
Milosz Wasilewski | 204a27e | 2020-12-10 10:29:45 +0000 | [diff] [blame] | 125 | name: GERRIT_HOST |
| 126 | default: 'review.trustedfirmware.org' |
| 127 | - string: |
Milosz Wasilewski | 1043858 | 2020-12-03 11:36:21 +0000 | [diff] [blame] | 128 | name: QA_SERVER_TEAM |
| 129 | default: 'tf' |
| 130 | - string: |
| 131 | name: QA_SERVER_PROJECT |
| 132 | default: 'tf-a' |
| 133 | - string: |
Leonardo Sandoval | 3791fe4 | 2021-05-12 11:52:54 -0500 | [diff] [blame] | 134 | name: QA_SERVER_VERSION |
| 135 | default: ${BUILD_NUMBER} |
| 136 | - string: |
Milosz Wasilewski | 1043858 | 2020-12-03 11:36:21 +0000 | [diff] [blame] | 137 | name: QA_SERVER |
| 138 | default: 'https://qa-reports.linaro.org' |
Fathi Boudra | 9e402bf | 2019-12-05 11:16:41 +0200 | [diff] [blame] | 139 | scm: |
| 140 | - tf-a-ci-scripts |
Arthur She | 5fc7427 | 2021-03-26 21:24:34 -0700 | [diff] [blame] | 141 | - tf-a-job-configs |
Fathi Boudra | 9e402bf | 2019-12-05 11:16:41 +0200 | [diff] [blame] | 142 | - trusted-firmware-a |
| 143 | - tf-a-tests |
| 144 | wrappers: |
| 145 | - timestamps |
Fathi Boudra | b4e04c0 | 2021-02-11 16:32:12 +0100 | [diff] [blame] | 146 | - timeout: |
| 147 | timeout: 120 |
| 148 | fail: true |
Milosz Wasilewski | 1043858 | 2020-12-03 11:36:21 +0000 | [diff] [blame] | 149 | - credentials-binding: |
| 150 | - text: |
| 151 | credential-id: QA_REPORTS_TOKEN |
| 152 | variable: QA_REPORTS_TOKEN |
Leonardo Sandoval | 9f15980 | 2021-01-20 16:47:25 -0600 | [diff] [blame] | 153 | - credentials-binding: |
| 154 | - text: |
| 155 | credential-id: LAVA_USER_TF |
| 156 | variable: LAVA_USER |
| 157 | - credentials-binding: |
| 158 | - text: |
| 159 | credential-id: LAVA_TOKEN_TF |
| 160 | variable: LAVA_TOKEN |
Fathi Boudra | 9e402bf | 2019-12-05 11:16:41 +0200 | [diff] [blame] | 161 | builders: |
| 162 | - shell: |
| 163 | !include-raw: tf-a-builder/builders.sh |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 164 | - conditional-step: |
| 165 | condition-kind: file-exists |
| 166 | on-evaluation-failure: dont-run |
| 167 | condition-filename: artefacts/debug/job.yaml |
| 168 | condition-basedir: workspace |
| 169 | steps: |
| 170 | - shell: | |
| 171 | #!/bin/bash |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 172 | set -e |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 173 | DEVICE_TYPE=fvp |
| 174 | CUSTOM_YAML_URL=${BUILD_URL}/artifact/artefacts/debug/job.yaml |
| 175 | DEVICE_TYPE=$(awk -F': ' '/device_type/ {print $2}' ${WORKSPACE}/artefacts/debug/job.yaml) |
Fathi Boudra | f5537c3 | 2021-01-21 09:28:05 +0100 | [diff] [blame] | 176 | cat << EOF > ${WORKSPACE}/lava.param |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 177 | DEVICE_TYPE=${DEVICE_TYPE} |
Milosz Wasilewski | 1043858 | 2020-12-03 11:36:21 +0000 | [diff] [blame] | 178 | LAVA_SERVER=tf.validation.linaro.org |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 179 | EOF |
Fathi Boudra | 9e402bf | 2019-12-05 11:16:41 +0200 | [diff] [blame] | 180 | publishers: |
| 181 | - archive: |
| 182 | artifacts: 'artefacts/**' |
| 183 | latest-only: false |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 184 | allow-empty: true |
| 185 | - conditional-publisher: |
| 186 | - condition-kind: file-exists |
| 187 | on-evaluation-failure: dont-run |
| 188 | condition-filename: artefacts/debug/job.yaml |
| 189 | condition-basedir: workspace |
| 190 | action: |
Milosz Wasilewski | 1043858 | 2020-12-03 11:36:21 +0000 | [diff] [blame] | 191 | - postbuildscript: |
| 192 | builders: |
| 193 | - role: SLAVE |
| 194 | build-on: |
| 195 | - SUCCESS |
| 196 | build-steps: |
| 197 | - inject: |
Fathi Boudra | f5537c3 | 2021-01-21 09:28:05 +0100 | [diff] [blame] | 198 | properties-file: ${WORKSPACE}/lava.param |
Leonardo Sandoval | e945013 | 2021-04-19 13:51:11 -0500 | [diff] [blame] | 199 | - shell: | |
| 200 | #!/bin/bash |
| 201 | |
| 202 | squad='tf-a-job-configs/tf-a-builder/squad.sh' |
| 203 | if ! $squad; then |
| 204 | # Juno jobs may fail due to LAVA lab infrastructure issues (see |
| 205 | # https://projects.linaro.org/browse/LSS-2128) so we need to |
| 206 | # resubmit it if first job failed |
| 207 | if grep -q 'device_type: juno' artefacts/debug/job.yaml; then |
| 208 | if ! $squad; then |
| 209 | echo "LAVA JOB RESULT: 1" |
| 210 | fi |
| 211 | else |
| 212 | echo "LAVA JOB RESULT: 1" |
| 213 | fi |
| 214 | else |
| 215 | echo "LAVA JOB RESULT: 0" |
| 216 | fi |
Leonardo Sandoval | 9f15980 | 2021-01-20 16:47:25 -0600 | [diff] [blame] | 217 | - conditional-publisher: |
| 218 | - condition-kind: file-exists |
| 219 | on-evaluation-failure: dont-run |
Arthur She | 2586b5c | 2021-05-11 21:00:20 -0700 | [diff] [blame] | 220 | condition-filename: lava-raw-debug.log |
| 221 | condition-basedir: workspace |
| 222 | action: |
| 223 | - archive: |
| 224 | artifacts: lava-raw-debug.log |
| 225 | latest-only: false |
| 226 | allow-empty: true |
| 227 | - conditional-publisher: |
| 228 | - condition-kind: file-exists |
| 229 | on-evaluation-failure: dont-run |
Leonardo Sandoval | 9f15980 | 2021-01-20 16:47:25 -0600 | [diff] [blame] | 230 | condition-filename: lava.log |
| 231 | condition-basedir: workspace |
| 232 | action: |
| 233 | - archive: |
Arthur She | 5fc7427 | 2021-03-26 21:24:34 -0700 | [diff] [blame] | 234 | artifacts: lava.log, lava-uart?.log |
Leonardo Sandoval | 9f15980 | 2021-01-20 16:47:25 -0600 | [diff] [blame] | 235 | latest-only: false |
| 236 | allow-empty: true |
Milosz Wasilewski | 1043858 | 2020-12-03 11:36:21 +0000 | [diff] [blame] | 237 | - groovy-postbuild: |
| 238 | script: |
| 239 | !include-raw: |
Fathi Boudra | f5537c3 | 2021-01-21 09:28:05 +0100 | [diff] [blame] | 240 | - tf-a-builder/postbuild.groovy |