blob: aa8efde113086db2cba794eea606a078c52a7c81 [file] [log] [blame]
Paul Sokolovskya951a4c2023-06-01 21:34:09 +03001- job:
2 name: tf-a-lts2.8-builder
3 node: docker-amd64-tf-a-lts2.8-jammy
4 project-type: freestyle
5 concurrent: true
6 disabled: false
7 defaults: global
8 Description: |
9 Trusted Firmware A (TF-A) builder
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: DOCKER_REGISTRY
47 default: '987685672616.dkr.ecr.us-east-1.amazonaws.com'
48 - string:
49 name: ARMLMD_LICENSE_FILE
50 default: '27000@flexnet.trustedfirmware.org'
51 - string:
52 name: JUNO_ROOTFS_URL
53 default: 'http://releases.linaro.org/openembedded/aarch64/17.01/linaro-image-minimal-genericarmv8-20170127-888.rootfs.tar.gz'
54 - string:
55 name: MBEDTLS_URL
Govindraj Raja022c4db2023-10-10 16:42:04 -050056 default: 'https://github.com/Mbed-TLS/mbedtls/archive/mbedtls-2.28.5.tar.gz'
Paul Sokolovskya951a4c2023-06-01 21:34:09 +030057 - string:
58 name: GERRIT_PATCHSET_NUMBER
59 default: ''
60 - string:
61 name: GERRIT_CHANGE_NUMBER
62 default: ''
63 - string:
64 name: GERRIT_HOST
65 default: 'review.trustedfirmware.org'
66 - string:
67 name: QA_SERVER_TEAM
68 default: 'tf'
69 - string:
70 name: QA_SERVER_PROJECT
71 default: 'tf-a'
72 - string:
73 name: QA_SERVER_VERSION
74 default: ${BUILD_NUMBER}
75 - string:
76 name: QA_SERVER
77 default: 'https://qa-reports.linaro.org'
78 - string:
79 name: QA_TOOLS_REPO
80 default: 'https://git.gitlab.arm.com/tooling/qa-tools.git'
81 - string:
82 name: QA_TOOLS_BRANCH
83 default: 'master'
84 - string:
Paul Sokolovskyd56f19b2024-01-25 22:43:15 +070085 name: USE_TUXSUITE_FVP
Paul Sokolovskyc3f66952024-01-26 00:50:59 +070086 default: 1
Paul Sokolovskyd56f19b2024-01-25 22:43:15 +070087 description: |
88 Whether to submit FVP tests via TuxSuite (instead of LAVA)
89 - string:
Paul Sokolovskya951a4c2023-06-01 21:34:09 +030090 name: SHARE_FOLDER
91 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
92 description: 'Folder containing shared repositories for downstream pipeline jobs'
93 wrappers:
94 - timestamps
95 - timeout:
96 timeout: 120
97 fail: true
98 - credentials-binding:
99 - text:
100 credential-id: QA_REPORTS_TOKEN
101 variable: QA_REPORTS_TOKEN
102 - credentials-binding:
103 - text:
104 credential-id: LAVA_USER_TF
105 variable: LAVA_USER
106 - credentials-binding:
107 - text:
108 credential-id: LAVA_TOKEN_TF
109 variable: LAVA_TOKEN
Paul Sokolovskyf0425882023-11-28 10:29:37 +0300110 - credentials-binding:
111 - text:
Paul Sokolovskyc28ba602024-01-26 00:22:45 +0700112 credential-id: TUXSUITE_TOKEN
113 variable: TUXSUITE_TOKEN
114 - credentials-binding:
115 - text:
Paul Sokolovskyf0425882023-11-28 10:29:37 +0300116 credential-id: ARMCLANG_UBL_CODE
117 variable: ARMCLANG_UBL_CODE
Paul Sokolovskya951a4c2023-06-01 21:34:09 +0300118 builders:
119 - shell: |
120 aarch64-none-elf-gcc -v || true
121 - shell:
122 !include-raw: scripts/clone.sh
123 - shell:
124 !include-raw: tf-a-builder/builders.sh
125 - inject:
126 properties-file: artefacts/env
127 - shell: |
128 ln -s "artefacts/${BIN_MODE:-release}" "artefacts-lava"
129 - conditional-step:
130 condition-kind: file-exists
131 on-evaluation-failure: dont-run
132 condition-filename: artefacts-lava/job.yaml
133 condition-basedir: workspace
134 steps:
135 - shell: |
136 #!/bin/bash
137 set -e
138 DEVICE_TYPE=fvp
139 CUSTOM_YAML_URL=${BUILD_URL}/artifact/artefacts-lava/job.yaml
140 DEVICE_TYPE=$(awk -F': ' '/device_type/ {print $2}' ${WORKSPACE}/artefacts-lava/job.yaml)
141 cat << EOF > ${WORKSPACE}/lava.param
142 DEVICE_TYPE=${DEVICE_TYPE}
143 LAVA_SERVER=tf.validation.linaro.org
144 EOF
145 publishers:
146 - archive:
147 artifacts: artefacts/**, artefacts-lava/**
148 latest-only: false
149 allow-empty: true
150 - conditional-publisher:
151 - condition-kind: file-exists
152 on-evaluation-failure: dont-run
153 condition-filename: artefacts-lava/job.yaml
154 condition-basedir: workspace
155 action:
156 - postbuildscript:
157 mark-unstable-if-failed: true
158 builders:
159 - role: SLAVE
160 build-on:
161 - SUCCESS
162 build-steps:
163 - inject:
164 properties-file: ${WORKSPACE}/lava.param
165 - shell: |
166 #!/bin/bash
167
168 submit_job='tf-a-job-configs/tf-a-builder/submit-test-job.sh'
169 # FIXME: Juno and FVP jobs may fail due to non-related users changes,
170 # so CI needs to resubmit the job, at most three times:
171 # Juno jobs may fail due to LAVA lab infrastructure issues (see
172 # https://projects.linaro.org/browse/LSS-2128)
173 # FVP jobs may hang at some particular TFTF test (see
174 # https://linaro.atlassian.net/browse/TFC-176)
175 passed=0
176 for i in $(seq 1 3); do
177 echo "# LAVA submission iteration #$i"
178 if $submit_job; then
179 passed=1
180 break
181 fi
182 done
183 tf-a-job-configs/tf-a-builder/lava-log-process.sh
184 if [ $passed -eq 0 ]; then
185 echo "LAVA JOB RESULT: 1"
186 exit 1
187 else
188 echo "LAVA JOB RESULT: 0"
189 fi
190 - postbuildscript:
191 builders:
192 - role: SLAVE
193 build-on:
194 - SUCCESS
195 build-steps:
196 - shell: |
197 #!/bin/bash -e
198 echo "=== Starting expect-post tests ==="
199 ./tf-a-ci-scripts/script/expect-post-runner.sh
200 - conditional-publisher:
201 - condition-kind: file-exists
202 on-evaluation-failure: dont-run
203 condition-filename: lava-raw-debug.log
204 condition-basedir: workspace
205 action:
206 - archive:
207 artifacts: lava-raw-debug.log
208 latest-only: false
209 allow-empty: true
210 - archive:
211 artifacts: lava.log, lava-*.log, feedback.log, config_file.json, covtrace-*.log, trace_report/**
212 latest-only: false
213 allow-empty: true
214 - groovy-postbuild:
215 script:
216 !include-raw:
217 - tf-a-builder/postbuild.groovy