blob: 96c73b8f163b60f0078c3707cfa2ee58e102ca6d [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:
Leonardo Sandovala4feb552021-03-02 12:10:21 -060016 days-to-keep: 14
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050017 - authorization:
Leonardo Sandovalebca8822021-01-25 18:20:04 -060018 !include: authorization.yaml.inc
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050019 parameters:
20 - string:
21 name: GERRIT_PROJECT
22 default: 'TF-A/trusted-firmware-a'
23 - string:
24 name: GERRIT_BRANCH
Leonardo Sandoval3da340d2021-02-09 14:53:30 -060025 default: 'refs/heads/integration'
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050026 - string:
27 name: GERRIT_REFSPEC
Leonardo Sandoval3da340d2021-02-09 14:53:30 -060028 default: '+refs/heads/integration:refs/remotes/origin/integration'
Milosz Wasilewski10438582020-12-03 11:36:21 +000029 - string:
30 name: GERRIT_PATCHSET_NUMBER
31 default: ''
32 - string:
33 name: GERRIT_CHANGE_NUMBER
34 default: ''
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050035 - string:
36 name: TF_GERRIT_REFSPEC
37 default: ${GERRIT_REFSPEC}
38 description: 'Parameter only used by the clone script'
39 - string:
Paul Sokolovsky3f523012023-03-01 16:19:39 +070040 name: TFTF_GERRIT_PROJECT
41 default: 'TF-A/tf-a-tests'
42 - string:
43 name: TFTF_GERRIT_BRANCH
44 default: 'refs/heads/master'
45 - string:
46 name: TFTF_GERRIT_REFSPEC
47 default: '+refs/heads/master:refs/remotes/origin/master'
48 - string:
Paul Sokolovskyd840f242024-02-02 12:48:47 +070049 name: SPM_REFSPEC
50 default: '+refs/heads/master:refs/remotes/origin/master'
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/master:refs/remotes/origin/master'
56 - string:
57 name: MBEDTLS_URL
Ryan Everettb4f5f8d2024-11-26 11:48:44 +000058 default: 'https://github.com/Mbed-TLS/mbedtls/archive/mbedtls-3.6.2.tar.gz'
Paul Sokolovskyd840f242024-02-02 12:48:47 +070059 - string:
Paul Sokolovskyccbe4af2023-10-04 22:53:03 +030060 name: LAVA_RETRIES
Paul Sokolovsky048d74a2023-10-04 23:40:00 +030061 default: 2
Paul Sokolovskyccbe4af2023-10-04 22:53:03 +030062 description: |
63 Number of tries submitting job to LAVA in case it fails (stopgap measure against nondeterministic failures)
64 - string:
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050065 name: SHARE_FOLDER
66 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
67 description: 'Folder containing shared repositories for downstream pipeline jobs'
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050068 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:
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050078 - shell:
79 !include-raw: scripts/clone.sh
Fathi Boudra9c8a9452020-12-08 22:16:57 +010080 - shell: |
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050081 #!/bin/bash
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050082 set -e
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050083 cat << EOF > env.param
Milosz Wasilewski10438582020-12-03 11:36:21 +000084 GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER}
85 GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER}
Milosz Wasilewski204a27e2020-12-10 10:29:45 +000086 GERRIT_HOST=${GERRIT_HOST}
Milosz Wasilewski10438582020-12-03 11:36:21 +000087 QA_SERVER_PROJECT=${JOB_NAME}
88 QA_SERVER_VERSION=${BUILD_NUMBER}
Leonardo Sandoval030e3362021-06-17 11:38:25 -050089 TF_GERRIT_PROJECT=${GERRIT_PROJECT}
90 TF_GERRIT_BRANCH=${GERRIT_BRANCH}
91 TF_GERRIT_REFSPEC=${GERRIT_REFSPEC}
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050092 SHARE_FOLDER=${SHARE_FOLDER}
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050093 EOF
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -050094 - multijob:
95 condition: COMPLETED
96 name: Carry out level 1 tests
97 projects:
98 - kill-phase-on: NEVER
Leonardo Sandovalffaee982021-11-11 10:27:57 -060099 name: tf-a-gerrit-tforg-l1
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500100 current-parameters: true
101 property-file: env.param
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500102 - multijob:
103 condition: COMPLETED
104 name: Build Trusted Firmware
105 projects:
106 - kill-phase-on: NEVER
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600107 name: tf-a-ci-gateway
Paul Sokolovskyd255a1a2024-02-02 13:57:30 +0700108 current-parameters: true
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500109 predefined-parameters: |
110 TEST_GROUPS=tf-l2-build-fvp tf-l2-build-juno
111 TF_REFSPEC=$GERRIT_REFSPEC
112 property-file: env.param
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500113 - multijob:
114 condition: COMPLETED
Manish Pandey3c8b6702024-03-20 15:38:46 +0000115 name: Run platform boot tests
Manish Pandey253f88a2022-06-28 11:59:28 +0100116 projects:
117 - kill-phase-on: NEVER
118 name: tf-a-ci-gateway
119 predefined-parameters: |
Manish Pandey939c5002024-03-22 14:06:21 +0000120 TEST_GROUPS=tf-l2-boot-tests-arm-plats tf-l2-boot-tests-partner-boards
Manish Pandey253f88a2022-06-28 11:59:28 +0100121 TF_REFSPEC=$GERRIT_REFSPEC
122 property-file: env.param
123 - multijob:
124 condition: COMPLETED
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500125 name: TFTF tests
126 projects:
127 - kill-phase-on: NEVER
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600128 name: tf-a-ci-gateway
Paul Sokolovskyd255a1a2024-02-02 13:57:30 +0700129 current-parameters: true
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500130 predefined-parameters: |
Leonardo Sandoval0b9ee852021-02-12 18:27:37 -0600131 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 -0500132 TF_REFSPEC=$GERRIT_REFSPEC
133 property-file: env.param
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500134 - multijob:
135 condition: COMPLETED
136 name: Boot up to the Linux shell prompt
137 projects:
138 - kill-phase-on: NEVER
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600139 name: tf-a-ci-gateway
Paul Sokolovskyd255a1a2024-02-02 13:57:30 +0700140 current-parameters: true
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500141 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
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500143 TF_REFSPEC=$GERRIT_REFSPEC
144 property-file: env.param
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500145 - 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
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600156 name: tf-a-ci-gateway
Paul Sokolovskyd255a1a2024-02-02 13:57:30 +0700157 current-parameters: true
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500158 predefined-parameters: |
159 TEST_GROUPS=@$NOMINATION_FILE
160 TF_REFSPEC=$GERRIT_REFSPEC
161 property-file: env.param
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500162 triggers:
163 - gerrit:
164 server-name: review.trustedfirmware.org
Leonardo Sandoval7bc39d72020-10-12 17:11:03 -0500165 trigger-on:
166 - comment-added-event:
167 approval-category: "Allow-CI"
168 approval-value: 2
Riku Voipiocfaf87d2020-12-03 10:23:16 +0200169 projects:
170 - project-compare-type: PLAIN
171 project-pattern: TF-A/trusted-firmware-a
172 branches:
173 - branch-compare-type: PLAIN
174 branch-pattern: integration
175 override-votes: true
Fathi Boudra0dcfdbe2020-12-14 10:16:12 +0100176 gerrit-build-started-verified-value: 0
Riku Voipiocfaf87d2020-12-03 10:23:16 +0200177 gerrit-build-successful-verified-value: 1
Arthur She06125a42021-10-19 22:58:21 -0700178 gerrit-build-failed-verified-value: -1
Riku Voipiocfaf87d2020-12-03 10:23:16 +0200179 gerrit-build-unstable-verified-value: -1
Fathi Boudra0dcfdbe2020-12-14 10:16:12 +0100180 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
Arthur She06125a42021-10-19 22:58:21 -0700184 gerrit-build-unstable-codereview-value: 0
Fathi Boudra0dcfdbe2020-12-14 10:16:12 +0100185 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'
Fathi Boudra0dcfdbe2020-12-14 10:16:12 +0100190 silent: false
191 silent-start: false