blob: 1b795b7349ad2d0140e3d37e13e05a56fbbb924d [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
Riku Voipiobc87be22020-09-04 15:56:09 +030052 - authorization:
Leonardo Sandovalebca8822021-01-25 18:20:04 -060053 !include: authorization.yaml.inc
Fathi Boudra9e402bf2019-12-05 11:16:41 +020054 parameters:
55 - string:
Leonardo Sandovalafdd5ce2020-07-06 11:35:36 -050056 name: import_cc
Leonardo Sandovalafdd5ce2020-07-06 11:35:36 -050057 - string:
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050058 name: TEST_DESC
Fathi Boudra18eca5c2020-01-16 17:50:42 +020059 - string:
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050060 name: TF_GERRIT_PROJECT
Fathi Boudra18eca5c2020-01-16 17:50:42 +020061 default: 'TF-A/trusted-firmware-a'
62 - string:
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050063 name: TF_GERRIT_BRANCH
Fathi Boudra18eca5c2020-01-16 17:50:42 +020064 default: 'refs/heads/master'
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050065 - string:
66 name: TF_GERRIT_REFSPEC
67 default: '+refs/heads/master:refs/remotes/origin/master'
68 - string:
69 name: TFTF_GERRIT_PROJECT
70 default: 'TF-A/tf-a-tests'
71 - string:
72 name: TFTF_GERRIT_BRANCH
73 default: 'refs/heads/master'
74 - string:
75 name: TFTF_GERRIT_REFSPEC
76 default: '+refs/heads/master:refs/remotes/origin/master'
77 - string:
78 name: DOCKER_REGISTRY
79 default: '987685672616.dkr.ecr.us-east-1.amazonaws.com'
80 - string:
81 name: ARMLMD_LICENSE_FILE
82 default: '27000@ci.trustedfirmware.org'
83 - string:
84 name: JUNO_ROOTFS_URL
85 default: 'http://releases.linaro.org/openembedded/aarch64/17.01/linaro-image-minimal-genericarmv8-20170127-888.rootfs.tar.gz'
86 - string:
87 name: MBEDTLS_URL
Leonardo Sandovale9dfbcd2021-01-07 23:05:40 -060088 default: 'https://github.com/ARMmbed/mbedtls/archive/mbedtls-2.25.0.tar.gz'
Milosz Wasilewski10438582020-12-03 11:36:21 +000089 - string:
90 name: GERRIT_PATCHSET_NUMBER
91 default: ''
92 - string:
93 name: GERRIT_CHANGE_NUMBER
94 default: ''
95 - string:
Milosz Wasilewski204a27e2020-12-10 10:29:45 +000096 name: GERRIT_HOST
97 default: 'review.trustedfirmware.org'
98 - string:
Milosz Wasilewski10438582020-12-03 11:36:21 +000099 name: QA_SERVER_TEAM
100 default: 'tf'
101 - string:
102 name: QA_SERVER_PROJECT
103 default: 'tf-a'
104 - string:
105 name: QA_SERVER
106 default: 'https://qa-reports.linaro.org'
Fathi Boudra9e402bf2019-12-05 11:16:41 +0200107 scm:
108 - tf-a-ci-scripts
109 - trusted-firmware-a
110 - tf-a-tests
111 wrappers:
112 - timestamps
Fathi Boudrab4e04c02021-02-11 16:32:12 +0100113 - timeout:
114 timeout: 120
115 fail: true
Milosz Wasilewski10438582020-12-03 11:36:21 +0000116 - credentials-binding:
117 - text:
118 credential-id: QA_REPORTS_TOKEN
119 variable: QA_REPORTS_TOKEN
Leonardo Sandoval9f159802021-01-20 16:47:25 -0600120 - credentials-binding:
121 - text:
122 credential-id: LAVA_USER_TF
123 variable: LAVA_USER
124 - credentials-binding:
125 - text:
126 credential-id: LAVA_TOKEN_TF
127 variable: LAVA_TOKEN
Fathi Boudra9e402bf2019-12-05 11:16:41 +0200128 builders:
129 - shell:
130 !include-raw: tf-a-builder/builders.sh
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500131 - conditional-step:
132 condition-kind: file-exists
133 on-evaluation-failure: dont-run
134 condition-filename: artefacts/debug/job.yaml
135 condition-basedir: workspace
136 steps:
137 - shell: |
138 #!/bin/bash
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500139 set -e
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500140 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 Boudraf5537c32021-01-21 09:28:05 +0100143 cat << EOF > ${WORKSPACE}/lava.param
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500144 DEVICE_TYPE=${DEVICE_TYPE}
Milosz Wasilewski10438582020-12-03 11:36:21 +0000145 LAVA_SERVER=tf.validation.linaro.org
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500146 EOF
Fathi Boudra9e402bf2019-12-05 11:16:41 +0200147 publishers:
148 - archive:
149 artifacts: 'artefacts/**'
150 latest-only: false
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500151 allow-empty: true
152 - conditional-publisher:
153 - condition-kind: file-exists
154 on-evaluation-failure: dont-run
155 condition-filename: artefacts/debug/job.yaml
156 condition-basedir: workspace
157 action:
Milosz Wasilewski10438582020-12-03 11:36:21 +0000158 - postbuildscript:
159 builders:
160 - role: SLAVE
161 build-on:
162 - SUCCESS
163 build-steps:
164 - inject:
Fathi Boudraf5537c32021-01-21 09:28:05 +0100165 properties-file: ${WORKSPACE}/lava.param
Milosz Wasilewski10438582020-12-03 11:36:21 +0000166 - shell:
Fathi Boudraf5537c32021-01-21 09:28:05 +0100167 !include-raw: tf-a-builder/squad.sh
Leonardo Sandoval9f159802021-01-20 16:47:25 -0600168 - conditional-publisher:
169 - condition-kind: file-exists
170 on-evaluation-failure: dont-run
171 condition-filename: lava.log
172 condition-basedir: workspace
173 action:
174 - archive:
175 artifacts: lava.log
176 latest-only: false
177 allow-empty: true
Milosz Wasilewski10438582020-12-03 11:36:21 +0000178 - groovy-postbuild:
179 script:
180 !include-raw:
Fathi Boudraf5537c32021-01-21 09:28:05 +0100181 - tf-a-builder/postbuild.groovy