blob: c591641b841ec51df3f711a7d27b0cb001b1f92c [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 Sandovala4feb552021-03-02 12:10:21 -060051 days-to-keep: 14
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'
Fathi Boudra9e402bf2019-12-05 11:16:41 +0200108 scm:
109 - tf-a-ci-scripts
110 - trusted-firmware-a
111 - tf-a-tests
112 wrappers:
113 - timestamps
Fathi Boudrab4e04c02021-02-11 16:32:12 +0100114 - timeout:
115 timeout: 120
116 fail: true
Milosz Wasilewski10438582020-12-03 11:36:21 +0000117 - credentials-binding:
118 - text:
119 credential-id: QA_REPORTS_TOKEN
120 variable: QA_REPORTS_TOKEN
Leonardo Sandoval9f159802021-01-20 16:47:25 -0600121 - credentials-binding:
122 - text:
123 credential-id: LAVA_USER_TF
124 variable: LAVA_USER
125 - credentials-binding:
126 - text:
127 credential-id: LAVA_TOKEN_TF
128 variable: LAVA_TOKEN
Fathi Boudra9e402bf2019-12-05 11:16:41 +0200129 builders:
130 - shell:
131 !include-raw: tf-a-builder/builders.sh
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500132 - conditional-step:
133 condition-kind: file-exists
134 on-evaluation-failure: dont-run
135 condition-filename: artefacts/debug/job.yaml
136 condition-basedir: workspace
137 steps:
138 - shell: |
139 #!/bin/bash
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500140 set -e
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500141 DEVICE_TYPE=fvp
142 CUSTOM_YAML_URL=${BUILD_URL}/artifact/artefacts/debug/job.yaml
143 DEVICE_TYPE=$(awk -F': ' '/device_type/ {print $2}' ${WORKSPACE}/artefacts/debug/job.yaml)
Fathi Boudraf5537c32021-01-21 09:28:05 +0100144 cat << EOF > ${WORKSPACE}/lava.param
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500145 DEVICE_TYPE=${DEVICE_TYPE}
Milosz Wasilewski10438582020-12-03 11:36:21 +0000146 LAVA_SERVER=tf.validation.linaro.org
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500147 EOF
Fathi Boudra9e402bf2019-12-05 11:16:41 +0200148 publishers:
149 - archive:
150 artifacts: 'artefacts/**'
151 latest-only: false
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500152 allow-empty: true
153 - conditional-publisher:
154 - condition-kind: file-exists
155 on-evaluation-failure: dont-run
156 condition-filename: artefacts/debug/job.yaml
157 condition-basedir: workspace
158 action:
Milosz Wasilewski10438582020-12-03 11:36:21 +0000159 - postbuildscript:
160 builders:
161 - role: SLAVE
162 build-on:
163 - SUCCESS
164 build-steps:
165 - inject:
Fathi Boudraf5537c32021-01-21 09:28:05 +0100166 properties-file: ${WORKSPACE}/lava.param
Milosz Wasilewski10438582020-12-03 11:36:21 +0000167 - shell:
Fathi Boudraf5537c32021-01-21 09:28:05 +0100168 !include-raw: tf-a-builder/squad.sh
Leonardo Sandoval9f159802021-01-20 16:47:25 -0600169 - conditional-publisher:
170 - condition-kind: file-exists
171 on-evaluation-failure: dont-run
172 condition-filename: lava.log
173 condition-basedir: workspace
174 action:
175 - archive:
176 artifacts: lava.log
177 latest-only: false
178 allow-empty: true
Milosz Wasilewski10438582020-12-03 11:36:21 +0000179 - groovy-postbuild:
180 script:
181 !include-raw:
Fathi Boudraf5537c32021-01-21 09:28:05 +0100182 - tf-a-builder/postbuild.groovy