blob: ebba789a20676c70050f160da779946c6389ac3f [file] [log] [blame]
Paul Sokolovsky209003d2024-01-31 23:34:16 +07001- job:
2 name: tf-a-lts2.10-builder
Paul Sokolovsky36e8e842024-02-07 13:26:57 +07003 node: docker-amd64-tf-a-lts2.10-jammy
Paul Sokolovsky209003d2024-01-31 23:34:16 +07004 project-type: freestyle
5 concurrent: true
6 disabled: false
7 defaults: global
Paul Sokolovskyd9f65b52024-10-22 13:50:58 +07008 description: |
9 Trusted Firmware A (TF-A) LTS2.10 builder
Paul Sokolovsky209003d2024-01-31 23:34:16 +070010 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:
Paul Sokolovsky209003d2024-01-31 23:34:16 +070054 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
Paul Sokolovsky209003d2024-01-31 23:34:16 +070057 - string:
Paul Sokolovsky209003d2024-01-31 23:34:16 +070058 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
Yann Gautier75189582025-01-10 17:37:36 +010062 default: 'https://github.com/Mbed-TLS/mbedtls/archive/mbedtls-3.6.2.tar.gz'
Paul Sokolovsky209003d2024-01-31 23:34:16 +070063 - 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:
101 name: SHARE_FOLDER
102 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
103 description: 'Folder containing shared repositories for downstream pipeline jobs'
104 wrappers:
105 - timestamps
106 - timeout:
107 timeout: 120
108 fail: true
109 - credentials-binding:
110 - text:
111 credential-id: QA_REPORTS_TOKEN
112 variable: QA_REPORTS_TOKEN
113 - credentials-binding:
114 - text:
115 credential-id: LAVA_USER_TF
116 variable: LAVA_USER
117 - credentials-binding:
118 - text:
119 credential-id: LAVA_TOKEN_TF
120 variable: LAVA_TOKEN
121 - credentials-binding:
122 - text:
123 credential-id: TUXSUITE_TOKEN
124 variable: TUXSUITE_TOKEN
125 - credentials-binding:
126 - text:
127 credential-id: ARMCLANG_UBL_CODE
128 variable: ARMCLANG_UBL_CODE
129 builders:
130 - shell: |
131 aarch64-none-elf-gcc -v || true
132 - shell:
133 !include-raw: scripts/clone.sh
134 - shell:
135 !include-raw: tf-a-builder/builders.sh
136 - inject:
137 properties-file: artefacts/env
138 - shell: |
139 ln -s "artefacts/${BIN_MODE:-release}" "artefacts-lava"
140 echo ${BIN_MODE:-release} >lava-binmode.txt
141 - conditional-step:
142 condition-kind: file-exists
143 on-evaluation-failure: dont-run
144 condition-filename: artefacts-lava/job.yaml
145 condition-basedir: workspace
146 steps:
147 - shell: |
148 #!/bin/bash
149 set -e
150 DEVICE_TYPE=fvp
151 CUSTOM_YAML_URL=${BUILD_URL}/artifact/artefacts-lava/job.yaml
152 DEVICE_TYPE=$(awk -F': ' '/device_type/ {print $2}' ${WORKSPACE}/artefacts-lava/job.yaml)
153 cat << EOF > ${WORKSPACE}/lava.param
154 DEVICE_TYPE=${DEVICE_TYPE}
155 LAVA_SERVER=tf.validation.linaro.org
156 EOF
157 publishers:
158 - archive:
159 artifacts: artefacts/**, lava-binmode.txt
160 latest-only: false
161 allow-empty: true
162 - conditional-publisher:
163 - condition-kind: file-exists
164 on-evaluation-failure: dont-run
165 condition-filename: artefacts-lava/job.yaml
166 condition-basedir: workspace
167 action:
168 - postbuildscript:
169 mark-unstable-if-failed: true
170 builders:
171 - role: SLAVE
172 build-on:
173 - SUCCESS
174 build-steps:
175 - inject:
176 properties-file: ${WORKSPACE}/lava.param
177 - shell: |
178 #!/bin/bash -x
179
180 tf-a-job-configs/tf-a-builder/submit-test-job.sh
181 status=$?
182 tf-a-job-configs/tf-a-builder/lava-log-process.sh
183 if [ $status -ne 0 ]; then
184 echo "LAVA JOB RESULT: 1"
185 exit 1
186 else
187 echo "LAVA JOB RESULT: 0"
188 fi
189 - postbuildscript:
190 builders:
191 - role: SLAVE
192 build-on:
193 - SUCCESS
194 build-steps:
195 - shell: |
196 #!/bin/bash -e
197 echo "=== Starting expect-post tests ==="
198 ./tf-a-ci-scripts/script/expect-post-runner.sh
199 - conditional-publisher:
200 - condition-kind: file-exists
201 on-evaluation-failure: dont-run
202 condition-filename: lava-raw-debug.log
203 condition-basedir: workspace
204 action:
205 - archive:
206 artifacts: lava-raw-debug.log
207 latest-only: false
208 allow-empty: true
209 - archive:
210 artifacts: lava.log, lava-*.log, tux.id, feedback.log, config_file.json, covtrace-*.log, trace_report/**
211 latest-only: false
212 allow-empty: true
213 - groovy-postbuild:
214 script:
215 !include-raw:
216 - tf-a-builder/postbuild.groovy