blob: ad82acded675f169e31731b99d43e41f622b4f84 [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:
Paul Sokolovsky33f625f2024-01-31 23:07:17 +070046 name: CI_REFSPEC
47 default: '+refs/heads/master:refs/remotes/origin/master'
48 - string:
Paul Sokolovskya951a4c2023-06-01 21:34:09 +030049 name: DOCKER_REGISTRY
50 default: '987685672616.dkr.ecr.us-east-1.amazonaws.com'
51 - string:
52 name: ARMLMD_LICENSE_FILE
53 default: '27000@flexnet.trustedfirmware.org'
54 - string:
55 name: JUNO_ROOTFS_URL
56 default: 'http://releases.linaro.org/openembedded/aarch64/17.01/linaro-image-minimal-genericarmv8-20170127-888.rootfs.tar.gz'
57 - string:
58 name: MBEDTLS_URL
Govindraj Raja022c4db2023-10-10 16:42:04 -050059 default: 'https://github.com/Mbed-TLS/mbedtls/archive/mbedtls-2.28.5.tar.gz'
Paul Sokolovskya951a4c2023-06-01 21:34:09 +030060 - string:
61 name: GERRIT_PATCHSET_NUMBER
62 default: ''
63 - string:
64 name: GERRIT_CHANGE_NUMBER
65 default: ''
66 - string:
67 name: GERRIT_HOST
68 default: 'review.trustedfirmware.org'
69 - string:
70 name: QA_SERVER_TEAM
71 default: 'tf'
72 - string:
73 name: QA_SERVER_PROJECT
74 default: 'tf-a'
75 - string:
76 name: QA_SERVER_VERSION
77 default: ${BUILD_NUMBER}
78 - string:
79 name: QA_SERVER
80 default: 'https://qa-reports.linaro.org'
81 - string:
82 name: QA_TOOLS_REPO
83 default: 'https://git.gitlab.arm.com/tooling/qa-tools.git'
84 - string:
85 name: QA_TOOLS_BRANCH
86 default: 'master'
87 - string:
Paul Sokolovskya9412f22024-01-31 23:04:53 +070088 name: LAVA_RETRIES
89 default: 2
90 description: |
91 Number of tries submitting job to LAVA in case it fails (stopgap measure against nondeterministic failures)
92 - string:
Paul Sokolovskyd56f19b2024-01-25 22:43:15 +070093 name: USE_TUXSUITE_FVP
Paul Sokolovskyc3f66952024-01-26 00:50:59 +070094 default: 1
Paul Sokolovskyd56f19b2024-01-25 22:43:15 +070095 description: |
96 Whether to submit FVP tests via TuxSuite (instead of LAVA)
97 - string:
Paul Sokolovskya951a4c2023-06-01 21:34:09 +030098 name: SHARE_FOLDER
99 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
100 description: 'Folder containing shared repositories for downstream pipeline jobs'
101 wrappers:
102 - timestamps
103 - timeout:
104 timeout: 120
105 fail: true
106 - credentials-binding:
107 - text:
108 credential-id: QA_REPORTS_TOKEN
109 variable: QA_REPORTS_TOKEN
110 - credentials-binding:
111 - text:
112 credential-id: LAVA_USER_TF
113 variable: LAVA_USER
114 - credentials-binding:
115 - text:
116 credential-id: LAVA_TOKEN_TF
117 variable: LAVA_TOKEN
Paul Sokolovskyf0425882023-11-28 10:29:37 +0300118 - credentials-binding:
119 - text:
Paul Sokolovskyc28ba602024-01-26 00:22:45 +0700120 credential-id: TUXSUITE_TOKEN
121 variable: TUXSUITE_TOKEN
122 - credentials-binding:
123 - text:
Paul Sokolovskyf0425882023-11-28 10:29:37 +0300124 credential-id: ARMCLANG_UBL_CODE
125 variable: ARMCLANG_UBL_CODE
Paul Sokolovskya951a4c2023-06-01 21:34:09 +0300126 builders:
127 - shell: |
128 aarch64-none-elf-gcc -v || true
129 - shell:
130 !include-raw: scripts/clone.sh
131 - shell:
132 !include-raw: tf-a-builder/builders.sh
133 - inject:
134 properties-file: artefacts/env
135 - shell: |
136 ln -s "artefacts/${BIN_MODE:-release}" "artefacts-lava"
Paul Sokolovskya9412f22024-01-31 23:04:53 +0700137 echo ${BIN_MODE:-release} >lava-binmode.txt
Paul Sokolovskya951a4c2023-06-01 21:34:09 +0300138 - conditional-step:
139 condition-kind: file-exists
140 on-evaluation-failure: dont-run
141 condition-filename: artefacts-lava/job.yaml
142 condition-basedir: workspace
143 steps:
144 - shell: |
145 #!/bin/bash
146 set -e
147 DEVICE_TYPE=fvp
148 CUSTOM_YAML_URL=${BUILD_URL}/artifact/artefacts-lava/job.yaml
149 DEVICE_TYPE=$(awk -F': ' '/device_type/ {print $2}' ${WORKSPACE}/artefacts-lava/job.yaml)
150 cat << EOF > ${WORKSPACE}/lava.param
151 DEVICE_TYPE=${DEVICE_TYPE}
152 LAVA_SERVER=tf.validation.linaro.org
153 EOF
154 publishers:
155 - archive:
Paul Sokolovskya9412f22024-01-31 23:04:53 +0700156 artifacts: artefacts/**, lava-binmode.txt
Paul Sokolovskya951a4c2023-06-01 21:34:09 +0300157 latest-only: false
158 allow-empty: true
159 - conditional-publisher:
160 - condition-kind: file-exists
161 on-evaluation-failure: dont-run
162 condition-filename: artefacts-lava/job.yaml
163 condition-basedir: workspace
164 action:
165 - postbuildscript:
166 mark-unstable-if-failed: true
167 builders:
168 - role: SLAVE
169 build-on:
170 - SUCCESS
171 build-steps:
172 - inject:
173 properties-file: ${WORKSPACE}/lava.param
174 - shell: |
Paul Sokolovskya9412f22024-01-31 23:04:53 +0700175 #!/bin/bash -x
Paul Sokolovskya951a4c2023-06-01 21:34:09 +0300176
Paul Sokolovskya9412f22024-01-31 23:04:53 +0700177 tf-a-job-configs/tf-a-builder/submit-test-job.sh
178 status=$?
Paul Sokolovskya951a4c2023-06-01 21:34:09 +0300179 tf-a-job-configs/tf-a-builder/lava-log-process.sh
Paul Sokolovskya9412f22024-01-31 23:04:53 +0700180 if [ $status -ne 0 ]; then
Paul Sokolovskya951a4c2023-06-01 21:34:09 +0300181 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:
Paul Sokolovskya9412f22024-01-31 23:04:53 +0700207 artifacts: lava.log, lava-*.log, tux.id, feedback.log, config_file.json, covtrace-*.log, trace_report/**
Paul Sokolovskya951a4c2023-06-01 21:34:09 +0300208 latest-only: false
209 allow-empty: true
210 - groovy-postbuild:
211 script:
212 !include-raw:
213 - tf-a-builder/postbuild.groovy