blob: e74744f7b19a9212699096e1c2905c6eb511c08c [file] [log] [blame]
Fathi Boudra9e402bf2019-12-05 11:16:41 +02001- 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 She5fc74272021-03-26 21:24:34 -070015 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 Boudra9e402bf2019-12-05 11:16:41 +020028 name: trusted-firmware-a
29 scm:
30 - git:
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050031 url: https://review.trustedfirmware.org/${TF_GERRIT_PROJECT}
32 refspec: ${TF_GERRIT_REFSPEC}
Fathi Boudra9e402bf2019-12-05 11:16:41 +020033 name: origin
34 branches:
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050035 - ${TF_GERRIT_BRANCH}
Fathi Boudra9e402bf2019-12-05 11:16:41 +020036 basedir: trusted-firmware-a
Leonardo Sandoval94abc042021-03-29 19:32:39 -060037 choosing-strategy: gerrit
Fathi Boudra9e402bf2019-12-05 11:16:41 +020038 skip-tag: true
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050039 shallow-clone: false
Fathi Boudra9e402bf2019-12-05 11:16:41 +020040 wipe-workspace: false
41- scm:
42 name: tf-a-tests
43 scm:
44 - git:
Leonardo Sandoval94abc042021-03-29 19:32:39 -060045 url: https://review.trustedfirmware.org/${TFTF_GERRIT_PROJECT}
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050046 refspec: ${TFTF_GERRIT_REFSPEC}
Fathi Boudra9e402bf2019-12-05 11:16:41 +020047 name: origin
48 branches:
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050049 - ${TFTF_GERRIT_BRANCH}
Fathi Boudra9e402bf2019-12-05 11:16:41 +020050 basedir: tf-a-tests
Leonardo Sandoval94abc042021-03-29 19:32:39 -060051 choosing-strategy: gerrit
Fathi Boudra9e402bf2019-12-05 11:16:41 +020052 skip-tag: true
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050053 shallow-clone: false
Fathi Boudra9e402bf2019-12-05 11:16:41 +020054 wipe-workspace: false
Leonardo Sandoval5cf68e22021-07-16 12:23:20 -050055- scm:
56 name: qa-tools
57 scm:
58 - git:
59 url: https://git.gitlab.arm.com/tooling/qa-tools.git
60 refspec: master
61 name: origin
62 branches:
63 - master
64 basedir: qa-tools
65 choosing-strategy: gerrit
66 skip-tag: true
67 shallow-clone: true
68 wipe-workspace: false
Fathi Boudra9e402bf2019-12-05 11:16:41 +020069- job:
70 name: tf-a-builder
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050071 node: docker-amd64-tf-a-bionic
Fathi Boudra9e402bf2019-12-05 11:16:41 +020072 project-type: freestyle
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050073 concurrent: true
74 disabled: false
Fathi Boudra9e402bf2019-12-05 11:16:41 +020075 defaults: global
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050076 Description: |
77 Trusted Firmware A (TF-A) builder
Fathi Boudra9e402bf2019-12-05 11:16:41 +020078 properties:
79 - build-discarder:
Leonardo Sandovala4feb552021-03-02 12:10:21 -060080 days-to-keep: 14
Riku Voipiobc87be22020-09-04 15:56:09 +030081 - authorization:
Leonardo Sandovalebca8822021-01-25 18:20:04 -060082 !include: authorization.yaml.inc
Fathi Boudra9e402bf2019-12-05 11:16:41 +020083 parameters:
84 - string:
Leonardo Sandovalafdd5ce2020-07-06 11:35:36 -050085 name: import_cc
Leonardo Sandovalafdd5ce2020-07-06 11:35:36 -050086 - string:
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050087 name: TEST_DESC
Fathi Boudra18eca5c2020-01-16 17:50:42 +020088 - string:
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050089 name: TF_GERRIT_PROJECT
Fathi Boudra18eca5c2020-01-16 17:50:42 +020090 default: 'TF-A/trusted-firmware-a'
91 - string:
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050092 name: TF_GERRIT_BRANCH
Fathi Boudra18eca5c2020-01-16 17:50:42 +020093 default: 'refs/heads/master'
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050094 - string:
95 name: TF_GERRIT_REFSPEC
96 default: '+refs/heads/master:refs/remotes/origin/master'
97 - string:
98 name: TFTF_GERRIT_PROJECT
99 default: 'TF-A/tf-a-tests'
100 - string:
101 name: TFTF_GERRIT_BRANCH
102 default: 'refs/heads/master'
103 - string:
104 name: TFTF_GERRIT_REFSPEC
105 default: '+refs/heads/master:refs/remotes/origin/master'
106 - string:
107 name: DOCKER_REGISTRY
108 default: '987685672616.dkr.ecr.us-east-1.amazonaws.com'
109 - string:
110 name: ARMLMD_LICENSE_FILE
111 default: '27000@ci.trustedfirmware.org'
112 - string:
113 name: JUNO_ROOTFS_URL
114 default: 'http://releases.linaro.org/openembedded/aarch64/17.01/linaro-image-minimal-genericarmv8-20170127-888.rootfs.tar.gz'
115 - string:
116 name: MBEDTLS_URL
Manish V Badarkhe2043c932021-04-14 12:38:29 +0100117 default: 'https://github.com/ARMmbed/mbedtls/archive/mbedtls-2.26.0.tar.gz'
Milosz Wasilewski10438582020-12-03 11:36:21 +0000118 - string:
119 name: GERRIT_PATCHSET_NUMBER
120 default: ''
121 - string:
122 name: GERRIT_CHANGE_NUMBER
123 default: ''
124 - string:
Milosz Wasilewski204a27e2020-12-10 10:29:45 +0000125 name: GERRIT_HOST
126 default: 'review.trustedfirmware.org'
127 - string:
Milosz Wasilewski10438582020-12-03 11:36:21 +0000128 name: QA_SERVER_TEAM
129 default: 'tf'
130 - string:
131 name: QA_SERVER_PROJECT
132 default: 'tf-a'
133 - string:
Leonardo Sandoval3791fe42021-05-12 11:52:54 -0500134 name: QA_SERVER_VERSION
135 default: ${BUILD_NUMBER}
136 - string:
Milosz Wasilewski10438582020-12-03 11:36:21 +0000137 name: QA_SERVER
138 default: 'https://qa-reports.linaro.org'
Fathi Boudra9e402bf2019-12-05 11:16:41 +0200139 scm:
140 - tf-a-ci-scripts
Arthur She5fc74272021-03-26 21:24:34 -0700141 - tf-a-job-configs
Fathi Boudra9e402bf2019-12-05 11:16:41 +0200142 - trusted-firmware-a
143 - tf-a-tests
Leonardo Sandoval5cf68e22021-07-16 12:23:20 -0500144 - qa-tools
Fathi Boudra9e402bf2019-12-05 11:16:41 +0200145 wrappers:
146 - timestamps
Fathi Boudrab4e04c02021-02-11 16:32:12 +0100147 - timeout:
148 timeout: 120
149 fail: true
Milosz Wasilewski10438582020-12-03 11:36:21 +0000150 - credentials-binding:
151 - text:
152 credential-id: QA_REPORTS_TOKEN
153 variable: QA_REPORTS_TOKEN
Leonardo Sandoval9f159802021-01-20 16:47:25 -0600154 - credentials-binding:
155 - text:
156 credential-id: LAVA_USER_TF
157 variable: LAVA_USER
158 - credentials-binding:
159 - text:
160 credential-id: LAVA_TOKEN_TF
161 variable: LAVA_TOKEN
Fathi Boudra9e402bf2019-12-05 11:16:41 +0200162 builders:
163 - shell:
164 !include-raw: tf-a-builder/builders.sh
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500165 - conditional-step:
166 condition-kind: file-exists
167 on-evaluation-failure: dont-run
168 condition-filename: artefacts/debug/job.yaml
169 condition-basedir: workspace
170 steps:
171 - shell: |
172 #!/bin/bash
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500173 set -e
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500174 DEVICE_TYPE=fvp
175 CUSTOM_YAML_URL=${BUILD_URL}/artifact/artefacts/debug/job.yaml
176 DEVICE_TYPE=$(awk -F': ' '/device_type/ {print $2}' ${WORKSPACE}/artefacts/debug/job.yaml)
Fathi Boudraf5537c32021-01-21 09:28:05 +0100177 cat << EOF > ${WORKSPACE}/lava.param
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500178 DEVICE_TYPE=${DEVICE_TYPE}
Milosz Wasilewski10438582020-12-03 11:36:21 +0000179 LAVA_SERVER=tf.validation.linaro.org
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500180 EOF
Fathi Boudra9e402bf2019-12-05 11:16:41 +0200181 publishers:
182 - archive:
183 artifacts: 'artefacts/**'
184 latest-only: false
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500185 allow-empty: true
186 - conditional-publisher:
187 - condition-kind: file-exists
188 on-evaluation-failure: dont-run
189 condition-filename: artefacts/debug/job.yaml
190 condition-basedir: workspace
191 action:
Milosz Wasilewski10438582020-12-03 11:36:21 +0000192 - postbuildscript:
193 builders:
194 - role: SLAVE
195 build-on:
196 - SUCCESS
197 build-steps:
198 - inject:
Fathi Boudraf5537c32021-01-21 09:28:05 +0100199 properties-file: ${WORKSPACE}/lava.param
Leonardo Sandovale9450132021-04-19 13:51:11 -0500200 - shell: |
201 #!/bin/bash
202
203 squad='tf-a-job-configs/tf-a-builder/squad.sh'
204 if ! $squad; then
205 # Juno jobs may fail due to LAVA lab infrastructure issues (see
206 # https://projects.linaro.org/browse/LSS-2128) so we need to
207 # resubmit it if first job failed
208 if grep -q 'device_type: juno' artefacts/debug/job.yaml; then
209 if ! $squad; then
210 echo "LAVA JOB RESULT: 1"
211 fi
212 else
213 echo "LAVA JOB RESULT: 1"
214 fi
215 else
216 echo "LAVA JOB RESULT: 0"
217 fi
Leonardo Sandoval9f159802021-01-20 16:47:25 -0600218 - conditional-publisher:
219 - condition-kind: file-exists
220 on-evaluation-failure: dont-run
Arthur She2586b5c2021-05-11 21:00:20 -0700221 condition-filename: lava-raw-debug.log
222 condition-basedir: workspace
223 action:
224 - archive:
225 artifacts: lava-raw-debug.log
226 latest-only: false
227 allow-empty: true
228 - conditional-publisher:
229 - condition-kind: file-exists
230 on-evaluation-failure: dont-run
Leonardo Sandoval9f159802021-01-20 16:47:25 -0600231 condition-filename: lava.log
232 condition-basedir: workspace
233 action:
234 - archive:
Arthur She5fc74272021-03-26 21:24:34 -0700235 artifacts: lava.log, lava-uart?.log
Leonardo Sandoval9f159802021-01-20 16:47:25 -0600236 latest-only: false
237 allow-empty: true
Milosz Wasilewski10438582020-12-03 11:36:21 +0000238 - groovy-postbuild:
239 script:
240 !include-raw:
Fathi Boudraf5537c32021-01-21 09:28:05 +0100241 - tf-a-builder/postbuild.groovy