blob: 29c78014991f3ce8cc5b4b29a3b83515df936f40 [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:
Paul Sokolovskyfdd51de2024-02-05 20:00:56 +070016 days-to-keep: 90
17 num-to-keep: 15
Paul Sokolovskyfc009812023-05-18 18:26:26 +030018 parameters:
19 - string:
20 name: GERRIT_PROJECT
21 default: 'TF-A/trusted-firmware-a'
22 - string:
23 name: GERRIT_BRANCH
24 default: 'refs/heads/lts-v2.8'
25 - string:
26 name: GERRIT_REFSPEC
27 default: '+refs/heads/lts-v2.8:refs/remotes/origin/lts-v2.8'
28 - string:
29 name: GERRIT_PATCHSET_NUMBER
30 default: ''
31 - string:
32 name: GERRIT_CHANGE_NUMBER
33 default: ''
34 - string:
35 name: TF_GERRIT_REFSPEC
Paul Sokolovsky3c5dc932023-07-27 13:33:38 +020036 default: ${GERRIT_REFSPEC}
37 description: 'Parameter only used by the clone script'
Paul Sokolovskyfc009812023-05-18 18:26:26 +030038 - string:
39 name: TFTF_GERRIT_PROJECT
40 default: 'TF-A/tf-a-tests'
41 - string:
42 name: TFTF_GERRIT_BRANCH
43 default: 'refs/heads/lts-v2.8'
44 - string:
45 name: TFTF_GERRIT_REFSPEC
46 default: '+refs/heads/lts-v2.8:refs/remotes/origin/lts-v2.8'
47 - string:
48 name: SPM_REFSPEC
49 default: 'v2.8'
50 description: |
51 SPM(Hafnium) refspec to use. The master branch is used by default.
52 - string:
53 name: CI_REFSPEC
54 default: '+refs/heads/lts-v2.8:refs/remotes/origin/lts-v2.8'
55 - string:
Saheer Babub495f032025-01-21 23:01:11 +000056 name: JOBS_REFSPEC
57 default: 'refs/heads/master'
58 description: |
59 tf-a-job-configs refspec to use. The master branch is used by default.
60 - string:
Paul Sokolovsky526f4232023-06-05 12:16:46 +030061 name: MBEDTLS_URL
Govindraj Raja77cecb72025-05-16 14:22:29 -050062 default: 'https://github.com/Mbed-TLS/mbedtls/archive/mbedtls-3.6.3.tar.gz'
Paul Sokolovsky526f4232023-06-05 12:16:46 +030063 - string:
Paul Sokolovsky211aa2b2024-02-02 12:09:20 +070064 name: LAVA_RETRIES
65 default: 2
66 description: |
67 Number of tries submitting job to LAVA in case it fails (stopgap measure against nondeterministic failures)
68 - string:
Paul Sokolovskyfc009812023-05-18 18:26:26 +030069 name: SHARE_FOLDER
Paul Sokolovskyc668f812023-07-27 13:23:32 +030070 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
Paul Sokolovskyfc009812023-05-18 18:26:26 +030071 description: 'Folder containing shared repositories for downstream pipeline jobs'
72 wrappers:
73 - credentials-binding:
74 - ssh-user-private-key:
75 credential-id: TFA_CI_BOT_USER_SSH_KEY
76 key-file-variable: CI_BOT_KEY
77 username-variable: CI_BOT_USERNAME
78 passphrase-variable: ''
79 - workspace-cleanup
80 - timestamps
81 builders:
82 - shell:
83 !include-raw: scripts/clone.sh
84 - shell: |
85 #!/bin/bash
86 set -e
87 cat << EOF > env.param
88 GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER}
89 GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER}
90 GERRIT_HOST=${GERRIT_HOST}
91 QA_SERVER_PROJECT=${JOB_NAME}
92 QA_SERVER_VERSION=${BUILD_NUMBER}
93 TF_GERRIT_PROJECT=${GERRIT_PROJECT}
94 TF_GERRIT_BRANCH=${GERRIT_BRANCH}
95 TF_GERRIT_REFSPEC=${GERRIT_REFSPEC}
96 SHARE_FOLDER=${SHARE_FOLDER}
97 EOF
98 - multijob:
99 condition: COMPLETED
100 name: Carry out level 1 tests
101 projects:
102 - kill-phase-on: NEVER
103 name: tf-a-lts2.8-gerrit-tforg-l1
104 current-parameters: true
105 property-file: env.param
106 - multijob:
107 condition: COMPLETED
108 name: Build Trusted Firmware
109 projects:
110 - kill-phase-on: NEVER
Paul Sokolovskyfbb010b2023-06-05 11:32:17 +0300111 name: tf-a-lts2.8-ci-gateway
Paul Sokolovskyfc009812023-05-18 18:26:26 +0300112 current-parameters: true
113 predefined-parameters: |
114 TEST_GROUPS=tf-l2-build-fvp tf-l2-build-juno
115 TF_REFSPEC=$GERRIT_REFSPEC
116 property-file: env.param
117 - multijob:
118 condition: COMPLETED
Paul Sokolovskyfc009812023-05-18 18:26:26 +0300119 name: TFTF tests
120 projects:
121 - kill-phase-on: NEVER
Paul Sokolovskyfbb010b2023-06-05 11:32:17 +0300122 name: tf-a-lts2.8-ci-gateway
Paul Sokolovskyfc009812023-05-18 18:26:26 +0300123 current-parameters: true
124 predefined-parameters: |
125 TEST_GROUPS=tftf-l1-fvp tftf-l1-juno tftf-l2-fvp-auxiliary tftf-l2-fvp-dynamiq tftf-l2-fwu tftf-l2-fvp
126 TF_REFSPEC=$GERRIT_REFSPEC
127 property-file: env.param
128 - multijob:
129 condition: COMPLETED
130 name: Boot up to the Linux shell prompt
131 projects:
132 - kill-phase-on: NEVER
Paul Sokolovskyfbb010b2023-06-05 11:32:17 +0300133 name: tf-a-lts2.8-ci-gateway
Paul Sokolovsky411dc162024-02-02 13:34:42 +0700134 current-parameters: true
Paul Sokolovskyfc009812023-05-18 18:26:26 +0300135 predefined-parameters: |
Paul Sokolovskyfe908e92024-09-09 14:18:23 +0300136 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
Paul Sokolovskyfc009812023-05-18 18:26:26 +0300137 TF_REFSPEC=$GERRIT_REFSPEC
138 property-file: env.param
139 - conditional-step:
140 condition-command: |-
141 [ "$NOMINATION_FILE" ]
142 condition-kind: shell
143 on-evaluation-failure: dont-run
144 steps:
145 - multijob:
146 condition: COMPLETED
147 name: Nominated tests
148 projects:
149 - kill-phase-on: NEVER
Paul Sokolovskyfbb010b2023-06-05 11:32:17 +0300150 name: tf-a-lts2.8-ci-gateway
Paul Sokolovskyfc009812023-05-18 18:26:26 +0300151 current-parameters: true
152 predefined-parameters: |
153 TEST_GROUPS=@$NOMINATION_FILE
154 TF_REFSPEC=$GERRIT_REFSPEC
155 property-file: env.param
156 triggers:
157 - gerrit:
158 server-name: review.trustedfirmware.org
159 trigger-on:
160 - comment-added-event:
161 approval-category: "Allow-CI"
162 approval-value: 2
163 projects:
164 - project-compare-type: PLAIN
Saheer Babufd524222025-01-21 23:42:41 +0000165 project-pattern: next/TF-A/trusted-firmware-a
Paul Sokolovskyfc009812023-05-18 18:26:26 +0300166 branches:
167 - branch-compare-type: PLAIN
Saheer Babufd524222025-01-21 23:42:41 +0000168 branch-pattern: openci-migration-lts-v2.8
Paul Sokolovskyfc009812023-05-18 18:26:26 +0300169 override-votes: true
170 gerrit-build-started-verified-value: 0
171 gerrit-build-successful-verified-value: 1
172 gerrit-build-failed-verified-value: -1
173 gerrit-build-unstable-verified-value: -1
174 gerrit-build-notbuilt-verified-value: 0
175 gerrit-build-started-codereview-value: 0
176 gerrit-build-successful-codereview-value: 0
177 gerrit-build-failed-codereview-value: 0
178 gerrit-build-unstable-codereview-value: 0
179 gerrit-build-notbuilt-codereview-value: 0
180 failure-message: 'OpenCI: build failed'
181 successful-message: 'OpenCI: build successful'
182 unstable-message: 'OpenCI: build unstable'
183 notbuilt-message: 'OpenCI: no builds executed'
184 silent: false
185 silent-start: false