blob: 7a5cb22e1ef2324f83dee91d87857c49dbf13c64 [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:
Leonardo Sandovalebca8822021-01-25 18:20:04 -060054 !include: authorization.yaml.inc
Fathi Boudra9e402bf2019-12-05 11:16:41 +020055 parameters:
56 - string:
Leonardo Sandovalafdd5ce2020-07-06 11:35:36 -050057 name: import_cc
Leonardo Sandovalafdd5ce2020-07-06 11:35:36 -050058 - string:
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050059 name: TEST_DESC
Fathi Boudra18eca5c2020-01-16 17:50:42 +020060 - string:
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050061 name: TF_GERRIT_PROJECT
Fathi Boudra18eca5c2020-01-16 17:50:42 +020062 default: 'TF-A/trusted-firmware-a'
63 - string:
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050064 name: TF_GERRIT_BRANCH
Fathi Boudra18eca5c2020-01-16 17:50:42 +020065 default: 'refs/heads/master'
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050066 - 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 Sandovale9dfbcd2021-01-07 23:05:40 -060089 default: 'https://github.com/ARMmbed/mbedtls/archive/mbedtls-2.25.0.tar.gz'
Milosz Wasilewski10438582020-12-03 11:36:21 +000090 - string:
91 name: GERRIT_PATCHSET_NUMBER
92 default: ''
93 - string:
94 name: GERRIT_CHANGE_NUMBER
95 default: ''
96 - string:
Milosz Wasilewski204a27e2020-12-10 10:29:45 +000097 name: GERRIT_HOST
98 default: 'review.trustedfirmware.org'
99 - string:
Milosz Wasilewski10438582020-12-03 11:36:21 +0000100 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 Sandovaldc2a03a2020-10-05 18:12:19 -0500108 - bool:
109 name: ENABLE_STATIC_CHECK
110 default: false
Fathi Boudra9e402bf2019-12-05 11:16:41 +0200111 scm:
112 - tf-a-ci-scripts
113 - trusted-firmware-a
114 - tf-a-tests
115 wrappers:
116 - timestamps
Fathi Boudrab4e04c02021-02-11 16:32:12 +0100117 - timeout:
118 timeout: 120
119 fail: true
Milosz Wasilewski10438582020-12-03 11:36:21 +0000120 - credentials-binding:
121 - text:
122 credential-id: QA_REPORTS_TOKEN
123 variable: QA_REPORTS_TOKEN
Leonardo Sandoval9f159802021-01-20 16:47:25 -0600124 - credentials-binding:
125 - text:
126 credential-id: LAVA_USER_TF
127 variable: LAVA_USER
128 - credentials-binding:
129 - text:
130 credential-id: LAVA_TOKEN_TF
131 variable: LAVA_TOKEN
Fathi Boudra9e402bf2019-12-05 11:16:41 +0200132 builders:
133 - shell:
134 !include-raw: tf-a-builder/builders.sh
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500135 - conditional-step:
136 condition-kind: file-exists
137 on-evaluation-failure: dont-run
138 condition-filename: artefacts/debug/job.yaml
139 condition-basedir: workspace
140 steps:
141 - shell: |
142 #!/bin/bash
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500143 set -e
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500144 DEVICE_TYPE=fvp
145 CUSTOM_YAML_URL=${BUILD_URL}/artifact/artefacts/debug/job.yaml
146 DEVICE_TYPE=$(awk -F': ' '/device_type/ {print $2}' ${WORKSPACE}/artefacts/debug/job.yaml)
Fathi Boudraf5537c32021-01-21 09:28:05 +0100147 cat << EOF > ${WORKSPACE}/lava.param
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500148 DEVICE_TYPE=${DEVICE_TYPE}
Milosz Wasilewski10438582020-12-03 11:36:21 +0000149 LAVA_SERVER=tf.validation.linaro.org
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500150 EOF
Fathi Boudra9e402bf2019-12-05 11:16:41 +0200151 publishers:
152 - archive:
153 artifacts: 'artefacts/**'
154 latest-only: false
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500155 allow-empty: true
156 - conditional-publisher:
157 - condition-kind: file-exists
158 on-evaluation-failure: dont-run
159 condition-filename: artefacts/debug/job.yaml
160 condition-basedir: workspace
161 action:
Milosz Wasilewski10438582020-12-03 11:36:21 +0000162 - postbuildscript:
163 builders:
164 - role: SLAVE
165 build-on:
166 - SUCCESS
167 build-steps:
168 - inject:
Fathi Boudraf5537c32021-01-21 09:28:05 +0100169 properties-file: ${WORKSPACE}/lava.param
Milosz Wasilewski10438582020-12-03 11:36:21 +0000170 - shell:
Fathi Boudraf5537c32021-01-21 09:28:05 +0100171 !include-raw: tf-a-builder/squad.sh
Leonardo Sandoval9f159802021-01-20 16:47:25 -0600172 - conditional-publisher:
173 - condition-kind: file-exists
174 on-evaluation-failure: dont-run
175 condition-filename: lava.log
176 condition-basedir: workspace
177 action:
178 - archive:
179 artifacts: lava.log
180 latest-only: false
181 allow-empty: true
Milosz Wasilewski10438582020-12-03 11:36:21 +0000182 - groovy-postbuild:
183 script:
184 !include-raw:
Fathi Boudraf5537c32021-01-21 09:28:05 +0100185 - tf-a-builder/postbuild.groovy