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