blob: cbac57d3d19f3a15ae226294f755da31384609b9 [file] [log] [blame]
Zachary Leaf5a9a2772024-10-15 15:07:23 +01001- job:
2 name: tf-a-builder-tfa-next
3 node: docker-amd64-tf-a-jammy
4 project-type: freestyle
5 concurrent: true
6 disabled: false
7 defaults: global
Paul Sokolovskyd9f65b52024-10-22 13:50:58 +07008 description: |
Zachary Leaf5a9a2772024-10-15 15:07:23 +01009 Trusted Firmware A (TF-A) builder for Next
10 properties:
11 - build-discarder:
12 days-to-keep: 15
13 artifact-num-to-keep: 40000
14 - authorization:
15 !include: authorization.yaml.inc
16 parameters:
17 - string:
18 name: import_cc
19 - string:
20 name: TEST_CONFIG
21 description: |
22 Original test configuration.
23 - string:
24 name: TEST_DESC
25 description: |
26 Expanded and normalized test configuration, aka "test description"
27 - string:
28 name: TF_GERRIT_PROJECT
29 default: 'TF-A/trusted-firmware-a'
30 - string:
31 name: TF_GERRIT_BRANCH
32 default: 'refs/heads/master'
33 - string:
34 name: TF_GERRIT_REFSPEC
35 default: '+refs/heads/master:refs/remotes/origin/master'
36 - string:
37 name: TFTF_GERRIT_PROJECT
38 default: 'TF-A/tf-a-tests'
39 - string:
40 name: TFTF_GERRIT_BRANCH
41 default: 'refs/heads/master'
42 - string:
43 name: TFTF_GERRIT_REFSPEC
44 default: '+refs/heads/master:refs/remotes/origin/master'
45 - string:
46 name: CI_REFSPEC
47 default: '+refs/heads/master:refs/remotes/origin/master'
48 - string:
Saheer Babub495f032025-01-21 23:01:11 +000049 name: JOBS_REFSPEC
50 default: 'refs/heads/master'
51 description: |
52 tf-a-job-configs refspec to use. The master branch is used by default.
53 - string:
Zachary Leaf5a9a2772024-10-15 15:07:23 +010054 name: DOCKER_REGISTRY
Arthur Shea1223f12025-02-03 14:23:10 -080055 default: ${PRIVATE_CONTAINER_REGISTRY}
56 description: PRIVATE_CONTAINER_REGISTRY is a system-wide environment variable
Zachary Leaf5a9a2772024-10-15 15:07:23 +010057 - string:
58 name: JUNO_ROOTFS_URL
59 default: 'http://releases.linaro.org/openembedded/aarch64/17.01/linaro-image-minimal-genericarmv8-20170127-888.rootfs.tar.gz'
60 - string:
61 name: MBEDTLS_URL
62 default: 'https://github.com/Mbed-TLS/mbedtls/archive/mbedtls-3.6.1.tar.gz'
63 - string:
64 name: GERRIT_PATCHSET_NUMBER
65 default: ''
66 - string:
67 name: GERRIT_CHANGE_NUMBER
68 default: ''
69 - string:
70 name: GERRIT_HOST
71 default: 'review.trustedfirmware.org'
72 - string:
73 name: QA_SERVER_TEAM
74 default: 'tf'
75 - string:
76 name: QA_SERVER_PROJECT
77 default: 'tf-a'
78 - string:
79 name: QA_SERVER_VERSION
80 default: ${BUILD_NUMBER}
81 - string:
82 name: QA_SERVER
83 default: 'https://qa-reports.linaro.org'
84 - string:
85 name: QA_TOOLS_REPO
86 default: 'https://git.gitlab.arm.com/tooling/qa-tools.git'
87 - string:
88 name: QA_TOOLS_BRANCH
89 default: 'master'
90 - string:
91 name: LAVA_RETRIES
92 default: 2
93 description: |
94 Number of tries submitting job to LAVA in case it fails (stopgap measure against nondeterministic failures)
95 - string:
96 name: USE_TUXSUITE_FVP
97 default: 1
98 description: |
99 Whether to submit FVP tests via TuxSuite (instead of LAVA)
100 - string:
Saheer Babud972f302025-01-19 16:43:48 +0000101 name: CLONE_REPOS
102 default: "tf-a-ci-scripts,trusted-firmware-a"
103 description: |
104 Optional arg to clone only specific projects from default list (tf-a-ci-scripts,trusted-firmware-a,tf-a-tests,spm,tf-m-tests,tf-m-extras)
105 - string:
Zachary Leaf5a9a2772024-10-15 15:07:23 +0100106 name: SHARE_FOLDER
107 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
108 description: 'Folder containing shared repositories for downstream pipeline jobs'
109 wrappers:
110 - timestamps
111 - timeout:
112 timeout: 120
113 fail: true
114 - credentials-binding:
115 - text:
116 credential-id: QA_REPORTS_TOKEN
117 variable: QA_REPORTS_TOKEN
118 - credentials-binding:
119 - text:
120 credential-id: LAVA_USER_TF
121 variable: LAVA_USER
122 - credentials-binding:
123 - text:
124 credential-id: LAVA_TOKEN_TF
125 variable: LAVA_TOKEN
126 - credentials-binding:
127 - text:
128 credential-id: TUXSUITE_TOKEN
129 variable: TUXSUITE_TOKEN
130 - credentials-binding:
131 - text:
132 credential-id: ARMCLANG_UBL_CODE
133 variable: ARMCLANG_UBL_CODE
134 builders:
135 - shell: |
136 aarch64-none-elf-gcc -v || true
137 - shell:
138 !include-raw: scripts/clone.sh
139 - shell:
140 !include-raw: tf-a-builder/builders.sh
141 - inject:
142 properties-file: artefacts/env
143 - shell: |
144 ln -s "artefacts/${BIN_MODE:-release}" "artefacts-lava"
145 echo ${BIN_MODE:-release} >lava-binmode.txt
146 - conditional-step:
147 condition-kind: file-exists
148 on-evaluation-failure: dont-run
149 condition-filename: artefacts-lava/job.yaml
150 condition-basedir: workspace
151 steps:
152 - shell: |
153 #!/bin/bash
154 set -e
155 DEVICE_TYPE=fvp
156 CUSTOM_YAML_URL=${BUILD_URL}/artifact/artefacts-lava/job.yaml
157 DEVICE_TYPE=$(awk -F': ' '/device_type/ {print $2}' ${WORKSPACE}/artefacts-lava/job.yaml)
158 cat << EOF > ${WORKSPACE}/lava.param
159 DEVICE_TYPE=${DEVICE_TYPE}
160 LAVA_SERVER=tf.validation.linaro.org
161 EOF
162 publishers:
163 - archive:
164 artifacts: artefacts/**, lava-binmode.txt
165 latest-only: false
166 allow-empty: true
167 - conditional-publisher:
168 - condition-kind: file-exists
169 on-evaluation-failure: dont-run
170 condition-filename: artefacts-lava/job.yaml
171 condition-basedir: workspace
172 action:
173 - postbuildscript:
174 mark-unstable-if-failed: true
175 builders:
176 - role: SLAVE
177 build-on:
178 - SUCCESS
179 build-steps:
180 - inject:
181 properties-file: ${WORKSPACE}/lava.param
182 - shell: |
183 #!/bin/bash -x
184
185 tf-a-job-configs/tf-a-builder/submit-test-job.sh
186 status=$?
187 tf-a-job-configs/tf-a-builder/lava-log-process.sh
188 if [ $status -ne 0 ]; then
189 echo "LAVA JOB RESULT: 1"
190 exit 1
191 else
192 echo "LAVA JOB RESULT: 0"
193 fi
194 - postbuildscript:
195 builders:
196 - role: SLAVE
197 build-on:
198 - SUCCESS
199 build-steps:
200 - shell: |
201 #!/bin/bash -e
202 echo "=== Starting expect-post tests ==="
203 ./tf-a-ci-scripts/script/expect-post-runner.sh
204 - conditional-publisher:
205 - condition-kind: file-exists
206 on-evaluation-failure: dont-run
207 condition-filename: lava-raw-debug.log
208 condition-basedir: workspace
209 action:
210 - archive:
211 artifacts: lava-raw-debug.log
212 latest-only: false
213 allow-empty: true
214 - archive:
215 artifacts: lava.log, lava-*.log, tux.id, feedback.log, config_file.json, covtrace-*.log, trace_report/**
216 latest-only: false
217 allow-empty: true
218 - groovy-postbuild:
219 script:
220 !include-raw:
221 - tf-a-builder/postbuild.groovy