blob: 967b946662b35cd2d8c32b61bbe47ad15c59a815 [file] [log] [blame]
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -05001- job:
Leonardo Sandovalffaee982021-11-11 10:27:57 -06002 name: tf-a-gerrit-tforg-l2
Paul Sokolovskybd2d0642023-06-06 19:49:22 +03003 node: docker-amd64-tf-a-jammy
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -05004 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: 15
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050017 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/integration
24 - string:
25 name: GERRIT_REFSPEC
26 default: +refs/heads/integration:refs/remotes/origin/integration
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/master
43 - string:
44 name: TFTF_GERRIT_REFSPEC
45 default: +refs/heads/master:refs/remotes/origin/master
46 - string:
47 name: SPM_REFSPEC
48 default: +refs/heads/master:refs/remotes/origin/master
49 description: |
50 SPM(Hafnium) refspec to use. The master branch is used by default.
51 - string:
52 name: RMM_REFSPEC
53 default: +refs/heads/main:refs/remotes/origin/main
54 description: |
55 tf-rmm refspec to use. The main branch is used by default.
56 - string:
57 name: CI_REFSPEC
58 default: +refs/heads/master:refs/remotes/origin/master
59 - string:
60 name: JOBS_REFSPEC
61 default: refs/heads/master
62 description: |
63 tf-a-job-configs refspec to use. The master branch is used by default.
64 - string:
65 name: MBEDTLS_URL
66 default: https://github.com/Mbed-TLS/mbedtls/archive/mbedtls-3.6.3.tar.gz
67 - string:
68 name: LAVA_RETRIES
69 default: 2
70 description: |
71 Number of tries submitting job to LAVA in case it fails (stopgap measure against nondeterministic failures)
72 - string:
73 name: SHARE_FOLDER
74 default: /srv/shared/${JOB_NAME}/${BUILD_NUMBER}
75 description: Folder containing shared repositories for downstream pipeline jobs
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050076 wrappers:
77 - credentials-binding:
78 - ssh-user-private-key:
79 credential-id: TFA_CI_BOT_USER_SSH_KEY
80 key-file-variable: CI_BOT_KEY
81 username-variable: CI_BOT_USERNAME
Chris Kay675db4f2025-06-24 14:14:34 +010082 passphrase-variable: ""
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050083 - workspace-cleanup
84 - timestamps
85 builders:
Chris Kay675db4f2025-06-24 14:14:34 +010086 - shell: !include-raw: scripts/clone.sh
87 - shell: |
88 #!/bin/bash
89 set -e
90 cat << EOF > env.param
91 GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER}
92 GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER}
93 GERRIT_HOST=${GERRIT_HOST}
94 QA_SERVER_PROJECT=${JOB_NAME}
95 QA_SERVER_VERSION=${BUILD_NUMBER}
96 TF_GERRIT_PROJECT=${GERRIT_PROJECT}
97 TF_GERRIT_BRANCH=${GERRIT_BRANCH}
98 TF_GERRIT_REFSPEC=${GERRIT_REFSPEC}
99 SHARE_FOLDER=${SHARE_FOLDER}
100 EOF
101 - multijob:
102 condition: COMPLETED
103 name: Carry out level 1 tests
104 projects:
105 - kill-phase-on: NEVER
106 name: tf-a-gerrit-tforg-l1
107 current-parameters: true
108 property-file: env.param
109 - multijob:
110 condition: COMPLETED
111 name: Build Trusted Firmware
112 projects:
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500113 - kill-phase-on: NEVER
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600114 name: tf-a-ci-gateway
Paul Sokolovskyd255a1a2024-02-02 13:57:30 +0700115 current-parameters: true
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500116 predefined-parameters: |
Chris Kay675db4f2025-06-24 14:14:34 +0100117 TEST_GROUPS=tf-l2-build-fvp tf-l2-build-juno
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500118 TF_REFSPEC=$GERRIT_REFSPEC
119 property-file: env.param
Chris Kay675db4f2025-06-24 14:14:34 +0100120 - multijob:
121 condition: COMPLETED
122 name: Run platform boot tests
123 projects:
124 - kill-phase-on: NEVER
125 name: tf-a-ci-gateway
126 predefined-parameters: |
127 TEST_GROUPS=tf-l2-boot-tests-arm-plats tf-l2-boot-tests-partner-boards
128 TF_REFSPEC=$GERRIT_REFSPEC
129 property-file: env.param
130 - multijob:
131 condition: COMPLETED
132 name: TFTF tests
133 projects:
134 - kill-phase-on: NEVER
135 name: tf-a-ci-gateway
136 current-parameters: true
137 predefined-parameters: |
138 TEST_GROUPS=tftf-l1-fvp tftf-l1-juno tftf-l2-fvp-auxiliary tftf-l2-fvp-dynamiq tftf-l2-fwu tftf-l2-fvp
139 TF_REFSPEC=$GERRIT_REFSPEC
140 property-file: env.param
141 - multijob:
142 condition: COMPLETED
143 name: Boot up to the Linux shell prompt
144 projects:
145 - kill-phase-on: NEVER
146 name: tf-a-ci-gateway
147 current-parameters: true
148 predefined-parameters: |
149 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
150 TF_REFSPEC=$GERRIT_REFSPEC
151 property-file: env.param
152 - conditional-step:
153 condition-command: '[ "$NOMINATION_FILE" ]'
154 condition-kind: shell
155 on-evaluation-failure: dont-run
156 steps:
157 - multijob:
158 condition: COMPLETED
159 name: Nominated tests
160 projects:
161 - kill-phase-on: NEVER
162 name: tf-a-ci-gateway
163 current-parameters: true
164 predefined-parameters: |
165 TEST_GROUPS=@$NOMINATION_FILE
166 TF_REFSPEC=$GERRIT_REFSPEC
167 property-file: env.param
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500168 triggers:
Chris Kay675db4f2025-06-24 14:14:34 +0100169 - gerrit:
170 server-name: review.trustedfirmware.org
171 trigger-on:
172 - comment-added-event:
173 approval-category: Allow-CI
174 approval-value: 2
175 projects:
176 - project-compare-type: PLAIN
177 project-pattern: TF-A/trusted-firmware-a
178 branches:
179 - branch-compare-type: PLAIN
180 branch-pattern: integration
181 override-votes: true
182 gerrit-build-started-verified-value: 0
183 gerrit-build-successful-verified-value: 1
184 gerrit-build-failed-verified-value: -1
185 gerrit-build-unstable-verified-value: -1
186 gerrit-build-notbuilt-verified-value: 0
187 gerrit-build-started-codereview-value: 0
188 gerrit-build-successful-codereview-value: 0
189 gerrit-build-failed-codereview-value: 0
190 gerrit-build-unstable-codereview-value: 0
191 gerrit-build-notbuilt-codereview-value: 0
192 failure-message: 'OpenCI: build failed'
193 successful-message: 'OpenCI: build successful'
194 unstable-message: 'OpenCI: build unstable'
195 notbuilt-message: 'OpenCI: no builds executed'
196 silent: false
197 silent-start: false