blob: e8540b2dc6416b0d495b78b99a3f683db396fad2 [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:
Chris Kay675db4f2025-06-24 14:14:34 +010011 - throttle:
12 option: project
13 enabled: true
14 max-total: 5
15 - build-discarder:
16 days-to-keep: 14
Paul Sokolovskyd9a138c2024-02-03 00:32:25 +070017 parameters:
Chris Kay675db4f2025-06-24 14:14:34 +010018 - string:
19 name: GERRIT_PROJECT
20 default: TF-A/tf-a-tests
21 - string:
22 name: GERRIT_BRANCH
23 default: refs/heads/lts-v2.10
24 - string:
25 name: GERRIT_REFSPEC
26 default: +refs/heads/lts-v2.10:refs/remotes/origin/lts-v2.10
27 - string:
28 name: GERRIT_PATCHSET_NUMBER
29 default: ""
30 - string:
31 name: GERRIT_CHANGE_NUMBER
32 default: ""
33 - string:
34 name: TF_GERRIT_BRANCH
35 default: refs/heads/lts-v2.10
36 description: Git project branch for Trusted Firmware-A.
37 - string:
38 name: TF_GERRIT_REFSPEC
39 default: +refs/heads/lts-v2.10:refs/remotes/origin/lts-v2.10
40 description: Git refspec for Trusted Firmware-A.
41 - string:
42 name: TFTF_GERRIT_REFSPEC
43 default: ${GERRIT_REFSPEC}
44 description: Parameter only used by the clone script
45 - string:
46 name: SPM_REFSPEC
47 default: v2.10
48 description: |
49 SPM (Hafnium) refspec to use.
50 - string:
51 name: CI_REFSPEC
52 default: +refs/heads/lts-v2.10:refs/remotes/origin/lts-v2.10
53 - string:
54 name: JOBS_REFSPEC
55 default: refs/heads/master
56 description: |
57 tf-a-job-configs refspec to use. The master branch is used by default.
58 - string:
59 name: MBEDTLS_URL
60 default: https://github.com/Mbed-TLS/mbedtls/archive/mbedtls-3.6.3.tar.gz
61 - string:
62 name: SHARE_FOLDER
63 default: /srv/shared/${JOB_NAME}/${BUILD_NUMBER}
64 description: Folder containing shared repositories for downstream pipeline jobs
Paul Sokolovskyd9a138c2024-02-03 00:32:25 +070065 wrappers:
66 - credentials-binding:
67 - ssh-user-private-key:
68 credential-id: TFA_CI_BOT_USER_SSH_KEY
69 key-file-variable: CI_BOT_KEY
70 username-variable: CI_BOT_USERNAME
Chris Kay675db4f2025-06-24 14:14:34 +010071 passphrase-variable: ""
Paul Sokolovskyd9a138c2024-02-03 00:32:25 +070072 - workspace-cleanup
73 - timestamps
74 builders:
Chris Kay675db4f2025-06-24 14:14:34 +010075 - shell: !include-raw: scripts/clone.sh
76 - shell: |
77 #!/bin/bash
78 set -e
79 cat << EOF > env.param
80 GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER}
81 GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER}
82 GERRIT_HOST=${GERRIT_HOST}
83 QA_SERVER_PROJECT=${JOB_NAME}
84 QA_SERVER_VERSION=${BUILD_NUMBER}
85 TFTF_GERRIT_PROJECT=${GERRIT_PROJECT}
86 TFTF_GERRIT_BRANCH=${GERRIT_BRANCH}
87 TFTF_GERRIT_REFSPEC=${GERRIT_REFSPEC}
88 SHARE_FOLDER=${SHARE_FOLDER}
89 EOF
90 - multijob:
91 condition: COMPLETED
92 name: Carry out level 1 tests
93 projects:
94 - kill-phase-on: NEVER
95 name: tf-a-lts2.10-tftf-gerrit-tforg-l1
96 current-parameters: true
97 property-file: env.param
98 - multijob:
99 condition: COMPLETED
100 name: Run Firmware Update Tests
101 projects:
102 - kill-phase-on: NEVER
103 name: tf-a-lts2.10-ci-gateway
104 current-parameters: true
105 predefined-parameters: |-
106 TEST_GROUPS=tftf-l2-fwu
107 TFTF_REFSPEC=$GERRIT_REFSPEC
108 property-file: env.param
109 - multijob:
110 condition: COMPLETED
111 name: Run Level 2 testing of TF-A-Tests
112 projects:
113 - kill-phase-on: NEVER
114 name: tf-a-lts2.10-ci-gateway
115 current-parameters: true
116 predefined-parameters: |-
117 TEST_GROUPS=tftf-l2-fvp-auxiliary tftf-l2-juno tf-l2-boot-tests-spm-mm tftf-l2-fvp-dynamiq spm-l2-boot-tests
118 TFTF_REFSPEC=$GERRIT_REFSPEC
119 property-file: env.param
120 - multijob:
121 condition: COMPLETED
122 name: Run extensive TF-A-Tests
123 projects:
124 - kill-phase-on: NEVER
125 name: tf-a-lts2.10-ci-gateway
126 current-parameters: true
127 predefined-parameters: |-
128 TEST_GROUPS=tftf-l2-extensive-tests-fvp
129 TFTF_REFSPEC=$GERRIT_REFSPEC
130 property-file: env.param
Paul Sokolovskyd9a138c2024-02-03 00:32:25 +0700131 triggers:
Chris Kay675db4f2025-06-24 14:14:34 +0100132 - gerrit:
133 server-name: review.trustedfirmware.org
134 projects:
135 - branches:
136 - branch-compare-type: PLAIN
137 branch-pattern: lts-v2.10
138 project-compare-type: PLAIN
139 project-pattern: TF-A/tf-a-tests
140 trigger-on:
141 - comment-added-event:
142 approval-category: Allow-CI
143 approval-value: 2
144 override-votes: true
145 gerrit-build-started-verified-value: 0
146 gerrit-build-successful-verified-value: 1
147 gerrit-build-failed-verified-value: -1
148 gerrit-build-unstable-verified-value: -1
149 gerrit-build-notbuilt-verified-value: 0
150 gerrit-build-started-codereview-value: 0
151 gerrit-build-successful-codereview-value: 0
152 gerrit-build-failed-codereview-value: 0
153 gerrit-build-unstable-codereview-value: 0
154 gerrit-build-notbuilt-codereview-value: 0