blob: 53ecf623a538e05beac6741df5d0ace4b92e5cc0 [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:
49 name: DOCKER_REGISTRY
Arthur She9296f492025-01-27 21:25:13 -080050 default: ${JENKINS_DOCKER_REGISTRY}
51 description: JENKINS_DOCKER_REGISTRY is a system-wide environment variable
Paul Sokolovsky209003d2024-01-31 23:34:16 +070052 - string:
Paul Sokolovsky209003d2024-01-31 23:34:16 +070053 name: JUNO_ROOTFS_URL
54 default: 'http://releases.linaro.org/openembedded/aarch64/17.01/linaro-image-minimal-genericarmv8-20170127-888.rootfs.tar.gz'
55 - string:
56 name: MBEDTLS_URL
Yann Gautier75189582025-01-10 17:37:36 +010057 default: 'https://github.com/Mbed-TLS/mbedtls/archive/mbedtls-3.6.2.tar.gz'
Paul Sokolovsky209003d2024-01-31 23:34:16 +070058 - string:
59 name: GERRIT_PATCHSET_NUMBER
60 default: ''
61 - string:
62 name: GERRIT_CHANGE_NUMBER
63 default: ''
64 - string:
65 name: GERRIT_HOST
66 default: 'review.trustedfirmware.org'
67 - string:
68 name: QA_SERVER_TEAM
69 default: 'tf'
70 - string:
71 name: QA_SERVER_PROJECT
72 default: 'tf-a'
73 - string:
74 name: QA_SERVER_VERSION
75 default: ${BUILD_NUMBER}
76 - string:
77 name: QA_SERVER
78 default: 'https://qa-reports.linaro.org'
79 - string:
80 name: QA_TOOLS_REPO
81 default: 'https://git.gitlab.arm.com/tooling/qa-tools.git'
82 - string:
83 name: QA_TOOLS_BRANCH
84 default: 'master'
85 - string:
86 name: LAVA_RETRIES
87 default: 2
88 description: |
89 Number of tries submitting job to LAVA in case it fails (stopgap measure against nondeterministic failures)
90 - string:
91 name: USE_TUXSUITE_FVP
92 default: 1
93 description: |
94 Whether to submit FVP tests via TuxSuite (instead of LAVA)
95 - string:
96 name: SHARE_FOLDER
97 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
98 description: 'Folder containing shared repositories for downstream pipeline jobs'
99 wrappers:
100 - timestamps
101 - timeout:
102 timeout: 120
103 fail: true
104 - credentials-binding:
105 - text:
106 credential-id: QA_REPORTS_TOKEN
107 variable: QA_REPORTS_TOKEN
108 - credentials-binding:
109 - text:
110 credential-id: LAVA_USER_TF
111 variable: LAVA_USER
112 - credentials-binding:
113 - text:
114 credential-id: LAVA_TOKEN_TF
115 variable: LAVA_TOKEN
116 - credentials-binding:
117 - text:
118 credential-id: TUXSUITE_TOKEN
119 variable: TUXSUITE_TOKEN
120 - credentials-binding:
121 - text:
122 credential-id: ARMCLANG_UBL_CODE
123 variable: ARMCLANG_UBL_CODE
124 builders:
125 - shell: |
126 aarch64-none-elf-gcc -v || true
127 - shell:
128 !include-raw: scripts/clone.sh
129 - shell:
130 !include-raw: tf-a-builder/builders.sh
131 - inject:
132 properties-file: artefacts/env
133 - shell: |
134 ln -s "artefacts/${BIN_MODE:-release}" "artefacts-lava"
135 echo ${BIN_MODE:-release} >lava-binmode.txt
136 - conditional-step:
137 condition-kind: file-exists
138 on-evaluation-failure: dont-run
139 condition-filename: artefacts-lava/job.yaml
140 condition-basedir: workspace
141 steps:
142 - shell: |
143 #!/bin/bash
144 set -e
145 DEVICE_TYPE=fvp
146 CUSTOM_YAML_URL=${BUILD_URL}/artifact/artefacts-lava/job.yaml
147 DEVICE_TYPE=$(awk -F': ' '/device_type/ {print $2}' ${WORKSPACE}/artefacts-lava/job.yaml)
148 cat << EOF > ${WORKSPACE}/lava.param
149 DEVICE_TYPE=${DEVICE_TYPE}
150 LAVA_SERVER=tf.validation.linaro.org
151 EOF
152 publishers:
153 - archive:
154 artifacts: artefacts/**, lava-binmode.txt
155 latest-only: false
156 allow-empty: true
157 - conditional-publisher:
158 - condition-kind: file-exists
159 on-evaluation-failure: dont-run
160 condition-filename: artefacts-lava/job.yaml
161 condition-basedir: workspace
162 action:
163 - postbuildscript:
164 mark-unstable-if-failed: true
165 builders:
166 - role: SLAVE
167 build-on:
168 - SUCCESS
169 build-steps:
170 - inject:
171 properties-file: ${WORKSPACE}/lava.param
172 - shell: |
173 #!/bin/bash -x
174
175 tf-a-job-configs/tf-a-builder/submit-test-job.sh
176 status=$?
177 tf-a-job-configs/tf-a-builder/lava-log-process.sh
178 if [ $status -ne 0 ]; then
179 echo "LAVA JOB RESULT: 1"
180 exit 1
181 else
182 echo "LAVA JOB RESULT: 0"
183 fi
184 - postbuildscript:
185 builders:
186 - role: SLAVE
187 build-on:
188 - SUCCESS
189 build-steps:
190 - shell: |
191 #!/bin/bash -e
192 echo "=== Starting expect-post tests ==="
193 ./tf-a-ci-scripts/script/expect-post-runner.sh
194 - conditional-publisher:
195 - condition-kind: file-exists
196 on-evaluation-failure: dont-run
197 condition-filename: lava-raw-debug.log
198 condition-basedir: workspace
199 action:
200 - archive:
201 artifacts: lava-raw-debug.log
202 latest-only: false
203 allow-empty: true
204 - archive:
205 artifacts: lava.log, lava-*.log, tux.id, feedback.log, config_file.json, covtrace-*.log, trace_report/**
206 latest-only: false
207 allow-empty: true
208 - groovy-postbuild:
209 script:
210 !include-raw:
211 - tf-a-builder/postbuild.groovy