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' |
| 100 | - bool: |
| 101 | name: ENABLE_STATIC_CHECK |
| 102 | default: false |
| 103 | - choice: |
| 104 | name: REPO_UNDER_STATIC_CHECK |
| 105 | choices: |
| 106 | - trusted-firmware-a |
| 107 | - tf-a-tests |
| 108 | default: trusted-firmware-a |
Fathi Boudra | 9e402bf | 2019-12-05 11:16:41 +0200 | [diff] [blame] | 109 | scm: |
| 110 | - tf-a-ci-scripts |
| 111 | - trusted-firmware-a |
| 112 | - tf-a-tests |
| 113 | wrappers: |
| 114 | - timestamps |
| 115 | builders: |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 116 | - conditional-step: |
| 117 | condition-kind: boolean-expression |
| 118 | condition-expression: "${ENABLE_STATIC_CHECK}" |
| 119 | steps: |
Fathi Boudra | 9c8a945 | 2020-12-08 22:16:57 +0100 | [diff] [blame^] | 120 | - shell: | |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 121 | #!/bin/bash |
| 122 | set -e |
| 123 | export IS_CONTINUOUS_INTEGRATION=1 |
| 124 | cd ${WORKSPACE}/${REPO_UNDER_STATIC_CHECK} |
| 125 | ${WORKSPACE}/tf-a-ci-scripts/script/static-checks/static-checks.sh |
| 126 | mv "static-checks.log" "$WORKSPACE" |
Fathi Boudra | 9e402bf | 2019-12-05 11:16:41 +0200 | [diff] [blame] | 127 | - shell: |
| 128 | !include-raw: tf-a-builder/builders.sh |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 129 | - conditional-step: |
| 130 | condition-kind: file-exists |
| 131 | on-evaluation-failure: dont-run |
| 132 | condition-filename: artefacts/debug/job.yaml |
| 133 | condition-basedir: workspace |
| 134 | steps: |
| 135 | - shell: | |
| 136 | #!/bin/bash |
Fathi Boudra | f60340c | 2020-01-17 18:44:15 +0200 | [diff] [blame] | 137 | |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 138 | set -e |
Fathi Boudra | f60340c | 2020-01-17 18:44:15 +0200 | [diff] [blame] | 139 | |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 140 | DEVICE_TYPE=fvp |
| 141 | CUSTOM_YAML_URL=${BUILD_URL}/artifact/artefacts/debug/job.yaml |
| 142 | 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] | 143 | |
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} |
| 146 | CUSTOM_YAML_URL=${CUSTOM_YAML_URL} |
| 147 | LAVA_SERVER=tf.validation.linaro.org/RPC2/ |
| 148 | EOF |
Fathi Boudra | 9e402bf | 2019-12-05 11:16:41 +0200 | [diff] [blame] | 149 | publishers: |
| 150 | - archive: |
| 151 | artifacts: 'artefacts/**' |
| 152 | latest-only: false |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 153 | allow-empty: true |
| 154 | - conditional-publisher: |
| 155 | - condition-kind: file-exists |
| 156 | on-evaluation-failure: dont-run |
| 157 | condition-filename: artefacts/debug/job.yaml |
| 158 | condition-basedir: workspace |
| 159 | action: |
| 160 | - trigger-parameterized-builds: |
| 161 | - project: post-build-lava |
| 162 | property-file: post-build-lava.param |