blob: 70a218935a26a920f420cd57c8b8ec0830dcd177 [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:
11 - throttle:
12 option: project
13 enabled: true
14 max-total: 5
15 - build-discarder:
Arthur She1e9ab362025-02-25 14:30:42 -080016 days-to-keep: 15
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050017 parameters:
18 - string:
19 name: GERRIT_PROJECT
20 default: 'TF-A/trusted-firmware-a'
21 - string:
22 name: GERRIT_BRANCH
Leonardo Sandoval3da340d2021-02-09 14:53:30 -060023 default: 'refs/heads/integration'
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050024 - string:
25 name: GERRIT_REFSPEC
Leonardo Sandoval3da340d2021-02-09 14:53:30 -060026 default: '+refs/heads/integration:refs/remotes/origin/integration'
Milosz Wasilewski10438582020-12-03 11:36:21 +000027 - string:
28 name: GERRIT_PATCHSET_NUMBER
29 default: ''
30 - string:
31 name: GERRIT_CHANGE_NUMBER
32 default: ''
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050033 - string:
34 name: TF_GERRIT_REFSPEC
35 default: ${GERRIT_REFSPEC}
36 description: 'Parameter only used by the clone script'
37 - string:
Paul Sokolovsky3f523012023-03-01 16:19:39 +070038 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:
Paul Sokolovskyd840f242024-02-02 12:48:47 +070047 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:
Manish V Badarkhe08e108b2025-04-11 08:01:14 +010052 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:
Paul Sokolovskyd840f242024-02-02 12:48:47 +070057 name: CI_REFSPEC
58 default: '+refs/heads/master:refs/remotes/origin/master'
59 - string:
Saheer Babub495f032025-01-21 23:01:11 +000060 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:
Paul Sokolovskyd840f242024-02-02 12:48:47 +070065 name: MBEDTLS_URL
Lauren Wehrmeistercec409a2025-04-03 14:34:02 -050066 default: 'https://github.com/Mbed-TLS/mbedtls/archive/mbedtls-3.6.3.tar.gz'
Paul Sokolovskyd840f242024-02-02 12:48:47 +070067 - string:
Paul Sokolovskyccbe4af2023-10-04 22:53:03 +030068 name: LAVA_RETRIES
Paul Sokolovsky048d74a2023-10-04 23:40:00 +030069 default: 2
Paul Sokolovskyccbe4af2023-10-04 22:53:03 +030070 description: |
71 Number of tries submitting job to LAVA in case it fails (stopgap measure against nondeterministic failures)
72 - string:
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050073 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
82 passphrase-variable: ''
83 - workspace-cleanup
84 - timestamps
85 builders:
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050086 - shell:
87 !include-raw: scripts/clone.sh
Fathi Boudra9c8a9452020-12-08 22:16:57 +010088 - shell: |
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050089 #!/bin/bash
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050090 set -e
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050091 cat << EOF > env.param
Milosz Wasilewski10438582020-12-03 11:36:21 +000092 GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER}
93 GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER}
Milosz Wasilewski204a27e2020-12-10 10:29:45 +000094 GERRIT_HOST=${GERRIT_HOST}
Milosz Wasilewski10438582020-12-03 11:36:21 +000095 QA_SERVER_PROJECT=${JOB_NAME}
96 QA_SERVER_VERSION=${BUILD_NUMBER}
Leonardo Sandoval030e3362021-06-17 11:38:25 -050097 TF_GERRIT_PROJECT=${GERRIT_PROJECT}
98 TF_GERRIT_BRANCH=${GERRIT_BRANCH}
99 TF_GERRIT_REFSPEC=${GERRIT_REFSPEC}
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -0500100 SHARE_FOLDER=${SHARE_FOLDER}
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500101 EOF
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500102 - multijob:
103 condition: COMPLETED
104 name: Carry out level 1 tests
105 projects:
106 - kill-phase-on: NEVER
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600107 name: tf-a-gerrit-tforg-l1
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500108 current-parameters: true
109 property-file: env.param
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500110 - multijob:
111 condition: COMPLETED
112 name: Build Trusted Firmware
113 projects:
114 - kill-phase-on: NEVER
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600115 name: tf-a-ci-gateway
Paul Sokolovskyd255a1a2024-02-02 13:57:30 +0700116 current-parameters: true
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500117 predefined-parameters: |
118 TEST_GROUPS=tf-l2-build-fvp tf-l2-build-juno
119 TF_REFSPEC=$GERRIT_REFSPEC
120 property-file: env.param
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500121 - multijob:
122 condition: COMPLETED
Manish Pandey3c8b6702024-03-20 15:38:46 +0000123 name: Run platform boot tests
Manish Pandey253f88a2022-06-28 11:59:28 +0100124 projects:
125 - kill-phase-on: NEVER
126 name: tf-a-ci-gateway
127 predefined-parameters: |
Manish Pandey939c5002024-03-22 14:06:21 +0000128 TEST_GROUPS=tf-l2-boot-tests-arm-plats tf-l2-boot-tests-partner-boards
Manish Pandey253f88a2022-06-28 11:59:28 +0100129 TF_REFSPEC=$GERRIT_REFSPEC
130 property-file: env.param
131 - multijob:
132 condition: COMPLETED
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500133 name: TFTF tests
134 projects:
135 - kill-phase-on: NEVER
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600136 name: tf-a-ci-gateway
Paul Sokolovskyd255a1a2024-02-02 13:57:30 +0700137 current-parameters: true
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500138 predefined-parameters: |
Leonardo Sandoval0b9ee852021-02-12 18:27:37 -0600139 TEST_GROUPS=tftf-l1-fvp tftf-l1-juno tftf-l2-fvp-auxiliary tftf-l2-fvp-dynamiq tftf-l2-fwu tftf-l2-fvp
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500140 TF_REFSPEC=$GERRIT_REFSPEC
141 property-file: env.param
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500142 - multijob:
143 condition: COMPLETED
144 name: Boot up to the Linux shell prompt
145 projects:
146 - kill-phase-on: NEVER
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600147 name: tf-a-ci-gateway
Paul Sokolovskyd255a1a2024-02-02 13:57:30 +0700148 current-parameters: true
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500149 predefined-parameters: |
Manish Pandey3c8b6702024-03-20 15:38:46 +0000150 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
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500151 TF_REFSPEC=$GERRIT_REFSPEC
152 property-file: env.param
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500153 - conditional-step:
154 condition-command: |-
155 [ "$NOMINATION_FILE" ]
156 condition-kind: shell
157 on-evaluation-failure: dont-run
158 steps:
159 - multijob:
160 condition: COMPLETED
161 name: Nominated tests
162 projects:
163 - kill-phase-on: NEVER
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600164 name: tf-a-ci-gateway
Paul Sokolovskyd255a1a2024-02-02 13:57:30 +0700165 current-parameters: true
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500166 predefined-parameters: |
167 TEST_GROUPS=@$NOMINATION_FILE
168 TF_REFSPEC=$GERRIT_REFSPEC
169 property-file: env.param
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500170 triggers:
171 - gerrit:
172 server-name: review.trustedfirmware.org
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500173 trigger-on:
174 - comment-added-event:
175 approval-category: "Allow-CI"
176 approval-value: 2
Riku Voipiocfaf87d2020-12-03 10:23:16 +0200177 projects:
178 - project-compare-type: PLAIN
Saheer Babufd524222025-01-21 23:42:41 +0000179 project-pattern: next/TF-A/trusted-firmware-a
Riku Voipiocfaf87d2020-12-03 10:23:16 +0200180 branches:
181 - branch-compare-type: PLAIN
Saheer Babufd524222025-01-21 23:42:41 +0000182 branch-pattern: openci-migration
Riku Voipiocfaf87d2020-12-03 10:23:16 +0200183 override-votes: true
Fathi Boudra0dcfdbe2020-12-14 10:16:12 +0100184 gerrit-build-started-verified-value: 0
Riku Voipiocfaf87d2020-12-03 10:23:16 +0200185 gerrit-build-successful-verified-value: 1
Arthur She06125a42021-10-19 22:58:21 -0700186 gerrit-build-failed-verified-value: -1
Riku Voipiocfaf87d2020-12-03 10:23:16 +0200187 gerrit-build-unstable-verified-value: -1
Fathi Boudra0dcfdbe2020-12-14 10:16:12 +0100188 gerrit-build-notbuilt-verified-value: 0
189 gerrit-build-started-codereview-value: 0
190 gerrit-build-successful-codereview-value: 0
191 gerrit-build-failed-codereview-value: 0
Arthur She06125a42021-10-19 22:58:21 -0700192 gerrit-build-unstable-codereview-value: 0
Fathi Boudra0dcfdbe2020-12-14 10:16:12 +0100193 gerrit-build-notbuilt-codereview-value: 0
194 failure-message: 'OpenCI: build failed'
195 successful-message: 'OpenCI: build successful'
196 unstable-message: 'OpenCI: build unstable'
197 notbuilt-message: 'OpenCI: no builds executed'
Fathi Boudra0dcfdbe2020-12-14 10:16:12 +0100198 silent: false
199 silent-start: false