blob: 3458b36133dd4d17ef98f06727616287daf8e428 [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
86 default: 1
87 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:
112 credential-id: ARMCLANG_UBL_CODE
113 variable: ARMCLANG_UBL_CODE
Paul Sokolovskya951a4c2023-06-01 21:34:09 +0300114 builders:
115 - shell: |
116 aarch64-none-elf-gcc -v || true
117 - shell:
118 !include-raw: scripts/clone.sh
119 - shell:
120 !include-raw: tf-a-builder/builders.sh
121 - inject:
122 properties-file: artefacts/env
123 - shell: |
124 ln -s "artefacts/${BIN_MODE:-release}" "artefacts-lava"
125 - conditional-step:
126 condition-kind: file-exists
127 on-evaluation-failure: dont-run
128 condition-filename: artefacts-lava/job.yaml
129 condition-basedir: workspace
130 steps:
131 - shell: |
132 #!/bin/bash
133 set -e
134 DEVICE_TYPE=fvp
135 CUSTOM_YAML_URL=${BUILD_URL}/artifact/artefacts-lava/job.yaml
136 DEVICE_TYPE=$(awk -F': ' '/device_type/ {print $2}' ${WORKSPACE}/artefacts-lava/job.yaml)
137 cat << EOF > ${WORKSPACE}/lava.param
138 DEVICE_TYPE=${DEVICE_TYPE}
139 LAVA_SERVER=tf.validation.linaro.org
140 EOF
141 publishers:
142 - archive:
143 artifacts: artefacts/**, artefacts-lava/**
144 latest-only: false
145 allow-empty: true
146 - conditional-publisher:
147 - condition-kind: file-exists
148 on-evaluation-failure: dont-run
149 condition-filename: artefacts-lava/job.yaml
150 condition-basedir: workspace
151 action:
152 - postbuildscript:
153 mark-unstable-if-failed: true
154 builders:
155 - role: SLAVE
156 build-on:
157 - SUCCESS
158 build-steps:
159 - inject:
160 properties-file: ${WORKSPACE}/lava.param
161 - shell: |
162 #!/bin/bash
163
164 submit_job='tf-a-job-configs/tf-a-builder/submit-test-job.sh'
165 # FIXME: Juno and FVP jobs may fail due to non-related users changes,
166 # so CI needs to resubmit the job, at most three times:
167 # Juno jobs may fail due to LAVA lab infrastructure issues (see
168 # https://projects.linaro.org/browse/LSS-2128)
169 # FVP jobs may hang at some particular TFTF test (see
170 # https://linaro.atlassian.net/browse/TFC-176)
171 passed=0
172 for i in $(seq 1 3); do
173 echo "# LAVA submission iteration #$i"
174 if $submit_job; then
175 passed=1
176 break
177 fi
178 done
179 tf-a-job-configs/tf-a-builder/lava-log-process.sh
180 if [ $passed -eq 0 ]; then
181 echo "LAVA JOB RESULT: 1"
182 exit 1
183 else
184 echo "LAVA JOB RESULT: 0"
185 fi
186 - postbuildscript:
187 builders:
188 - role: SLAVE
189 build-on:
190 - SUCCESS
191 build-steps:
192 - shell: |
193 #!/bin/bash -e
194 echo "=== Starting expect-post tests ==="
195 ./tf-a-ci-scripts/script/expect-post-runner.sh
196 - conditional-publisher:
197 - condition-kind: file-exists
198 on-evaluation-failure: dont-run
199 condition-filename: lava-raw-debug.log
200 condition-basedir: workspace
201 action:
202 - archive:
203 artifacts: lava-raw-debug.log
204 latest-only: false
205 allow-empty: true
206 - archive:
207 artifacts: lava.log, lava-*.log, feedback.log, config_file.json, covtrace-*.log, trace_report/**
208 latest-only: false
209 allow-empty: true
210 - groovy-postbuild:
211 script:
212 !include-raw:
213 - tf-a-builder/postbuild.groovy