blob: 36912c9659cb826d72812728d79de1521e43e104 [file] [log] [blame]
Paul Sokolovskyd9a138c2024-02-03 00:32:25 +07001- job:
2 name: tf-a-lts2.10-tftf-gerrit-tforg-l2
Paul Sokolovsky6067c522024-02-07 13:48:17 +07003 node: docker-amd64-tf-a-lts2.10-jammy
Paul Sokolovskyd9a138c2024-02-03 00:32:25 +07004 project-type: multijob
5 concurrent: true
6 disabled: false
7 description: |
8 Job that triggers for every TF-A-Tests 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/tf-a-tests'
23 - string:
24 name: GERRIT_BRANCH
25 default: 'refs/heads/lts-v2.10'
26 - string:
27 name: GERRIT_REFSPEC
28 default: '+refs/heads/lts-v2.10:refs/remotes/origin/lts-v2.10'
29 - string:
30 name: GERRIT_PATCHSET_NUMBER
31 default: ''
32 - string:
33 name: GERRIT_CHANGE_NUMBER
34 default: ''
35 - string:
36 name: TF_GERRIT_BRANCH
37 default: 'refs/heads/lts-v2.10'
38 description: "Git project branch for Trusted Firmware-A."
39 - string:
40 name: TF_GERRIT_REFSPEC
41 default: '+refs/heads/lts-v2.10:refs/remotes/origin/lts-v2.10'
42 description: "Git refspec for Trusted Firmware-A."
43 - string:
44 name: TFTF_GERRIT_REFSPEC
45 default: ${GERRIT_REFSPEC}
46 description: 'Parameter only used by the clone script'
47 - string:
48 name: SPM_REFSPEC
49 default: 'v2.10'
50 description: |
51 SPM (Hafnium) refspec to use.
52 - string:
53 name: CI_REFSPEC
54 default: '+refs/heads/lts-v2.10:refs/remotes/origin/lts-v2.10'
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 Sokolovskyd9a138c2024-02-03 00:32:25 +070061 name: MBEDTLS_URL
Yann Gautier75189582025-01-10 17:37:36 +010062 default: 'https://github.com/Mbed-TLS/mbedtls/archive/mbedtls-3.6.2.tar.gz'
Paul Sokolovskyd9a138c2024-02-03 00:32:25 +070063 - string:
64 name: SHARE_FOLDER
65 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
66 description: 'Folder containing shared repositories for downstream pipeline jobs'
67 wrappers:
68 - credentials-binding:
69 - ssh-user-private-key:
70 credential-id: TFA_CI_BOT_USER_SSH_KEY
71 key-file-variable: CI_BOT_KEY
72 username-variable: CI_BOT_USERNAME
73 passphrase-variable: ''
74 - workspace-cleanup
75 - timestamps
76 builders:
77 - shell:
78 !include-raw: scripts/clone.sh
79 - shell: |
80 #!/bin/bash
81 set -e
82 cat << EOF > env.param
83 GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER}
84 GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER}
85 GERRIT_HOST=${GERRIT_HOST}
86 QA_SERVER_PROJECT=${JOB_NAME}
87 QA_SERVER_VERSION=${BUILD_NUMBER}
88 TFTF_GERRIT_PROJECT=${GERRIT_PROJECT}
89 TFTF_GERRIT_BRANCH=${GERRIT_BRANCH}
90 TFTF_GERRIT_REFSPEC=${GERRIT_REFSPEC}
91 SHARE_FOLDER=${SHARE_FOLDER}
92 EOF
93 - multijob:
94 condition: COMPLETED
95 name: Carry out level 1 tests
96 projects:
97 - kill-phase-on: NEVER
98 name: tf-a-lts2.10-tftf-gerrit-tforg-l1
99 current-parameters: true
100 property-file: env.param
101 - multijob:
102 condition: COMPLETED
103 name: Run Firmware Update Tests
104 projects:
105 - kill-phase-on: NEVER
106 name: tf-a-lts2.10-ci-gateway
107 current-parameters: true
108 predefined-parameters: |-
109 TEST_GROUPS=tftf-l2-fwu
110 TFTF_REFSPEC=$GERRIT_REFSPEC
111 property-file: env.param
112 - multijob:
113 condition: COMPLETED
114 name: Run Level 2 testing of TF-A-Tests
115 projects:
116 - kill-phase-on: NEVER
117 name: tf-a-lts2.10-ci-gateway
118 current-parameters: true
119 predefined-parameters: |-
120 TEST_GROUPS=tftf-l2-fvp-auxiliary tftf-l2-juno tf-l2-boot-tests-spm-mm tftf-l2-fvp-dynamiq spm-l2-boot-tests
121 TFTF_REFSPEC=$GERRIT_REFSPEC
122 property-file: env.param
123 - multijob:
124 condition: COMPLETED
125 name: Run extensive TF-A-Tests
126 projects:
127 - kill-phase-on: NEVER
128 name: tf-a-lts2.10-ci-gateway
129 current-parameters: true
130 predefined-parameters: |-
131 TEST_GROUPS=tftf-l2-extensive-tests-fvp
132 TFTF_REFSPEC=$GERRIT_REFSPEC
133 property-file: env.param
134 triggers:
135 - gerrit:
136 server-name: review.trustedfirmware.org
137 projects:
138 - branches:
139 - branch-compare-type: PLAIN
140 branch-pattern: lts-v2.10
141 project-compare-type: PLAIN
142 project-pattern: TF-A/tf-a-tests
143 trigger-on:
144 - comment-added-event:
145 approval-category: "Allow-CI"
146 approval-value: 2
147 override-votes: true
148 gerrit-build-started-verified-value: 0
149 gerrit-build-successful-verified-value: 1
150 gerrit-build-failed-verified-value: -1
151 gerrit-build-unstable-verified-value: -1
152 gerrit-build-notbuilt-verified-value: 0
153 gerrit-build-started-codereview-value: 0
154 gerrit-build-successful-codereview-value: 0
155 gerrit-build-failed-codereview-value: 0
156 gerrit-build-unstable-codereview-value: 0
157 gerrit-build-notbuilt-codereview-value: 0