blob: d93b5b8ac47c23bd83b107f86a5702b4a44587f4 [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:
56 name: MBEDTLS_URL
Yann Gautier43056e52024-09-30 15:39:19 +020057 default: 'https://github.com/Mbed-TLS/mbedtls/archive/mbedtls-3.6.1.tar.gz'
Paul Sokolovskyd9a138c2024-02-03 00:32:25 +070058 - string:
59 name: SHARE_FOLDER
60 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
61 description: 'Folder containing shared repositories for downstream pipeline jobs'
62 wrappers:
63 - credentials-binding:
64 - ssh-user-private-key:
65 credential-id: TFA_CI_BOT_USER_SSH_KEY
66 key-file-variable: CI_BOT_KEY
67 username-variable: CI_BOT_USERNAME
68 passphrase-variable: ''
69 - workspace-cleanup
70 - timestamps
71 builders:
72 - shell:
73 !include-raw: scripts/clone.sh
74 - shell: |
75 #!/bin/bash
76 set -e
77 cat << EOF > env.param
78 GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER}
79 GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER}
80 GERRIT_HOST=${GERRIT_HOST}
81 QA_SERVER_PROJECT=${JOB_NAME}
82 QA_SERVER_VERSION=${BUILD_NUMBER}
83 TFTF_GERRIT_PROJECT=${GERRIT_PROJECT}
84 TFTF_GERRIT_BRANCH=${GERRIT_BRANCH}
85 TFTF_GERRIT_REFSPEC=${GERRIT_REFSPEC}
86 SHARE_FOLDER=${SHARE_FOLDER}
87 EOF
88 - multijob:
89 condition: COMPLETED
90 name: Carry out level 1 tests
91 projects:
92 - kill-phase-on: NEVER
93 name: tf-a-lts2.10-tftf-gerrit-tforg-l1
94 current-parameters: true
95 property-file: env.param
96 - multijob:
97 condition: COMPLETED
98 name: Run Firmware Update Tests
99 projects:
100 - kill-phase-on: NEVER
101 name: tf-a-lts2.10-ci-gateway
102 current-parameters: true
103 predefined-parameters: |-
104 TEST_GROUPS=tftf-l2-fwu
105 TFTF_REFSPEC=$GERRIT_REFSPEC
106 property-file: env.param
107 - multijob:
108 condition: COMPLETED
109 name: Run Level 2 testing of TF-A-Tests
110 projects:
111 - kill-phase-on: NEVER
112 name: tf-a-lts2.10-ci-gateway
113 current-parameters: true
114 predefined-parameters: |-
115 TEST_GROUPS=tftf-l2-fvp-auxiliary tftf-l2-juno tf-l2-boot-tests-spm-mm tftf-l2-fvp-dynamiq spm-l2-boot-tests
116 TFTF_REFSPEC=$GERRIT_REFSPEC
117 property-file: env.param
118 - multijob:
119 condition: COMPLETED
120 name: Run extensive TF-A-Tests
121 projects:
122 - kill-phase-on: NEVER
123 name: tf-a-lts2.10-ci-gateway
124 current-parameters: true
125 predefined-parameters: |-
126 TEST_GROUPS=tftf-l2-extensive-tests-fvp
127 TFTF_REFSPEC=$GERRIT_REFSPEC
128 property-file: env.param
129 triggers:
130 - gerrit:
131 server-name: review.trustedfirmware.org
132 projects:
133 - branches:
134 - branch-compare-type: PLAIN
135 branch-pattern: lts-v2.10
136 project-compare-type: PLAIN
137 project-pattern: TF-A/tf-a-tests
138 trigger-on:
139 - comment-added-event:
140 approval-category: "Allow-CI"
141 approval-value: 2
142 override-votes: true
143 gerrit-build-started-verified-value: 0
144 gerrit-build-successful-verified-value: 1
145 gerrit-build-failed-verified-value: -1
146 gerrit-build-unstable-verified-value: -1
147 gerrit-build-notbuilt-verified-value: 0
148 gerrit-build-started-codereview-value: 0
149 gerrit-build-successful-codereview-value: 0
150 gerrit-build-failed-codereview-value: 0
151 gerrit-build-unstable-codereview-value: 0
152 gerrit-build-notbuilt-codereview-value: 0