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: |
| 54 | anonymous: |
Riku Voipio | 3a69f72 | 2020-10-05 11:39:45 +0300 | [diff] [blame] | 55 | - job-discover |
Riku Voipio | bc87be2 | 2020-09-04 15:56:09 +0300 | [diff] [blame] | 56 | - job-read |
| 57 | - job-extended-read |
Riku Voipio | 3a69f72 | 2020-10-05 11:39:45 +0300 | [diff] [blame] | 58 | - job-workspace |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 59 | lsandov1: |
| 60 | - job-read |
| 61 | - job-extended-read |
| 62 | - job-build |
| 63 | - job-cancel |
| 64 | - run-update |
Fathi Boudra | 9e402bf | 2019-12-05 11:16:41 +0200 | [diff] [blame] | 65 | parameters: |
| 66 | - string: |
Leonardo Sandoval | afdd5ce | 2020-07-06 11:35:36 -0500 | [diff] [blame] | 67 | name: import_cc |
Leonardo Sandoval | afdd5ce | 2020-07-06 11:35:36 -0500 | [diff] [blame] | 68 | - string: |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 69 | name: TEST_DESC |
Fathi Boudra | 18eca5c | 2020-01-16 17:50:42 +0200 | [diff] [blame] | 70 | - string: |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 71 | name: TF_GERRIT_PROJECT |
Fathi Boudra | 18eca5c | 2020-01-16 17:50:42 +0200 | [diff] [blame] | 72 | default: 'TF-A/trusted-firmware-a' |
| 73 | - string: |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 74 | name: TF_GERRIT_BRANCH |
Fathi Boudra | 18eca5c | 2020-01-16 17:50:42 +0200 | [diff] [blame] | 75 | default: 'refs/heads/master' |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 76 | - string: |
| 77 | name: TF_GERRIT_REFSPEC |
| 78 | default: '+refs/heads/master:refs/remotes/origin/master' |
| 79 | - string: |
| 80 | name: TFTF_GERRIT_PROJECT |
| 81 | default: 'TF-A/tf-a-tests' |
| 82 | - string: |
| 83 | name: TFTF_GERRIT_BRANCH |
| 84 | default: 'refs/heads/master' |
| 85 | - string: |
| 86 | name: TFTF_GERRIT_REFSPEC |
| 87 | default: '+refs/heads/master:refs/remotes/origin/master' |
| 88 | - string: |
| 89 | name: DOCKER_REGISTRY |
| 90 | default: '987685672616.dkr.ecr.us-east-1.amazonaws.com' |
| 91 | - string: |
| 92 | name: ARMLMD_LICENSE_FILE |
| 93 | default: '27000@ci.trustedfirmware.org' |
| 94 | - string: |
| 95 | name: JUNO_ROOTFS_URL |
| 96 | default: 'http://releases.linaro.org/openembedded/aarch64/17.01/linaro-image-minimal-genericarmv8-20170127-888.rootfs.tar.gz' |
| 97 | - string: |
| 98 | name: MBEDTLS_URL |
| 99 | default: 'https://github.com/ARMmbed/mbedtls/archive/mbedtls-2.24.0.tar.gz' |
Milosz Wasilewski | 1043858 | 2020-12-03 11:36:21 +0000 | [diff] [blame^] | 100 | - string: |
| 101 | name: GERRIT_PATCHSET_NUMBER |
| 102 | default: '' |
| 103 | - string: |
| 104 | name: GERRIT_CHANGE_NUMBER |
| 105 | default: '' |
| 106 | - string: |
| 107 | name: QA_SERVER_TEAM |
| 108 | default: 'tf' |
| 109 | - string: |
| 110 | name: QA_SERVER_PROJECT |
| 111 | default: 'tf-a' |
| 112 | - string: |
| 113 | name: QA_SERVER |
| 114 | default: 'https://qa-reports.linaro.org' |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 115 | - bool: |
| 116 | name: ENABLE_STATIC_CHECK |
| 117 | default: false |
| 118 | - choice: |
| 119 | name: REPO_UNDER_STATIC_CHECK |
| 120 | choices: |
| 121 | - trusted-firmware-a |
| 122 | - tf-a-tests |
| 123 | default: trusted-firmware-a |
Fathi Boudra | 9e402bf | 2019-12-05 11:16:41 +0200 | [diff] [blame] | 124 | scm: |
| 125 | - tf-a-ci-scripts |
| 126 | - trusted-firmware-a |
| 127 | - tf-a-tests |
| 128 | wrappers: |
| 129 | - timestamps |
Milosz Wasilewski | 1043858 | 2020-12-03 11:36:21 +0000 | [diff] [blame^] | 130 | - credentials-binding: |
| 131 | - text: |
| 132 | credential-id: QA_REPORTS_TOKEN |
| 133 | variable: QA_REPORTS_TOKEN |
Fathi Boudra | 9e402bf | 2019-12-05 11:16:41 +0200 | [diff] [blame] | 134 | builders: |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 135 | - conditional-step: |
| 136 | condition-kind: boolean-expression |
| 137 | condition-expression: "${ENABLE_STATIC_CHECK}" |
| 138 | steps: |
Fathi Boudra | 9c8a945 | 2020-12-08 22:16:57 +0100 | [diff] [blame] | 139 | - shell: | |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 140 | #!/bin/bash |
| 141 | set -e |
| 142 | export IS_CONTINUOUS_INTEGRATION=1 |
| 143 | cd ${WORKSPACE}/${REPO_UNDER_STATIC_CHECK} |
| 144 | ${WORKSPACE}/tf-a-ci-scripts/script/static-checks/static-checks.sh |
| 145 | mv "static-checks.log" "$WORKSPACE" |
Fathi Boudra | 9e402bf | 2019-12-05 11:16:41 +0200 | [diff] [blame] | 146 | - shell: |
| 147 | !include-raw: tf-a-builder/builders.sh |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 148 | - conditional-step: |
| 149 | condition-kind: file-exists |
| 150 | on-evaluation-failure: dont-run |
| 151 | condition-filename: artefacts/debug/job.yaml |
| 152 | condition-basedir: workspace |
| 153 | steps: |
| 154 | - shell: | |
| 155 | #!/bin/bash |
Fathi Boudra | f60340c | 2020-01-17 18:44:15 +0200 | [diff] [blame] | 156 | |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 157 | set -e |
Fathi Boudra | f60340c | 2020-01-17 18:44:15 +0200 | [diff] [blame] | 158 | |
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 | f60340c | 2020-01-17 18:44:15 +0200 | [diff] [blame] | 162 | |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 163 | cat << EOF > ${WORKSPACE}/post-build-lava.param |
| 164 | DEVICE_TYPE=${DEVICE_TYPE} |
Milosz Wasilewski | 1043858 | 2020-12-03 11:36:21 +0000 | [diff] [blame^] | 165 | LAVA_SERVER=tf.validation.linaro.org |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 166 | EOF |
Fathi Boudra | 9e402bf | 2019-12-05 11:16:41 +0200 | [diff] [blame] | 167 | publishers: |
| 168 | - archive: |
| 169 | artifacts: 'artefacts/**' |
| 170 | latest-only: false |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 171 | allow-empty: true |
| 172 | - conditional-publisher: |
| 173 | - condition-kind: file-exists |
| 174 | on-evaluation-failure: dont-run |
| 175 | condition-filename: artefacts/debug/job.yaml |
| 176 | condition-basedir: workspace |
| 177 | action: |
Milosz Wasilewski | 1043858 | 2020-12-03 11:36:21 +0000 | [diff] [blame^] | 178 | - postbuildscript: |
| 179 | builders: |
| 180 | - role: SLAVE |
| 181 | build-on: |
| 182 | - SUCCESS |
| 183 | build-steps: |
| 184 | - inject: |
| 185 | properties-file: ${WORKSPACE}/post-build-lava.param |
| 186 | - shell: |
| 187 | !include-raw: tf-a-builder/test.sh |
| 188 | - groovy-postbuild: |
| 189 | script: |
| 190 | !include-raw: |
| 191 | - tf-a-builder/test.groovy |
| 192 | |