blob: 29abb753d9e58b894c5468ebe658911e21cfe05d [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:
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.8'
26 - string:
27 name: GERRIT_REFSPEC
28 default: '+refs/heads/lts-v2.8:refs/remotes/origin/lts-v2.8'
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.8'
45 - string:
46 name: TFTF_GERRIT_REFSPEC
47 default: '+refs/heads/lts-v2.8:refs/remotes/origin/lts-v2.8'
48 - string:
49 name: SPM_REFSPEC
50 default: 'v2.8'
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.8:refs/remotes/origin/lts-v2.8'
56 - string:
Paul Sokolovsky526f4232023-06-05 12:16:46 +030057 name: MBEDTLS_URL
58 default: 'https://github.com/Mbed-TLS/mbedtls/archive/mbedtls-2.28.1.tar.gz'
59 - string:
Paul Sokolovskyfc009812023-05-18 18:26:26 +030060 name: SHARE_FOLDER
Paul Sokolovskyc668f812023-07-27 13:23:32 +030061 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
Paul Sokolovskyfc009812023-05-18 18:26:26 +030062 description: 'Folder containing shared repositories for downstream pipeline jobs'
63 wrappers:
64 - credentials-binding:
65 - ssh-user-private-key:
66 credential-id: TFA_CI_BOT_USER_SSH_KEY
67 key-file-variable: CI_BOT_KEY
68 username-variable: CI_BOT_USERNAME
69 passphrase-variable: ''
70 - workspace-cleanup
71 - timestamps
72 builders:
73 - shell:
74 !include-raw: scripts/clone.sh
75 - shell: |
76 #!/bin/bash
77 set -e
78 cat << EOF > env.param
79 GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER}
80 GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER}
81 GERRIT_HOST=${GERRIT_HOST}
82 QA_SERVER_PROJECT=${JOB_NAME}
83 QA_SERVER_VERSION=${BUILD_NUMBER}
84 TF_GERRIT_PROJECT=${GERRIT_PROJECT}
85 TF_GERRIT_BRANCH=${GERRIT_BRANCH}
86 TF_GERRIT_REFSPEC=${GERRIT_REFSPEC}
87 SHARE_FOLDER=${SHARE_FOLDER}
88 EOF
89 - multijob:
90 condition: COMPLETED
91 name: Carry out level 1 tests
92 projects:
93 - kill-phase-on: NEVER
94 name: tf-a-lts2.8-gerrit-tforg-l1
95 current-parameters: true
96 property-file: env.param
97 - multijob:
98 condition: COMPLETED
99 name: Build Trusted Firmware
100 projects:
101 - kill-phase-on: NEVER
Paul Sokolovskyfbb010b2023-06-05 11:32:17 +0300102 name: tf-a-lts2.8-ci-gateway
Paul Sokolovskyfc009812023-05-18 18:26:26 +0300103 current-parameters: true
104 predefined-parameters: |
105 TEST_GROUPS=tf-l2-build-fvp tf-l2-build-juno
106 TF_REFSPEC=$GERRIT_REFSPEC
107 property-file: env.param
108 - multijob:
109 condition: COMPLETED
110 name: Run basic boot tests
111 projects:
112 - kill-phase-on: NEVER
Paul Sokolovskyfbb010b2023-06-05 11:32:17 +0300113 name: tf-a-lts2.8-ci-gateway
Paul Sokolovskyfc009812023-05-18 18:26:26 +0300114 current-parameters: true
115 predefined-parameters: |
116 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
117 TF_REFSPEC=$GERRIT_REFSPEC
118 property-file: env.param
119 - multijob:
120 condition: COMPLETED
121 name: TFTF tests
122 projects:
123 - kill-phase-on: NEVER
Paul Sokolovskyfbb010b2023-06-05 11:32:17 +0300124 name: tf-a-lts2.8-ci-gateway
Paul Sokolovskyfc009812023-05-18 18:26:26 +0300125 current-parameters: true
126 predefined-parameters: |
127 TEST_GROUPS=tftf-l1-fvp tftf-l1-juno tftf-l2-fvp-auxiliary tftf-l2-fvp-dynamiq tftf-l2-fwu tftf-l2-fvp
128 TF_REFSPEC=$GERRIT_REFSPEC
129 property-file: env.param
130 - multijob:
131 condition: COMPLETED
132 name: Boot up to the Linux shell prompt
133 projects:
134 - kill-phase-on: NEVER
135 current-parameters: true
Paul Sokolovskyfbb010b2023-06-05 11:32:17 +0300136 name: tf-a-lts2.8-ci-gateway
Paul Sokolovskyfc009812023-05-18 18:26:26 +0300137 predefined-parameters: |
138 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
139 TF_REFSPEC=$GERRIT_REFSPEC
140 property-file: env.param
141 - conditional-step:
142 condition-command: |-
143 [ "$NOMINATION_FILE" ]
144 condition-kind: shell
145 on-evaluation-failure: dont-run
146 steps:
147 - multijob:
148 condition: COMPLETED
149 name: Nominated tests
150 projects:
151 - kill-phase-on: NEVER
Paul Sokolovskyfbb010b2023-06-05 11:32:17 +0300152 name: tf-a-lts2.8-ci-gateway
Paul Sokolovskyfc009812023-05-18 18:26:26 +0300153 current-parameters: true
154 predefined-parameters: |
155 TEST_GROUPS=@$NOMINATION_FILE
156 TF_REFSPEC=$GERRIT_REFSPEC
157 property-file: env.param
158 triggers:
159 - gerrit:
160 server-name: review.trustedfirmware.org
161 trigger-on:
162 - comment-added-event:
163 approval-category: "Allow-CI"
164 approval-value: 2
165 projects:
166 - project-compare-type: PLAIN
167 project-pattern: TF-A/trusted-firmware-a
168 branches:
169 - branch-compare-type: PLAIN
170 branch-pattern: lts-v2.8
171 override-votes: true
172 gerrit-build-started-verified-value: 0
173 gerrit-build-successful-verified-value: 1
174 gerrit-build-failed-verified-value: -1
175 gerrit-build-unstable-verified-value: -1
176 gerrit-build-notbuilt-verified-value: 0
177 gerrit-build-started-codereview-value: 0
178 gerrit-build-successful-codereview-value: 0
179 gerrit-build-failed-codereview-value: 0
180 gerrit-build-unstable-codereview-value: 0
181 gerrit-build-notbuilt-codereview-value: 0
182 failure-message: 'OpenCI: build failed'
183 successful-message: 'OpenCI: build successful'
184 unstable-message: 'OpenCI: build unstable'
185 notbuilt-message: 'OpenCI: no builds executed'
186 silent: false
187 silent-start: false