blob: 026c785c19dac896fd219ea8b23659ea626c073c [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:
15 name: trusted-firmware-a
16 scm:
17 - git:
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050018 url: https://review.trustedfirmware.org/${TF_GERRIT_PROJECT}
19 refspec: ${TF_GERRIT_REFSPEC}
Fathi Boudra9e402bf2019-12-05 11:16:41 +020020 name: origin
21 branches:
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050022 - ${TF_GERRIT_BRANCH}
Fathi Boudra9e402bf2019-12-05 11:16:41 +020023 basedir: trusted-firmware-a
24 skip-tag: true
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050025 shallow-clone: false
Fathi Boudra9e402bf2019-12-05 11:16:41 +020026 wipe-workspace: false
27- scm:
28 name: tf-a-tests
29 scm:
30 - git:
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050031 url: https://git.trustedfirmware.org/${TFTF_GERRIT_PROJECT}
32 refspec: ${TFTF_GERRIT_REFSPEC}
Fathi Boudra9e402bf2019-12-05 11:16:41 +020033 name: origin
34 branches:
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050035 - ${TFTF_GERRIT_BRANCH}
Fathi Boudra9e402bf2019-12-05 11:16:41 +020036 basedir: tf-a-tests
37 skip-tag: true
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050038 shallow-clone: false
Fathi Boudra9e402bf2019-12-05 11:16:41 +020039 wipe-workspace: false
40- job:
41 name: tf-a-builder
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050042 node: docker-amd64-tf-a-bionic
Fathi Boudra9e402bf2019-12-05 11:16:41 +020043 project-type: freestyle
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050044 concurrent: true
45 disabled: false
Fathi Boudra9e402bf2019-12-05 11:16:41 +020046 defaults: global
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050047 Description: |
48 Trusted Firmware A (TF-A) builder
Fathi Boudra9e402bf2019-12-05 11:16:41 +020049 properties:
50 - build-discarder:
Leonardo Sandovaleb141602020-07-13 14:21:20 -050051 days-to-keep: 180
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050052 num-to-keep: 3000
Riku Voipiobc87be22020-09-04 15:56:09 +030053 - authorization:
54 anonymous:
Riku Voipio3a69f722020-10-05 11:39:45 +030055 - job-discover
Riku Voipiobc87be22020-09-04 15:56:09 +030056 - job-read
57 - job-extended-read
Riku Voipio3a69f722020-10-05 11:39:45 +030058 - job-workspace
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050059 lsandov1:
60 - job-read
61 - job-extended-read
62 - job-build
63 - job-cancel
64 - run-update
Fathi Boudra9e402bf2019-12-05 11:16:41 +020065 parameters:
66 - string:
Leonardo Sandovalafdd5ce2020-07-06 11:35:36 -050067 name: import_cc
Leonardo Sandovalafdd5ce2020-07-06 11:35:36 -050068 - string:
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050069 name: TEST_DESC
Fathi Boudra18eca5c2020-01-16 17:50:42 +020070 - string:
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050071 name: TF_GERRIT_PROJECT
Fathi Boudra18eca5c2020-01-16 17:50:42 +020072 default: 'TF-A/trusted-firmware-a'
73 - string:
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050074 name: TF_GERRIT_BRANCH
Fathi Boudra18eca5c2020-01-16 17:50:42 +020075 default: 'refs/heads/master'
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050076 - 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
Leonardo Sandovale9dfbcd2021-01-07 23:05:40 -060099 default: 'https://github.com/ARMmbed/mbedtls/archive/mbedtls-2.25.0.tar.gz'
Milosz Wasilewski10438582020-12-03 11:36:21 +0000100 - string:
101 name: GERRIT_PATCHSET_NUMBER
102 default: ''
103 - string:
104 name: GERRIT_CHANGE_NUMBER
105 default: ''
106 - string:
Milosz Wasilewski204a27e2020-12-10 10:29:45 +0000107 name: GERRIT_HOST
108 default: 'review.trustedfirmware.org'
109 - string:
Milosz Wasilewski10438582020-12-03 11:36:21 +0000110 name: QA_SERVER_TEAM
111 default: 'tf'
112 - string:
113 name: QA_SERVER_PROJECT
114 default: 'tf-a'
115 - string:
116 name: QA_SERVER
117 default: 'https://qa-reports.linaro.org'
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500118 - bool:
119 name: ENABLE_STATIC_CHECK
120 default: false
Fathi Boudra9e402bf2019-12-05 11:16:41 +0200121 scm:
122 - tf-a-ci-scripts
123 - trusted-firmware-a
124 - tf-a-tests
125 wrappers:
126 - timestamps
Milosz Wasilewski10438582020-12-03 11:36:21 +0000127 - credentials-binding:
128 - text:
129 credential-id: QA_REPORTS_TOKEN
130 variable: QA_REPORTS_TOKEN
Leonardo Sandoval9f159802021-01-20 16:47:25 -0600131 - credentials-binding:
132 - text:
133 credential-id: LAVA_USER_TF
134 variable: LAVA_USER
135 - credentials-binding:
136 - text:
137 credential-id: LAVA_TOKEN_TF
138 variable: LAVA_TOKEN
Fathi Boudra9e402bf2019-12-05 11:16:41 +0200139 builders:
140 - shell:
141 !include-raw: tf-a-builder/builders.sh
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500142 - conditional-step:
143 condition-kind: file-exists
144 on-evaluation-failure: dont-run
145 condition-filename: artefacts/debug/job.yaml
146 condition-basedir: workspace
147 steps:
148 - shell: |
149 #!/bin/bash
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500150 set -e
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500151 DEVICE_TYPE=fvp
152 CUSTOM_YAML_URL=${BUILD_URL}/artifact/artefacts/debug/job.yaml
153 DEVICE_TYPE=$(awk -F': ' '/device_type/ {print $2}' ${WORKSPACE}/artefacts/debug/job.yaml)
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500154 cat << EOF > ${WORKSPACE}/post-build-lava.param
155 DEVICE_TYPE=${DEVICE_TYPE}
Milosz Wasilewski10438582020-12-03 11:36:21 +0000156 LAVA_SERVER=tf.validation.linaro.org
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500157 EOF
Fathi Boudra9e402bf2019-12-05 11:16:41 +0200158 publishers:
159 - archive:
160 artifacts: 'artefacts/**'
161 latest-only: false
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500162 allow-empty: true
163 - conditional-publisher:
164 - condition-kind: file-exists
165 on-evaluation-failure: dont-run
166 condition-filename: artefacts/debug/job.yaml
167 condition-basedir: workspace
168 action:
Milosz Wasilewski10438582020-12-03 11:36:21 +0000169 - postbuildscript:
170 builders:
171 - role: SLAVE
172 build-on:
173 - SUCCESS
174 build-steps:
175 - inject:
176 properties-file: ${WORKSPACE}/post-build-lava.param
177 - shell:
178 !include-raw: tf-a-builder/test.sh
Leonardo Sandoval9f159802021-01-20 16:47:25 -0600179 - conditional-publisher:
180 - condition-kind: file-exists
181 on-evaluation-failure: dont-run
182 condition-filename: lava.log
183 condition-basedir: workspace
184 action:
185 - archive:
186 artifacts: lava.log
187 latest-only: false
188 allow-empty: true
Milosz Wasilewski10438582020-12-03 11:36:21 +0000189 - groovy-postbuild:
190 script:
191 !include-raw:
192 - tf-a-builder/test.groovy