blob: db496d647b7cac27fd2644112ae535b590298f86 [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
Paul Sokolovskyd9f65b52024-10-22 13:50:58 +07008 description: |
9 Trusted Firmware A (TF-A) LTS2.8 builder
Paul Sokolovskya951a4c2023-06-01 21:34:09 +030010 properties:
11 - build-discarder:
12 days-to-keep: 15
13 artifact-num-to-keep: 40000
Paul Sokolovskya951a4c2023-06-01 21:34:09 +030014 parameters:
15 - string:
16 name: import_cc
17 - string:
18 name: TEST_CONFIG
19 description: |
20 Original test configuration.
21 - string:
22 name: TEST_DESC
23 description: |
24 Expanded and normalized test configuration, aka "test description"
25 - string:
26 name: TF_GERRIT_PROJECT
27 default: 'TF-A/trusted-firmware-a'
28 - string:
29 name: TF_GERRIT_BRANCH
30 default: 'refs/heads/master'
31 - string:
32 name: TF_GERRIT_REFSPEC
33 default: '+refs/heads/master:refs/remotes/origin/master'
34 - string:
35 name: TFTF_GERRIT_PROJECT
36 default: 'TF-A/tf-a-tests'
37 - string:
38 name: TFTF_GERRIT_BRANCH
39 default: 'refs/heads/master'
40 - string:
41 name: TFTF_GERRIT_REFSPEC
42 default: '+refs/heads/master:refs/remotes/origin/master'
43 - string:
Paul Sokolovsky33f625f2024-01-31 23:07:17 +070044 name: CI_REFSPEC
45 default: '+refs/heads/master:refs/remotes/origin/master'
46 - string:
Saheer Babub495f032025-01-21 23:01:11 +000047 name: JOBS_REFSPEC
48 default: 'refs/heads/master'
49 description: |
50 tf-a-job-configs refspec to use. The master branch is used by default.
51 - string:
Paul Sokolovskya951a4c2023-06-01 21:34:09 +030052 name: DOCKER_REGISTRY
Arthur Shea1223f12025-02-03 14:23:10 -080053 default: ${PRIVATE_CONTAINER_REGISTRY}
54 description: PRIVATE_CONTAINER_REGISTRY is a system-wide environment variable
Paul Sokolovskya951a4c2023-06-01 21:34:09 +030055 - string:
Paul Sokolovskya951a4c2023-06-01 21:34:09 +030056 name: JUNO_ROOTFS_URL
57 default: 'http://releases.linaro.org/openembedded/aarch64/17.01/linaro-image-minimal-genericarmv8-20170127-888.rootfs.tar.gz'
58 - string:
59 name: MBEDTLS_URL
Govindraj Raja77cecb72025-05-16 14:22:29 -050060 default: 'https://github.com/Mbed-TLS/mbedtls/archive/mbedtls-3.6.3.tar.gz'
Paul Sokolovskya951a4c2023-06-01 21:34:09 +030061 - string:
62 name: GERRIT_PATCHSET_NUMBER
63 default: ''
64 - string:
65 name: GERRIT_CHANGE_NUMBER
66 default: ''
67 - string:
68 name: GERRIT_HOST
69 default: 'review.trustedfirmware.org'
70 - string:
71 name: QA_SERVER_TEAM
72 default: 'tf'
73 - string:
74 name: QA_SERVER_PROJECT
75 default: 'tf-a'
76 - string:
77 name: QA_SERVER_VERSION
78 default: ${BUILD_NUMBER}
79 - string:
80 name: QA_SERVER
81 default: 'https://qa-reports.linaro.org'
82 - string:
83 name: QA_TOOLS_REPO
84 default: 'https://git.gitlab.arm.com/tooling/qa-tools.git'
85 - string:
86 name: QA_TOOLS_BRANCH
87 default: 'master'
88 - string:
Paul Sokolovskya9412f22024-01-31 23:04:53 +070089 name: LAVA_RETRIES
90 default: 2
91 description: |
92 Number of tries submitting job to LAVA in case it fails (stopgap measure against nondeterministic failures)
93 - string:
Paul Sokolovskyd56f19b2024-01-25 22:43:15 +070094 name: USE_TUXSUITE_FVP
Paul Sokolovskyc3f66952024-01-26 00:50:59 +070095 default: 1
Paul Sokolovskyd56f19b2024-01-25 22:43:15 +070096 description: |
97 Whether to submit FVP tests via TuxSuite (instead of LAVA)
98 - string:
Paul Sokolovskya951a4c2023-06-01 21:34:09 +030099 name: SHARE_FOLDER
100 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
101 description: 'Folder containing shared repositories for downstream pipeline jobs'
102 wrappers:
103 - timestamps
104 - timeout:
105 timeout: 120
106 fail: true
107 - credentials-binding:
108 - text:
109 credential-id: QA_REPORTS_TOKEN
110 variable: QA_REPORTS_TOKEN
111 - credentials-binding:
112 - text:
113 credential-id: LAVA_USER_TF
114 variable: LAVA_USER
115 - credentials-binding:
116 - text:
117 credential-id: LAVA_TOKEN_TF
118 variable: LAVA_TOKEN
Paul Sokolovskyf0425882023-11-28 10:29:37 +0300119 - credentials-binding:
120 - text:
Paul Sokolovskyc28ba602024-01-26 00:22:45 +0700121 credential-id: TUXSUITE_TOKEN
122 variable: TUXSUITE_TOKEN
123 - credentials-binding:
124 - text:
Paul Sokolovskyf0425882023-11-28 10:29:37 +0300125 credential-id: ARMCLANG_UBL_CODE
126 variable: ARMCLANG_UBL_CODE
Paul Sokolovskya951a4c2023-06-01 21:34:09 +0300127 builders:
128 - shell: |
129 aarch64-none-elf-gcc -v || true
130 - shell:
131 !include-raw: scripts/clone.sh
132 - shell:
Arthur She179825b2025-02-10 09:22:55 -0800133 !include-raw: tf-a-builder/lts-builders.sh
Paul Sokolovskya951a4c2023-06-01 21:34:09 +0300134 - inject:
135 properties-file: artefacts/env
136 - shell: |
137 ln -s "artefacts/${BIN_MODE:-release}" "artefacts-lava"
Paul Sokolovskya9412f22024-01-31 23:04:53 +0700138 echo ${BIN_MODE:-release} >lava-binmode.txt
Paul Sokolovskya951a4c2023-06-01 21:34:09 +0300139 - conditional-step:
140 condition-kind: file-exists
141 on-evaluation-failure: dont-run
142 condition-filename: artefacts-lava/job.yaml
143 condition-basedir: workspace
144 steps:
145 - shell: |
146 #!/bin/bash
147 set -e
148 DEVICE_TYPE=fvp
149 CUSTOM_YAML_URL=${BUILD_URL}/artifact/artefacts-lava/job.yaml
150 DEVICE_TYPE=$(awk -F': ' '/device_type/ {print $2}' ${WORKSPACE}/artefacts-lava/job.yaml)
151 cat << EOF > ${WORKSPACE}/lava.param
152 DEVICE_TYPE=${DEVICE_TYPE}
153 LAVA_SERVER=tf.validation.linaro.org
154 EOF
155 publishers:
156 - archive:
Paul Sokolovskya9412f22024-01-31 23:04:53 +0700157 artifacts: artefacts/**, lava-binmode.txt
Paul Sokolovskya951a4c2023-06-01 21:34:09 +0300158 latest-only: false
159 allow-empty: true
160 - conditional-publisher:
161 - condition-kind: file-exists
162 on-evaluation-failure: dont-run
163 condition-filename: artefacts-lava/job.yaml
164 condition-basedir: workspace
165 action:
166 - postbuildscript:
167 mark-unstable-if-failed: true
168 builders:
169 - role: SLAVE
170 build-on:
171 - SUCCESS
172 build-steps:
173 - inject:
174 properties-file: ${WORKSPACE}/lava.param
175 - shell: |
Paul Sokolovskya9412f22024-01-31 23:04:53 +0700176 #!/bin/bash -x
Paul Sokolovskya951a4c2023-06-01 21:34:09 +0300177
Paul Sokolovskya9412f22024-01-31 23:04:53 +0700178 tf-a-job-configs/tf-a-builder/submit-test-job.sh
179 status=$?
Paul Sokolovskya951a4c2023-06-01 21:34:09 +0300180 tf-a-job-configs/tf-a-builder/lava-log-process.sh
Paul Sokolovskya9412f22024-01-31 23:04:53 +0700181 if [ $status -ne 0 ]; then
Paul Sokolovskya951a4c2023-06-01 21:34:09 +0300182 echo "LAVA JOB RESULT: 1"
183 exit 1
184 else
185 echo "LAVA JOB RESULT: 0"
186 fi
187 - postbuildscript:
188 builders:
189 - role: SLAVE
190 build-on:
191 - SUCCESS
192 build-steps:
193 - shell: |
194 #!/bin/bash -e
195 echo "=== Starting expect-post tests ==="
196 ./tf-a-ci-scripts/script/expect-post-runner.sh
197 - conditional-publisher:
198 - condition-kind: file-exists
199 on-evaluation-failure: dont-run
200 condition-filename: lava-raw-debug.log
201 condition-basedir: workspace
202 action:
203 - archive:
204 artifacts: lava-raw-debug.log
205 latest-only: false
206 allow-empty: true
207 - archive:
Paul Sokolovskya9412f22024-01-31 23:04:53 +0700208 artifacts: lava.log, lava-*.log, tux.id, feedback.log, config_file.json, covtrace-*.log, trace_report/**
Paul Sokolovskya951a4c2023-06-01 21:34:09 +0300209 latest-only: false
210 allow-empty: true
211 - groovy-postbuild:
212 script:
213 !include-raw:
214 - tf-a-builder/postbuild.groovy