blob: 4e2f1a23a6cce398e3c089b79eff5e656f4e4a31 [file] [log] [blame]
Paul Sokolovskyfc009812023-05-18 18:26:26 +03001- job:
2 name: tf-a-lts2.8-gerrit-tforg-l2
Paul Sokolovskyfbb010b2023-06-05 11:32:17 +03003 node: docker-amd64-tf-a-lts2.8-jammy
Paul Sokolovskyfc009812023-05-18 18:26:26 +03004 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:
Paul Sokolovskyfdd51de2024-02-05 20:00:56 +070016 days-to-keep: 90
17 num-to-keep: 15
Paul Sokolovskyfc009812023-05-18 18:26:26 +030018 - authorization:
19 !include: authorization.yaml.inc
20 parameters:
21 - string:
22 name: GERRIT_PROJECT
23 default: 'TF-A/trusted-firmware-a'
24 - string:
25 name: GERRIT_BRANCH
26 default: 'refs/heads/lts-v2.8'
27 - string:
28 name: GERRIT_REFSPEC
29 default: '+refs/heads/lts-v2.8:refs/remotes/origin/lts-v2.8'
30 - string:
31 name: GERRIT_PATCHSET_NUMBER
32 default: ''
33 - string:
34 name: GERRIT_CHANGE_NUMBER
35 default: ''
36 - string:
37 name: TF_GERRIT_REFSPEC
Paul Sokolovsky3c5dc932023-07-27 13:33:38 +020038 default: ${GERRIT_REFSPEC}
39 description: 'Parameter only used by the clone script'
Paul Sokolovskyfc009812023-05-18 18:26:26 +030040 - string:
41 name: TFTF_GERRIT_PROJECT
42 default: 'TF-A/tf-a-tests'
43 - string:
44 name: TFTF_GERRIT_BRANCH
45 default: 'refs/heads/lts-v2.8'
46 - string:
47 name: TFTF_GERRIT_REFSPEC
48 default: '+refs/heads/lts-v2.8:refs/remotes/origin/lts-v2.8'
49 - string:
50 name: SPM_REFSPEC
51 default: 'v2.8'
52 description: |
53 SPM(Hafnium) refspec to use. The master branch is used by default.
54 - string:
55 name: CI_REFSPEC
56 default: '+refs/heads/lts-v2.8:refs/remotes/origin/lts-v2.8'
57 - string:
Paul Sokolovsky526f4232023-06-05 12:16:46 +030058 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 Sokolovsky526f4232023-06-05 12:16:46 +030060 - string:
Paul Sokolovsky211aa2b2024-02-02 12:09:20 +070061 name: LAVA_RETRIES
62 default: 2
63 description: |
64 Number of tries submitting job to LAVA in case it fails (stopgap measure against nondeterministic failures)
65 - string:
Paul Sokolovskyfc009812023-05-18 18:26:26 +030066 name: SHARE_FOLDER
Paul Sokolovskyc668f812023-07-27 13:23:32 +030067 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
Paul Sokolovskyfc009812023-05-18 18:26:26 +030068 description: 'Folder containing shared repositories for downstream pipeline jobs'
69 wrappers:
70 - credentials-binding:
71 - ssh-user-private-key:
72 credential-id: TFA_CI_BOT_USER_SSH_KEY
73 key-file-variable: CI_BOT_KEY
74 username-variable: CI_BOT_USERNAME
75 passphrase-variable: ''
76 - workspace-cleanup
77 - timestamps
78 builders:
79 - shell:
80 !include-raw: scripts/clone.sh
81 - shell: |
82 #!/bin/bash
83 set -e
84 cat << EOF > env.param
85 GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER}
86 GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER}
87 GERRIT_HOST=${GERRIT_HOST}
88 QA_SERVER_PROJECT=${JOB_NAME}
89 QA_SERVER_VERSION=${BUILD_NUMBER}
90 TF_GERRIT_PROJECT=${GERRIT_PROJECT}
91 TF_GERRIT_BRANCH=${GERRIT_BRANCH}
92 TF_GERRIT_REFSPEC=${GERRIT_REFSPEC}
93 SHARE_FOLDER=${SHARE_FOLDER}
94 EOF
95 - multijob:
96 condition: COMPLETED
97 name: Carry out level 1 tests
98 projects:
99 - kill-phase-on: NEVER
100 name: tf-a-lts2.8-gerrit-tforg-l1
101 current-parameters: true
102 property-file: env.param
103 - multijob:
104 condition: COMPLETED
105 name: Build Trusted Firmware
106 projects:
107 - kill-phase-on: NEVER
Paul Sokolovskyfbb010b2023-06-05 11:32:17 +0300108 name: tf-a-lts2.8-ci-gateway
Paul Sokolovskyfc009812023-05-18 18:26:26 +0300109 current-parameters: true
110 predefined-parameters: |
111 TEST_GROUPS=tf-l2-build-fvp tf-l2-build-juno
112 TF_REFSPEC=$GERRIT_REFSPEC
113 property-file: env.param
114 - multijob:
115 condition: COMPLETED
116 name: Run basic boot tests
117 projects:
118 - kill-phase-on: NEVER
Paul Sokolovskyfbb010b2023-06-05 11:32:17 +0300119 name: tf-a-lts2.8-ci-gateway
Paul Sokolovskyfc009812023-05-18 18:26:26 +0300120 current-parameters: true
121 predefined-parameters: |
122 TEST_GROUPS=tf-l1-boot-tests-aarch32 tf-l1-boot-tests-bl2_el3 tf-l1-boot-tests-cortex tf-l1-boot-tests-foundation tf-l1-boot-tests-gicv2 tf-l1-boot-tests-misc
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
Paul Sokolovskyfbb010b2023-06-05 11:32:17 +0300130 name: tf-a-lts2.8-ci-gateway
Paul Sokolovskyfc009812023-05-18 18:26:26 +0300131 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
Paul Sokolovskyfbb010b2023-06-05 11:32:17 +0300141 name: tf-a-lts2.8-ci-gateway
Paul Sokolovsky411dc162024-02-02 13:34:42 +0700142 current-parameters: true
Paul Sokolovskyfc009812023-05-18 18:26:26 +0300143 predefined-parameters: |
144 TEST_GROUPS=tf-l1-boot-tests-juno tf-l2-boot-tests-aarch32 tf-l2-boot-tests-bl2_el3 tf-l2-boot-tests-cortex tf-l2-boot-tests-foundation 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: |-
149 [ "$NOMINATION_FILE" ]
150 condition-kind: shell
151 on-evaluation-failure: dont-run
152 steps:
153 - multijob:
154 condition: COMPLETED
155 name: Nominated tests
156 projects:
157 - kill-phase-on: NEVER
Paul Sokolovskyfbb010b2023-06-05 11:32:17 +0300158 name: tf-a-lts2.8-ci-gateway
Paul Sokolovskyfc009812023-05-18 18:26:26 +0300159 current-parameters: true
160 predefined-parameters: |
161 TEST_GROUPS=@$NOMINATION_FILE
162 TF_REFSPEC=$GERRIT_REFSPEC
163 property-file: env.param
164 triggers:
165 - gerrit:
166 server-name: review.trustedfirmware.org
167 trigger-on:
168 - comment-added-event:
169 approval-category: "Allow-CI"
170 approval-value: 2
171 projects:
172 - project-compare-type: PLAIN
173 project-pattern: TF-A/trusted-firmware-a
174 branches:
175 - branch-compare-type: PLAIN
176 branch-pattern: lts-v2.8
177 override-votes: true
178 gerrit-build-started-verified-value: 0
179 gerrit-build-successful-verified-value: 1
180 gerrit-build-failed-verified-value: -1
181 gerrit-build-unstable-verified-value: -1
182 gerrit-build-notbuilt-verified-value: 0
183 gerrit-build-started-codereview-value: 0
184 gerrit-build-successful-codereview-value: 0
185 gerrit-build-failed-codereview-value: 0
186 gerrit-build-unstable-codereview-value: 0
187 gerrit-build-notbuilt-codereview-value: 0
188 failure-message: 'OpenCI: build failed'
189 successful-message: 'OpenCI: build successful'
190 unstable-message: 'OpenCI: build unstable'
191 notbuilt-message: 'OpenCI: no builds executed'
192 silent: false
193 silent-start: false