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