blob: b0addd63d47c0177ff6088bb5d924c372dbe7f8d [file] [log] [blame]
Arthur She41aa9422025-02-12 14:10:48 -08001- job:
2 name: tf-a-lts2.12-gerrit-tforg-l2
3 node: docker-amd64-tf-a-lts2.12-jammy
4 project-type: multijob
5 concurrent: true
6 disabled: false
7 description: |
8 Job that triggers for every TF-A patch approved with the Allow-CI+2
9 label on review.trustedfirmware.org.
10 properties:
Chris Kay675db4f2025-06-24 14:14:34 +010011 - throttle:
12 option: project
13 enabled: true
14 max-total: 5
15 - build-discarder:
16 days-to-keep: 14
Arthur She41aa9422025-02-12 14:10:48 -080017 parameters:
Chris Kay675db4f2025-06-24 14:14:34 +010018 - string:
19 name: GERRIT_PROJECT
20 default: TF-A/trusted-firmware-a
21 - string:
22 name: GERRIT_BRANCH
23 default: refs/heads/lts-v2.12
24 - string:
25 name: GERRIT_REFSPEC
26 default: +refs/heads/lts-v2.12:refs/remotes/origin/lts-v2.12
27 - string:
28 name: GERRIT_PATCHSET_NUMBER
29 default: ""
30 - string:
31 name: GERRIT_CHANGE_NUMBER
32 default: ""
33 - string:
34 name: TF_GERRIT_REFSPEC
35 default: ${GERRIT_REFSPEC}
36 description: Parameter only used by the clone script
37 - string:
38 name: TFTF_GERRIT_PROJECT
39 default: TF-A/tf-a-tests
40 - string:
41 name: TFTF_GERRIT_BRANCH
42 default: refs/heads/lts-v2.12
43 - string:
44 name: TFTF_GERRIT_REFSPEC
45 default: +refs/heads/lts-v2.12:refs/remotes/origin/lts-v2.12
46 - string:
47 name: SPM_REFSPEC
48 default: lts-v2.12
49 description: |
50 SPM(Hafnium) refspec to use. The lts-v2.12 branch is used by default.
51 - string:
52 name: CI_REFSPEC
53 default: +refs/heads/lts-v2.12:refs/remotes/origin/lts-v2.12
54 - string:
55 name: JOBS_REFSPEC
56 default: refs/heads/master
57 description: |
58 tf-a-job-configs refspec to use. The master branch is used by default.
59 - string:
60 name: MBEDTLS_URL
61 default: https://github.com/Mbed-TLS/mbedtls/archive/mbedtls-3.6.3.tar.gz
62 - string:
63 name: LAVA_RETRIES
64 default: 2
65 description: |
66 Number of tries submitting job to LAVA in case it fails (stopgap measure against nondeterministic failures)
67 - string:
68 name: SHARE_FOLDER
69 default: /srv/shared/${JOB_NAME}/${BUILD_NUMBER}
70 description: Folder containing shared repositories for downstream pipeline jobs
Arthur She41aa9422025-02-12 14:10:48 -080071 wrappers:
72 - credentials-binding:
73 - ssh-user-private-key:
74 credential-id: TFA_CI_BOT_USER_SSH_KEY
75 key-file-variable: CI_BOT_KEY
76 username-variable: CI_BOT_USERNAME
Chris Kay675db4f2025-06-24 14:14:34 +010077 passphrase-variable: ""
Arthur She41aa9422025-02-12 14:10:48 -080078 - workspace-cleanup
79 - timestamps
80 builders:
Chris Kay675db4f2025-06-24 14:14:34 +010081 - shell: !include-raw: scripts/clone.sh
82 - shell: |
83 #!/bin/bash
84 set -e
85 cat << EOF > env.param
86 GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER}
87 GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER}
88 GERRIT_HOST=${GERRIT_HOST}
89 QA_SERVER_PROJECT=${JOB_NAME}
90 QA_SERVER_VERSION=${BUILD_NUMBER}
91 TF_GERRIT_PROJECT=${GERRIT_PROJECT}
92 TF_GERRIT_BRANCH=${GERRIT_BRANCH}
93 TF_GERRIT_REFSPEC=${GERRIT_REFSPEC}
94 SHARE_FOLDER=${SHARE_FOLDER}
95 EOF
96 - multijob:
97 condition: COMPLETED
98 name: Carry out level 1 tests
99 projects:
100 - kill-phase-on: NEVER
101 name: tf-a-lts2.12-gerrit-tforg-l1
102 current-parameters: true
103 property-file: env.param
104 - multijob:
105 condition: COMPLETED
106 name: Build Trusted Firmware
107 projects:
Arthur She41aa9422025-02-12 14:10:48 -0800108 - kill-phase-on: NEVER
109 name: tf-a-lts2.12-ci-gateway
110 current-parameters: true
111 predefined-parameters: |
Chris Kay675db4f2025-06-24 14:14:34 +0100112 TEST_GROUPS=tf-l2-build-fvp tf-l2-build-juno
Arthur She41aa9422025-02-12 14:10:48 -0800113 TF_REFSPEC=$GERRIT_REFSPEC
114 property-file: env.param
Chris Kay675db4f2025-06-24 14:14:34 +0100115 - multijob:
116 condition: COMPLETED
117 name: Run platform boot tests
118 projects:
119 - kill-phase-on: NEVER
120 name: tf-a-lts2.12-ci-gateway
121 predefined-parameters: |
122 TEST_GROUPS=tf-l2-boot-tests-arm-plats tf-l2-boot-tests-partner-boards
123 TF_REFSPEC=$GERRIT_REFSPEC
124 property-file: env.param
125 - multijob:
126 condition: COMPLETED
127 name: TFTF tests
128 projects:
129 - kill-phase-on: NEVER
130 name: tf-a-lts2.12-ci-gateway
131 current-parameters: true
132 predefined-parameters: |
133 TEST_GROUPS=tftf-l1-fvp tftf-l1-juno tftf-l2-fvp-auxiliary tftf-l2-fvp-dynamiq tftf-l2-fwu tftf-l2-fvp
134 TF_REFSPEC=$GERRIT_REFSPEC
135 property-file: env.param
136 - multijob:
137 condition: COMPLETED
138 name: Boot up to the Linux shell prompt
139 projects:
140 - kill-phase-on: NEVER
141 name: tf-a-lts2.12-ci-gateway
142 current-parameters: true
143 predefined-parameters: |
144 TEST_GROUPS=tf-l2-boot-tests-aarch32 tf-l2-boot-tests-bl2_el3 tf-l2-boot-tests-cortex tf-l2-boot-tests-juno tf-l2-boot-tests-latest tf-l2-boot-tests-misc tf-l2-boot-tests-rootfs tf-l2-boot-tests-spm-mm spm-l2-boot-tests
145 TF_REFSPEC=$GERRIT_REFSPEC
146 property-file: env.param
147 - conditional-step:
148 condition-command: '[ "$NOMINATION_FILE" ]'
149 condition-kind: shell
150 on-evaluation-failure: dont-run
151 steps:
152 - multijob:
153 condition: COMPLETED
154 name: Nominated tests
155 projects:
156 - kill-phase-on: NEVER
157 name: tf-a-lts2.12-ci-gateway
158 current-parameters: true
159 predefined-parameters: |
160 TEST_GROUPS=@$NOMINATION_FILE
161 TF_REFSPEC=$GERRIT_REFSPEC
162 property-file: env.param
Arthur She41aa9422025-02-12 14:10:48 -0800163 triggers:
Chris Kay675db4f2025-06-24 14:14:34 +0100164 - gerrit:
165 server-name: review.trustedfirmware.org
166 trigger-on:
167 - comment-added-event:
168 approval-category: Allow-CI
169 approval-value: 2
170 projects:
171 - project-compare-type: PLAIN
172 project-pattern: TF-A/trusted-firmware-a
173 branches:
174 - branch-compare-type: PLAIN
175 branch-pattern: lts-v2.12
176 override-votes: true
177 gerrit-build-started-verified-value: 0
178 gerrit-build-successful-verified-value: 1
179 gerrit-build-failed-verified-value: -1
180 gerrit-build-unstable-verified-value: -1
181 gerrit-build-notbuilt-verified-value: 0
182 gerrit-build-started-codereview-value: 0
183 gerrit-build-successful-codereview-value: 0
184 gerrit-build-failed-codereview-value: 0
185 gerrit-build-unstable-codereview-value: 0
186 gerrit-build-notbuilt-codereview-value: 0
187 failure-message: 'OpenCI: build failed'
188 successful-message: 'OpenCI: build successful'
189 unstable-message: 'OpenCI: build unstable'
190 notbuilt-message: 'OpenCI: no builds executed'
191 silent: false
192 silent-start: false