blob: d5bc1bd8e9872ce30c377ef2c582e6d494b25e85 [file] [log] [blame]
Paul Sokolovskyfc009812023-05-18 18:26:26 +03001- job:
2 name: tf-a-lts2.8-gerrit-tforg-l2
3 node: docker-amd64-tf-a-bionic
4 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:
57 name: SHARE_FOLDER
58 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
59 description: 'Folder containing shared repositories for downstream pipeline jobs'
60 wrappers:
61 - credentials-binding:
62 - ssh-user-private-key:
63 credential-id: TFA_CI_BOT_USER_SSH_KEY
64 key-file-variable: CI_BOT_KEY
65 username-variable: CI_BOT_USERNAME
66 passphrase-variable: ''
67 - workspace-cleanup
68 - timestamps
69 builders:
70 - shell:
71 !include-raw: scripts/clone.sh
72 - shell: |
73 #!/bin/bash
74 set -e
75 cat << EOF > env.param
76 GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER}
77 GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER}
78 GERRIT_HOST=${GERRIT_HOST}
79 QA_SERVER_PROJECT=${JOB_NAME}
80 QA_SERVER_VERSION=${BUILD_NUMBER}
81 TF_GERRIT_PROJECT=${GERRIT_PROJECT}
82 TF_GERRIT_BRANCH=${GERRIT_BRANCH}
83 TF_GERRIT_REFSPEC=${GERRIT_REFSPEC}
84 SHARE_FOLDER=${SHARE_FOLDER}
85 EOF
86 - multijob:
87 condition: COMPLETED
88 name: Carry out level 1 tests
89 projects:
90 - kill-phase-on: NEVER
91 name: tf-a-lts2.8-gerrit-tforg-l1
92 current-parameters: true
93 property-file: env.param
94 - multijob:
95 condition: COMPLETED
96 name: Build Trusted Firmware
97 projects:
98 - kill-phase-on: NEVER
99 name: tf-a-ci-gateway
100 current-parameters: true
101 predefined-parameters: |
102 TEST_GROUPS=tf-l2-build-fvp tf-l2-build-juno
103 TF_REFSPEC=$GERRIT_REFSPEC
104 property-file: env.param
105 - multijob:
106 condition: COMPLETED
107 name: Run basic boot tests
108 projects:
109 - kill-phase-on: NEVER
110 name: tf-a-ci-gateway
111 current-parameters: true
112 predefined-parameters: |
113 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
114 TF_REFSPEC=$GERRIT_REFSPEC
115 property-file: env.param
116 - multijob:
117 condition: COMPLETED
118 name: TFTF tests
119 projects:
120 - kill-phase-on: NEVER
121 name: tf-a-ci-gateway
122 current-parameters: true
123 predefined-parameters: |
124 TEST_GROUPS=tftf-l1-fvp tftf-l1-juno tftf-l2-fvp-auxiliary tftf-l2-fvp-dynamiq tftf-l2-fwu tftf-l2-fvp
125 TF_REFSPEC=$GERRIT_REFSPEC
126 property-file: env.param
127 - multijob:
128 condition: COMPLETED
129 name: Boot up to the Linux shell prompt
130 projects:
131 - kill-phase-on: NEVER
132 current-parameters: true
133 name: tf-a-ci-gateway
134 predefined-parameters: |
135 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
136 TF_REFSPEC=$GERRIT_REFSPEC
137 property-file: env.param
138 - conditional-step:
139 condition-command: |-
140 [ "$NOMINATION_FILE" ]
141 condition-kind: shell
142 on-evaluation-failure: dont-run
143 steps:
144 - multijob:
145 condition: COMPLETED
146 name: Nominated tests
147 projects:
148 - kill-phase-on: NEVER
149 name: tf-a-ci-gateway
150 current-parameters: true
151 predefined-parameters: |
152 TEST_GROUPS=@$NOMINATION_FILE
153 TF_REFSPEC=$GERRIT_REFSPEC
154 property-file: env.param
155 triggers:
156 - gerrit:
157 server-name: review.trustedfirmware.org
158 trigger-on:
159 - comment-added-event:
160 approval-category: "Allow-CI"
161 approval-value: 2
162 projects:
163 - project-compare-type: PLAIN
164 project-pattern: TF-A/trusted-firmware-a
165 branches:
166 - branch-compare-type: PLAIN
167 branch-pattern: lts-v2.8
168 override-votes: true
169 gerrit-build-started-verified-value: 0
170 gerrit-build-successful-verified-value: 1
171 gerrit-build-failed-verified-value: -1
172 gerrit-build-unstable-verified-value: -1
173 gerrit-build-notbuilt-verified-value: 0
174 gerrit-build-started-codereview-value: 0
175 gerrit-build-successful-codereview-value: 0
176 gerrit-build-failed-codereview-value: 0
177 gerrit-build-unstable-codereview-value: 0
178 gerrit-build-notbuilt-codereview-value: 0
179 failure-message: 'OpenCI: build failed'
180 successful-message: 'OpenCI: build successful'
181 unstable-message: 'OpenCI: build unstable'
182 notbuilt-message: 'OpenCI: no builds executed'
183 silent: false
184 silent-start: false