blob: f2e394a9341f270b34009fc6a20bec5ec36ff41e [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 Sokolovskya9412f22024-01-31 23:04:53 +070085 name: LAVA_RETRIES
86 default: 2
87 description: |
88 Number of tries submitting job to LAVA in case it fails (stopgap measure against nondeterministic failures)
89 - string:
Paul Sokolovskyd56f19b2024-01-25 22:43:15 +070090 name: USE_TUXSUITE_FVP
Paul Sokolovskyc3f66952024-01-26 00:50:59 +070091 default: 1
Paul Sokolovskyd56f19b2024-01-25 22:43:15 +070092 description: |
93 Whether to submit FVP tests via TuxSuite (instead of LAVA)
94 - string:
Paul Sokolovskya951a4c2023-06-01 21:34:09 +030095 name: SHARE_FOLDER
96 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
97 description: 'Folder containing shared repositories for downstream pipeline jobs'
98 wrappers:
99 - timestamps
100 - timeout:
101 timeout: 120
102 fail: true
103 - credentials-binding:
104 - text:
105 credential-id: QA_REPORTS_TOKEN
106 variable: QA_REPORTS_TOKEN
107 - credentials-binding:
108 - text:
109 credential-id: LAVA_USER_TF
110 variable: LAVA_USER
111 - credentials-binding:
112 - text:
113 credential-id: LAVA_TOKEN_TF
114 variable: LAVA_TOKEN
Paul Sokolovskyf0425882023-11-28 10:29:37 +0300115 - credentials-binding:
116 - text:
Paul Sokolovskyc28ba602024-01-26 00:22:45 +0700117 credential-id: TUXSUITE_TOKEN
118 variable: TUXSUITE_TOKEN
119 - credentials-binding:
120 - text:
Paul Sokolovskyf0425882023-11-28 10:29:37 +0300121 credential-id: ARMCLANG_UBL_CODE
122 variable: ARMCLANG_UBL_CODE
Paul Sokolovskya951a4c2023-06-01 21:34:09 +0300123 builders:
124 - shell: |
125 aarch64-none-elf-gcc -v || true
126 - shell:
127 !include-raw: scripts/clone.sh
128 - shell:
129 !include-raw: tf-a-builder/builders.sh
130 - inject:
131 properties-file: artefacts/env
132 - shell: |
133 ln -s "artefacts/${BIN_MODE:-release}" "artefacts-lava"
Paul Sokolovskya9412f22024-01-31 23:04:53 +0700134 echo ${BIN_MODE:-release} >lava-binmode.txt
Paul Sokolovskya951a4c2023-06-01 21:34:09 +0300135 - conditional-step:
136 condition-kind: file-exists
137 on-evaluation-failure: dont-run
138 condition-filename: artefacts-lava/job.yaml
139 condition-basedir: workspace
140 steps:
141 - shell: |
142 #!/bin/bash
143 set -e
144 DEVICE_TYPE=fvp
145 CUSTOM_YAML_URL=${BUILD_URL}/artifact/artefacts-lava/job.yaml
146 DEVICE_TYPE=$(awk -F': ' '/device_type/ {print $2}' ${WORKSPACE}/artefacts-lava/job.yaml)
147 cat << EOF > ${WORKSPACE}/lava.param
148 DEVICE_TYPE=${DEVICE_TYPE}
149 LAVA_SERVER=tf.validation.linaro.org
150 EOF
151 publishers:
152 - archive:
Paul Sokolovskya9412f22024-01-31 23:04:53 +0700153 artifacts: artefacts/**, lava-binmode.txt
Paul Sokolovskya951a4c2023-06-01 21:34:09 +0300154 latest-only: false
155 allow-empty: true
156 - conditional-publisher:
157 - condition-kind: file-exists
158 on-evaluation-failure: dont-run
159 condition-filename: artefacts-lava/job.yaml
160 condition-basedir: workspace
161 action:
162 - postbuildscript:
163 mark-unstable-if-failed: true
164 builders:
165 - role: SLAVE
166 build-on:
167 - SUCCESS
168 build-steps:
169 - inject:
170 properties-file: ${WORKSPACE}/lava.param
171 - shell: |
Paul Sokolovskya9412f22024-01-31 23:04:53 +0700172 #!/bin/bash -x
Paul Sokolovskya951a4c2023-06-01 21:34:09 +0300173
Paul Sokolovskya9412f22024-01-31 23:04:53 +0700174 tf-a-job-configs/tf-a-builder/submit-test-job.sh
175 status=$?
Paul Sokolovskya951a4c2023-06-01 21:34:09 +0300176 tf-a-job-configs/tf-a-builder/lava-log-process.sh
Paul Sokolovskya9412f22024-01-31 23:04:53 +0700177 if [ $status -ne 0 ]; then
Paul Sokolovskya951a4c2023-06-01 21:34:09 +0300178 echo "LAVA JOB RESULT: 1"
179 exit 1
180 else
181 echo "LAVA JOB RESULT: 0"
182 fi
183 - postbuildscript:
184 builders:
185 - role: SLAVE
186 build-on:
187 - SUCCESS
188 build-steps:
189 - shell: |
190 #!/bin/bash -e
191 echo "=== Starting expect-post tests ==="
192 ./tf-a-ci-scripts/script/expect-post-runner.sh
193 - conditional-publisher:
194 - condition-kind: file-exists
195 on-evaluation-failure: dont-run
196 condition-filename: lava-raw-debug.log
197 condition-basedir: workspace
198 action:
199 - archive:
200 artifacts: lava-raw-debug.log
201 latest-only: false
202 allow-empty: true
203 - archive:
Paul Sokolovskya9412f22024-01-31 23:04:53 +0700204 artifacts: lava.log, lava-*.log, tux.id, feedback.log, config_file.json, covtrace-*.log, trace_report/**
Paul Sokolovskya951a4c2023-06-01 21:34:09 +0300205 latest-only: false
206 allow-empty: true
207 - groovy-postbuild:
208 script:
209 !include-raw:
210 - tf-a-builder/postbuild.groovy