blob: 2fcac025645f3e1974d2c13770931088692e26c4 [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:
57 name: MBEDTLS_URL
58 default: 'https://github.com/Mbed-TLS/mbedtls/archive/mbedtls-3.4.1.tar.gz'
59 - string:
60 name: LAVA_RETRIES
61 default: 2
62 description: |
63 Number of tries submitting job to LAVA in case it fails (stopgap measure against nondeterministic failures)
64 - string:
65 name: SHARE_FOLDER
66 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
67 description: 'Folder containing shared repositories for downstream pipeline jobs'
68 wrappers:
69 - credentials-binding:
70 - ssh-user-private-key:
71 credential-id: TFA_CI_BOT_USER_SSH_KEY
72 key-file-variable: CI_BOT_KEY
73 username-variable: CI_BOT_USERNAME
74 passphrase-variable: ''
75 - workspace-cleanup
76 - timestamps
77 builders:
78 - shell:
79 !include-raw: scripts/clone.sh
80 - shell: |
81 #!/bin/bash
82 set -e
83 cat << EOF > env.param
84 GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER}
85 GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER}
86 GERRIT_HOST=${GERRIT_HOST}
87 QA_SERVER_PROJECT=${JOB_NAME}
88 QA_SERVER_VERSION=${BUILD_NUMBER}
89 TF_GERRIT_PROJECT=${GERRIT_PROJECT}
90 TF_GERRIT_BRANCH=${GERRIT_BRANCH}
91 TF_GERRIT_REFSPEC=${GERRIT_REFSPEC}
92 SHARE_FOLDER=${SHARE_FOLDER}
93 EOF
94 - multijob:
95 condition: COMPLETED
96 name: Carry out level 1 tests
97 projects:
98 - kill-phase-on: NEVER
99 name: tf-a-lts2.10-gerrit-tforg-l1
100 current-parameters: true
101 property-file: env.param
102 - multijob:
103 condition: COMPLETED
104 name: Build Trusted Firmware
105 projects:
106 - kill-phase-on: NEVER
107 name: tf-a-lts2.10-ci-gateway
108 current-parameters: true
109 predefined-parameters: |
110 TEST_GROUPS=tf-l2-build-fvp tf-l2-build-juno
111 TF_REFSPEC=$GERRIT_REFSPEC
112 property-file: env.param
113 - multijob:
114 condition: COMPLETED
115 name: Run basic boot tests
116 projects:
117 - kill-phase-on: NEVER
118 name: tf-a-lts2.10-ci-gateway
119 predefined-parameters: |
Manish Pandey3c8b6702024-03-20 15:38:46 +0000120 TEST_GROUPS=tf-plat-tests tf-l1-boot-tests-plat
Paul Sokolovsky36e2da92024-02-02 14:37:31 +0700121 TF_REFSPEC=$GERRIT_REFSPEC
122 property-file: env.param
123 - multijob:
124 condition: COMPLETED
125 name: TFTF tests
126 projects:
127 - kill-phase-on: NEVER
128 name: tf-a-lts2.10-ci-gateway
129 current-parameters: true
130 predefined-parameters: |
131 TEST_GROUPS=tftf-l1-fvp tftf-l1-juno tftf-l2-fvp-auxiliary tftf-l2-fvp-dynamiq tftf-l2-fwu tftf-l2-fvp
132 TF_REFSPEC=$GERRIT_REFSPEC
133 property-file: env.param
134 - multijob:
135 condition: COMPLETED
136 name: Boot up to the Linux shell prompt
137 projects:
138 - kill-phase-on: NEVER
139 name: tf-a-lts2.10-ci-gateway
140 current-parameters: true
141 predefined-parameters: |
Manish Pandey3c8b6702024-03-20 15:38:46 +0000142 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 +0700143 TF_REFSPEC=$GERRIT_REFSPEC
144 property-file: env.param
145 - conditional-step:
146 condition-command: |-
147 [ "$NOMINATION_FILE" ]
148 condition-kind: shell
149 on-evaluation-failure: dont-run
150 steps:
151 - multijob:
152 condition: COMPLETED
153 name: Nominated tests
154 projects:
155 - kill-phase-on: NEVER
156 name: tf-a-lts2.10-ci-gateway
157 current-parameters: true
158 predefined-parameters: |
159 TEST_GROUPS=@$NOMINATION_FILE
160 TF_REFSPEC=$GERRIT_REFSPEC
161 property-file: env.param
162 triggers:
163 - gerrit:
164 server-name: review.trustedfirmware.org
165 trigger-on:
166 - comment-added-event:
167 approval-category: "Allow-CI"
168 approval-value: 2
169 projects:
170 - project-compare-type: PLAIN
171 project-pattern: TF-A/trusted-firmware-a
172 branches:
173 - branch-compare-type: PLAIN
174 branch-pattern: lts-v2.10
175 override-votes: true
176 gerrit-build-started-verified-value: 0
177 gerrit-build-successful-verified-value: 1
178 gerrit-build-failed-verified-value: -1
179 gerrit-build-unstable-verified-value: -1
180 gerrit-build-notbuilt-verified-value: 0
181 gerrit-build-started-codereview-value: 0
182 gerrit-build-successful-codereview-value: 0
183 gerrit-build-failed-codereview-value: 0
184 gerrit-build-unstable-codereview-value: 0
185 gerrit-build-notbuilt-codereview-value: 0
186 failure-message: 'OpenCI: build failed'
187 successful-message: 'OpenCI: build successful'
188 unstable-message: 'OpenCI: build unstable'
189 notbuilt-message: 'OpenCI: no builds executed'
190 silent: false
191 silent-start: false