blob: 95f72a0905275b023d6b631be1fe6220cc507305 [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
Leonardo Sandoval94abc042021-03-29 19:32:39 -060024 choosing-strategy: gerrit
Fathi Boudra9e402bf2019-12-05 11:16:41 +020025 skip-tag: true
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050026 shallow-clone: false
Fathi Boudra9e402bf2019-12-05 11:16:41 +020027 wipe-workspace: false
28- scm:
29 name: tf-a-tests
30 scm:
31 - git:
Leonardo Sandoval94abc042021-03-29 19:32:39 -060032 url: https://review.trustedfirmware.org/${TFTF_GERRIT_PROJECT}
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050033 refspec: ${TFTF_GERRIT_REFSPEC}
Fathi Boudra9e402bf2019-12-05 11:16:41 +020034 name: origin
35 branches:
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050036 - ${TFTF_GERRIT_BRANCH}
Fathi Boudra9e402bf2019-12-05 11:16:41 +020037 basedir: tf-a-tests
Leonardo Sandoval94abc042021-03-29 19:32:39 -060038 choosing-strategy: gerrit
Fathi Boudra9e402bf2019-12-05 11:16:41 +020039 skip-tag: true
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050040 shallow-clone: false
Fathi Boudra9e402bf2019-12-05 11:16:41 +020041 wipe-workspace: false
42- job:
43 name: tf-a-builder
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050044 node: docker-amd64-tf-a-bionic
Fathi Boudra9e402bf2019-12-05 11:16:41 +020045 project-type: freestyle
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050046 concurrent: true
47 disabled: false
Fathi Boudra9e402bf2019-12-05 11:16:41 +020048 defaults: global
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050049 Description: |
50 Trusted Firmware A (TF-A) builder
Fathi Boudra9e402bf2019-12-05 11:16:41 +020051 properties:
52 - build-discarder:
Leonardo Sandovala4feb552021-03-02 12:10:21 -060053 days-to-keep: 14
Riku Voipiobc87be22020-09-04 15:56:09 +030054 - authorization:
Leonardo Sandovalebca8822021-01-25 18:20:04 -060055 !include: authorization.yaml.inc
Fathi Boudra9e402bf2019-12-05 11:16:41 +020056 parameters:
57 - string:
Leonardo Sandovalafdd5ce2020-07-06 11:35:36 -050058 name: import_cc
Leonardo Sandovalafdd5ce2020-07-06 11:35:36 -050059 - string:
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050060 name: TEST_DESC
Fathi Boudra18eca5c2020-01-16 17:50:42 +020061 - string:
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050062 name: TF_GERRIT_PROJECT
Fathi Boudra18eca5c2020-01-16 17:50:42 +020063 default: 'TF-A/trusted-firmware-a'
64 - string:
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050065 name: TF_GERRIT_BRANCH
Fathi Boudra18eca5c2020-01-16 17:50:42 +020066 default: 'refs/heads/master'
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050067 - string:
68 name: TF_GERRIT_REFSPEC
69 default: '+refs/heads/master:refs/remotes/origin/master'
70 - string:
71 name: TFTF_GERRIT_PROJECT
72 default: 'TF-A/tf-a-tests'
73 - string:
74 name: TFTF_GERRIT_BRANCH
75 default: 'refs/heads/master'
76 - string:
77 name: TFTF_GERRIT_REFSPEC
78 default: '+refs/heads/master:refs/remotes/origin/master'
79 - string:
80 name: DOCKER_REGISTRY
81 default: '987685672616.dkr.ecr.us-east-1.amazonaws.com'
82 - string:
83 name: ARMLMD_LICENSE_FILE
84 default: '27000@ci.trustedfirmware.org'
85 - string:
86 name: JUNO_ROOTFS_URL
87 default: 'http://releases.linaro.org/openembedded/aarch64/17.01/linaro-image-minimal-genericarmv8-20170127-888.rootfs.tar.gz'
88 - string:
89 name: MBEDTLS_URL
Leonardo Sandovale9dfbcd2021-01-07 23:05:40 -060090 default: 'https://github.com/ARMmbed/mbedtls/archive/mbedtls-2.25.0.tar.gz'
Milosz Wasilewski10438582020-12-03 11:36:21 +000091 - string:
92 name: GERRIT_PATCHSET_NUMBER
93 default: ''
94 - string:
95 name: GERRIT_CHANGE_NUMBER
96 default: ''
97 - string:
Milosz Wasilewski204a27e2020-12-10 10:29:45 +000098 name: GERRIT_HOST
99 default: 'review.trustedfirmware.org'
100 - string:
Milosz Wasilewski10438582020-12-03 11:36:21 +0000101 name: QA_SERVER_TEAM
102 default: 'tf'
103 - string:
104 name: QA_SERVER_PROJECT
105 default: 'tf-a'
106 - string:
107 name: QA_SERVER
108 default: 'https://qa-reports.linaro.org'
Fathi Boudra9e402bf2019-12-05 11:16:41 +0200109 scm:
110 - tf-a-ci-scripts
111 - trusted-firmware-a
112 - tf-a-tests
113 wrappers:
114 - timestamps
Fathi Boudrab4e04c02021-02-11 16:32:12 +0100115 - timeout:
116 timeout: 120
117 fail: true
Milosz Wasilewski10438582020-12-03 11:36:21 +0000118 - credentials-binding:
119 - text:
120 credential-id: QA_REPORTS_TOKEN
121 variable: QA_REPORTS_TOKEN
Leonardo Sandoval9f159802021-01-20 16:47:25 -0600122 - credentials-binding:
123 - text:
124 credential-id: LAVA_USER_TF
125 variable: LAVA_USER
126 - credentials-binding:
127 - text:
128 credential-id: LAVA_TOKEN_TF
129 variable: LAVA_TOKEN
Fathi Boudra9e402bf2019-12-05 11:16:41 +0200130 builders:
131 - shell:
132 !include-raw: tf-a-builder/builders.sh
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500133 - conditional-step:
134 condition-kind: file-exists
135 on-evaluation-failure: dont-run
136 condition-filename: artefacts/debug/job.yaml
137 condition-basedir: workspace
138 steps:
139 - shell: |
140 #!/bin/bash
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500141 set -e
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500142 DEVICE_TYPE=fvp
143 CUSTOM_YAML_URL=${BUILD_URL}/artifact/artefacts/debug/job.yaml
144 DEVICE_TYPE=$(awk -F': ' '/device_type/ {print $2}' ${WORKSPACE}/artefacts/debug/job.yaml)
Fathi Boudraf5537c32021-01-21 09:28:05 +0100145 cat << EOF > ${WORKSPACE}/lava.param
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500146 DEVICE_TYPE=${DEVICE_TYPE}
Milosz Wasilewski10438582020-12-03 11:36:21 +0000147 LAVA_SERVER=tf.validation.linaro.org
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500148 EOF
Fathi Boudra9e402bf2019-12-05 11:16:41 +0200149 publishers:
150 - archive:
151 artifacts: 'artefacts/**'
152 latest-only: false
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500153 allow-empty: true
154 - conditional-publisher:
155 - condition-kind: file-exists
156 on-evaluation-failure: dont-run
157 condition-filename: artefacts/debug/job.yaml
158 condition-basedir: workspace
159 action:
Milosz Wasilewski10438582020-12-03 11:36:21 +0000160 - postbuildscript:
161 builders:
162 - role: SLAVE
163 build-on:
164 - SUCCESS
165 build-steps:
166 - inject:
Fathi Boudraf5537c32021-01-21 09:28:05 +0100167 properties-file: ${WORKSPACE}/lava.param
Milosz Wasilewski10438582020-12-03 11:36:21 +0000168 - shell:
Fathi Boudraf5537c32021-01-21 09:28:05 +0100169 !include-raw: tf-a-builder/squad.sh
Leonardo Sandoval9f159802021-01-20 16:47:25 -0600170 - conditional-publisher:
171 - condition-kind: file-exists
172 on-evaluation-failure: dont-run
173 condition-filename: lava.log
174 condition-basedir: workspace
175 action:
176 - archive:
177 artifacts: lava.log
178 latest-only: false
179 allow-empty: true
Milosz Wasilewski10438582020-12-03 11:36:21 +0000180 - groovy-postbuild:
181 script:
182 !include-raw:
Fathi Boudraf5537c32021-01-21 09:28:05 +0100183 - tf-a-builder/postbuild.groovy