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: |
| 15 | name: trusted-firmware-a |
| 16 | scm: |
| 17 | - git: |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 18 | url: https://review.trustedfirmware.org/${TF_GERRIT_PROJECT} |
| 19 | refspec: ${TF_GERRIT_REFSPEC} |
Fathi Boudra | 9e402bf | 2019-12-05 11:16:41 +0200 | [diff] [blame] | 20 | name: origin |
| 21 | branches: |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 22 | - ${TF_GERRIT_BRANCH} |
Fathi Boudra | 9e402bf | 2019-12-05 11:16:41 +0200 | [diff] [blame] | 23 | basedir: trusted-firmware-a |
| 24 | skip-tag: true |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 25 | shallow-clone: false |
Fathi Boudra | 9e402bf | 2019-12-05 11:16:41 +0200 | [diff] [blame] | 26 | wipe-workspace: false |
| 27 | - scm: |
| 28 | name: tf-a-tests |
| 29 | scm: |
| 30 | - git: |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 31 | url: https://git.trustedfirmware.org/${TFTF_GERRIT_PROJECT} |
| 32 | refspec: ${TFTF_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 | - ${TFTF_GERRIT_BRANCH} |
Fathi Boudra | 9e402bf | 2019-12-05 11:16:41 +0200 | [diff] [blame] | 36 | basedir: tf-a-tests |
| 37 | skip-tag: true |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 38 | shallow-clone: false |
Fathi Boudra | 9e402bf | 2019-12-05 11:16:41 +0200 | [diff] [blame] | 39 | wipe-workspace: false |
| 40 | - job: |
| 41 | name: tf-a-builder |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 42 | node: docker-amd64-tf-a-bionic |
Fathi Boudra | 9e402bf | 2019-12-05 11:16:41 +0200 | [diff] [blame] | 43 | project-type: freestyle |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 44 | concurrent: true |
| 45 | disabled: false |
Fathi Boudra | 9e402bf | 2019-12-05 11:16:41 +0200 | [diff] [blame] | 46 | defaults: global |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 47 | Description: | |
| 48 | Trusted Firmware A (TF-A) builder |
Fathi Boudra | 9e402bf | 2019-12-05 11:16:41 +0200 | [diff] [blame] | 49 | properties: |
| 50 | - build-discarder: |
Leonardo Sandoval | eb14160 | 2020-07-13 14:21:20 -0500 | [diff] [blame] | 51 | days-to-keep: 180 |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 52 | num-to-keep: 3000 |
Riku Voipio | bc87be2 | 2020-09-04 15:56:09 +0300 | [diff] [blame] | 53 | - authorization: |
Leonardo Sandoval | ebca882 | 2021-01-25 18:20:04 -0600 | [diff] [blame^] | 54 | !include: authorization.yaml.inc |
Fathi Boudra | 9e402bf | 2019-12-05 11:16:41 +0200 | [diff] [blame] | 55 | parameters: |
| 56 | - string: |
Leonardo Sandoval | afdd5ce | 2020-07-06 11:35:36 -0500 | [diff] [blame] | 57 | name: import_cc |
Leonardo Sandoval | afdd5ce | 2020-07-06 11:35:36 -0500 | [diff] [blame] | 58 | - string: |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 59 | name: TEST_DESC |
Fathi Boudra | 18eca5c | 2020-01-16 17:50:42 +0200 | [diff] [blame] | 60 | - string: |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 61 | name: TF_GERRIT_PROJECT |
Fathi Boudra | 18eca5c | 2020-01-16 17:50:42 +0200 | [diff] [blame] | 62 | default: 'TF-A/trusted-firmware-a' |
| 63 | - string: |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 64 | name: TF_GERRIT_BRANCH |
Fathi Boudra | 18eca5c | 2020-01-16 17:50:42 +0200 | [diff] [blame] | 65 | default: 'refs/heads/master' |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 66 | - string: |
| 67 | name: TF_GERRIT_REFSPEC |
| 68 | default: '+refs/heads/master:refs/remotes/origin/master' |
| 69 | - string: |
| 70 | name: TFTF_GERRIT_PROJECT |
| 71 | default: 'TF-A/tf-a-tests' |
| 72 | - string: |
| 73 | name: TFTF_GERRIT_BRANCH |
| 74 | default: 'refs/heads/master' |
| 75 | - string: |
| 76 | name: TFTF_GERRIT_REFSPEC |
| 77 | default: '+refs/heads/master:refs/remotes/origin/master' |
| 78 | - string: |
| 79 | name: DOCKER_REGISTRY |
| 80 | default: '987685672616.dkr.ecr.us-east-1.amazonaws.com' |
| 81 | - string: |
| 82 | name: ARMLMD_LICENSE_FILE |
| 83 | default: '27000@ci.trustedfirmware.org' |
| 84 | - string: |
| 85 | name: JUNO_ROOTFS_URL |
| 86 | default: 'http://releases.linaro.org/openembedded/aarch64/17.01/linaro-image-minimal-genericarmv8-20170127-888.rootfs.tar.gz' |
| 87 | - string: |
| 88 | name: MBEDTLS_URL |
Leonardo Sandoval | e9dfbcd | 2021-01-07 23:05:40 -0600 | [diff] [blame] | 89 | default: 'https://github.com/ARMmbed/mbedtls/archive/mbedtls-2.25.0.tar.gz' |
Milosz Wasilewski | 1043858 | 2020-12-03 11:36:21 +0000 | [diff] [blame] | 90 | - string: |
| 91 | name: GERRIT_PATCHSET_NUMBER |
| 92 | default: '' |
| 93 | - string: |
| 94 | name: GERRIT_CHANGE_NUMBER |
| 95 | default: '' |
| 96 | - string: |
Milosz Wasilewski | 204a27e | 2020-12-10 10:29:45 +0000 | [diff] [blame] | 97 | name: GERRIT_HOST |
| 98 | default: 'review.trustedfirmware.org' |
| 99 | - string: |
Milosz Wasilewski | 1043858 | 2020-12-03 11:36:21 +0000 | [diff] [blame] | 100 | name: QA_SERVER_TEAM |
| 101 | default: 'tf' |
| 102 | - string: |
| 103 | name: QA_SERVER_PROJECT |
| 104 | default: 'tf-a' |
| 105 | - string: |
| 106 | name: QA_SERVER |
| 107 | default: 'https://qa-reports.linaro.org' |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 108 | - bool: |
| 109 | name: ENABLE_STATIC_CHECK |
| 110 | default: false |
Fathi Boudra | 9e402bf | 2019-12-05 11:16:41 +0200 | [diff] [blame] | 111 | scm: |
| 112 | - tf-a-ci-scripts |
| 113 | - trusted-firmware-a |
| 114 | - tf-a-tests |
| 115 | wrappers: |
| 116 | - timestamps |
Milosz Wasilewski | 1043858 | 2020-12-03 11:36:21 +0000 | [diff] [blame] | 117 | - credentials-binding: |
| 118 | - text: |
| 119 | credential-id: QA_REPORTS_TOKEN |
| 120 | variable: QA_REPORTS_TOKEN |
Leonardo Sandoval | 9f15980 | 2021-01-20 16:47:25 -0600 | [diff] [blame] | 121 | - credentials-binding: |
| 122 | - text: |
| 123 | credential-id: LAVA_USER_TF |
| 124 | variable: LAVA_USER |
| 125 | - credentials-binding: |
| 126 | - text: |
| 127 | credential-id: LAVA_TOKEN_TF |
| 128 | variable: LAVA_TOKEN |
Fathi Boudra | 9e402bf | 2019-12-05 11:16:41 +0200 | [diff] [blame] | 129 | builders: |
| 130 | - shell: |
| 131 | !include-raw: tf-a-builder/builders.sh |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 132 | - conditional-step: |
| 133 | condition-kind: file-exists |
| 134 | on-evaluation-failure: dont-run |
| 135 | condition-filename: artefacts/debug/job.yaml |
| 136 | condition-basedir: workspace |
| 137 | steps: |
| 138 | - shell: | |
| 139 | #!/bin/bash |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 140 | set -e |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 141 | DEVICE_TYPE=fvp |
| 142 | CUSTOM_YAML_URL=${BUILD_URL}/artifact/artefacts/debug/job.yaml |
| 143 | DEVICE_TYPE=$(awk -F': ' '/device_type/ {print $2}' ${WORKSPACE}/artefacts/debug/job.yaml) |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 144 | cat << EOF > ${WORKSPACE}/post-build-lava.param |
| 145 | DEVICE_TYPE=${DEVICE_TYPE} |
Milosz Wasilewski | 1043858 | 2020-12-03 11:36:21 +0000 | [diff] [blame] | 146 | LAVA_SERVER=tf.validation.linaro.org |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 147 | EOF |
Fathi Boudra | 9e402bf | 2019-12-05 11:16:41 +0200 | [diff] [blame] | 148 | publishers: |
| 149 | - archive: |
| 150 | artifacts: 'artefacts/**' |
| 151 | latest-only: false |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 152 | allow-empty: true |
| 153 | - conditional-publisher: |
| 154 | - condition-kind: file-exists |
| 155 | on-evaluation-failure: dont-run |
| 156 | condition-filename: artefacts/debug/job.yaml |
| 157 | condition-basedir: workspace |
| 158 | action: |
Milosz Wasilewski | 1043858 | 2020-12-03 11:36:21 +0000 | [diff] [blame] | 159 | - postbuildscript: |
| 160 | builders: |
| 161 | - role: SLAVE |
| 162 | build-on: |
| 163 | - SUCCESS |
| 164 | build-steps: |
| 165 | - inject: |
| 166 | properties-file: ${WORKSPACE}/post-build-lava.param |
| 167 | - shell: |
| 168 | !include-raw: tf-a-builder/test.sh |
Leonardo Sandoval | 9f15980 | 2021-01-20 16:47:25 -0600 | [diff] [blame] | 169 | - conditional-publisher: |
| 170 | - condition-kind: file-exists |
| 171 | on-evaluation-failure: dont-run |
| 172 | condition-filename: lava.log |
| 173 | condition-basedir: workspace |
| 174 | action: |
| 175 | - archive: |
| 176 | artifacts: lava.log |
| 177 | latest-only: false |
| 178 | allow-empty: true |
Milosz Wasilewski | 1043858 | 2020-12-03 11:36:21 +0000 | [diff] [blame] | 179 | - groovy-postbuild: |
| 180 | script: |
| 181 | !include-raw: |
| 182 | - tf-a-builder/test.groovy |