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