blob: d4744a968b1c1aac8208f8d0e614eb182e2aa672 [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
Paul Sokolovskyd9a138c2024-02-03 00:32:25 +070017 parameters:
18 - 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:
Saheer Babub495f032025-01-21 23:01:11 +000054 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:
Paul Sokolovskyd9a138c2024-02-03 00:32:25 +070059 name: MBEDTLS_URL
Yann Gautier63a28f32025-04-10 17:00:43 +020060 default: 'https://github.com/Mbed-TLS/mbedtls/archive/mbedtls-3.6.3.tar.gz'
Paul Sokolovskyd9a138c2024-02-03 00:32:25 +070061 - string:
62 name: SHARE_FOLDER
63 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
64 description: 'Folder containing shared repositories for downstream pipeline jobs'
65 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
71 passphrase-variable: ''
72 - workspace-cleanup
73 - timestamps
74 builders:
75 - shell:
76 !include-raw: scripts/clone.sh
77 - shell: |
78 #!/bin/bash
79 set -e
80 cat << EOF > env.param
81 GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER}
82 GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER}
83 GERRIT_HOST=${GERRIT_HOST}
84 QA_SERVER_PROJECT=${JOB_NAME}
85 QA_SERVER_VERSION=${BUILD_NUMBER}
86 TFTF_GERRIT_PROJECT=${GERRIT_PROJECT}
87 TFTF_GERRIT_BRANCH=${GERRIT_BRANCH}
88 TFTF_GERRIT_REFSPEC=${GERRIT_REFSPEC}
89 SHARE_FOLDER=${SHARE_FOLDER}
90 EOF
91 - multijob:
92 condition: COMPLETED
93 name: Carry out level 1 tests
94 projects:
95 - kill-phase-on: NEVER
96 name: tf-a-lts2.10-tftf-gerrit-tforg-l1
97 current-parameters: true
98 property-file: env.param
99 - multijob:
100 condition: COMPLETED
101 name: Run Firmware Update Tests
102 projects:
103 - kill-phase-on: NEVER
104 name: tf-a-lts2.10-ci-gateway
105 current-parameters: true
106 predefined-parameters: |-
107 TEST_GROUPS=tftf-l2-fwu
108 TFTF_REFSPEC=$GERRIT_REFSPEC
109 property-file: env.param
110 - multijob:
111 condition: COMPLETED
112 name: Run Level 2 testing of TF-A-Tests
113 projects:
114 - kill-phase-on: NEVER
115 name: tf-a-lts2.10-ci-gateway
116 current-parameters: true
117 predefined-parameters: |-
118 TEST_GROUPS=tftf-l2-fvp-auxiliary tftf-l2-juno tf-l2-boot-tests-spm-mm tftf-l2-fvp-dynamiq spm-l2-boot-tests
119 TFTF_REFSPEC=$GERRIT_REFSPEC
120 property-file: env.param
121 - multijob:
122 condition: COMPLETED
123 name: Run extensive TF-A-Tests
124 projects:
125 - kill-phase-on: NEVER
126 name: tf-a-lts2.10-ci-gateway
127 current-parameters: true
128 predefined-parameters: |-
129 TEST_GROUPS=tftf-l2-extensive-tests-fvp
130 TFTF_REFSPEC=$GERRIT_REFSPEC
131 property-file: env.param
132 triggers:
133 - gerrit:
134 server-name: review.trustedfirmware.org
135 projects:
136 - branches:
137 - branch-compare-type: PLAIN
Saheer Babufd524222025-01-21 23:42:41 +0000138 branch-pattern: openci-migration-lts-v2.10
Paul Sokolovskyd9a138c2024-02-03 00:32:25 +0700139 project-compare-type: PLAIN
Saheer Babufd524222025-01-21 23:42:41 +0000140 project-pattern: next/TF-A/tf-a-tests
Paul Sokolovskyd9a138c2024-02-03 00:32:25 +0700141 trigger-on:
142 - comment-added-event:
143 approval-category: "Allow-CI"
144 approval-value: 2
145 override-votes: true
146 gerrit-build-started-verified-value: 0
147 gerrit-build-successful-verified-value: 1
148 gerrit-build-failed-verified-value: -1
149 gerrit-build-unstable-verified-value: -1
150 gerrit-build-notbuilt-verified-value: 0
151 gerrit-build-started-codereview-value: 0
152 gerrit-build-successful-codereview-value: 0
153 gerrit-build-failed-codereview-value: 0
154 gerrit-build-unstable-codereview-value: 0
155 gerrit-build-notbuilt-codereview-value: 0