blob: fea81509f56013cdf31498ed999e8d1ac84a59f8 [file] [log] [blame]
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -05001- job:
Leonardo Sandovalffaee982021-11-11 10:27:57 -06002 name: tf-a-tftf-gerrit-tforg-l2
Paul Sokolovskyeb463382023-08-05 13:23:05 +03003 node: docker-amd64-tf-a-jammy
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -05004 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
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -050017 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/master
24 - string:
25 name: GERRIT_REFSPEC
26 default: +refs/heads/master:refs/remotes/origin/master
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/integration
36 description: Git project branch for Trusted Firmware-A.
37 - string:
38 name: TF_GERRIT_REFSPEC
39 default: +refs/heads/integration:refs/remotes/origin/integration
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: +refs/heads/master:refs/remotes/origin/master
48 description: |
49 SPM (Hafnium) refspec to use.
50 - string:
51 name: RMM_REFSPEC
52 default: +refs/heads/main:refs/remotes/origin/main
53 description: |
54 tf-rmm refspec to use. The main branch is used by default.
55 - string:
56 name: CI_REFSPEC
57 default: +refs/heads/master:refs/remotes/origin/master
58 - string:
59 name: JOBS_REFSPEC
60 default: refs/heads/master
61 description: |
62 tf-a-job-configs refspec to use. The master branch is used by default.
63 - string:
64 name: MBEDTLS_URL
65 default: https://github.com/Mbed-TLS/mbedtls/archive/mbedtls-3.6.3.tar.gz
66 - string:
67 name: SHARE_FOLDER
68 default: /srv/shared/${JOB_NAME}/${BUILD_NUMBER}
69 description: Folder containing shared repositories for downstream pipeline jobs
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -050070 wrappers:
71 - credentials-binding:
72 - ssh-user-private-key:
73 credential-id: TFA_CI_BOT_USER_SSH_KEY
74 key-file-variable: CI_BOT_KEY
75 username-variable: CI_BOT_USERNAME
Chris Kay675db4f2025-06-24 14:14:34 +010076 passphrase-variable: ""
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -050077 - workspace-cleanup
78 - timestamps
79 builders:
Chris Kay675db4f2025-06-24 14:14:34 +010080 - shell: !include-raw: scripts/clone.sh
81 - shell: |
82 #!/bin/bash
83 set -e
84 cat << EOF > env.param
85 GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER}
86 GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER}
87 GERRIT_HOST=${GERRIT_HOST}
88 QA_SERVER_PROJECT=${JOB_NAME}
89 QA_SERVER_VERSION=${BUILD_NUMBER}
90 TFTF_GERRIT_PROJECT=${GERRIT_PROJECT}
91 TFTF_GERRIT_BRANCH=${GERRIT_BRANCH}
92 TFTF_GERRIT_REFSPEC=${GERRIT_REFSPEC}
93 SHARE_FOLDER=${SHARE_FOLDER}
94 EOF
95 - multijob:
96 condition: COMPLETED
97 name: Carry out level 1 tests
98 projects:
99 - kill-phase-on: NEVER
100 name: tf-a-tftf-gerrit-tforg-l1
101 current-parameters: true
102 property-file: env.param
103 - multijob:
104 condition: COMPLETED
105 name: Run Firmware Update Tests
106 projects:
107 - kill-phase-on: NEVER
108 name: tf-a-ci-gateway
109 current-parameters: true
110 predefined-parameters: |-
111 TEST_GROUPS=tftf-l2-fwu
112 TFTF_REFSPEC=$GERRIT_REFSPEC
113 property-file: env.param
114 - multijob:
115 condition: COMPLETED
116 name: Run Level 2 testing of TF-A-Tests
117 projects:
118 - kill-phase-on: NEVER
119 name: tf-a-ci-gateway
120 current-parameters: true
121 predefined-parameters: |-
122 TEST_GROUPS=tftf-l2-fvp-auxiliary tftf-l2-juno tf-l2-boot-tests-spm-mm tftf-l2-fvp-dynamiq spm-l2-boot-tests
123 TFTF_REFSPEC=$GERRIT_REFSPEC
124 property-file: env.param
125 - multijob:
126 condition: COMPLETED
127 name: Run extensive TF-A-Tests
128 projects:
129 - kill-phase-on: NEVER
130 name: tf-a-ci-gateway
131 current-parameters: true
132 predefined-parameters: |-
133 TEST_GROUPS=tftf-l2-extensive-tests-fvp
134 TFTF_REFSPEC=$GERRIT_REFSPEC
135 property-file: env.param
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -0500136 triggers:
Chris Kay675db4f2025-06-24 14:14:34 +0100137 - gerrit:
138 server-name: review.trustedfirmware.org
139 projects:
140 - branches:
141 - branch-compare-type: PLAIN
142 branch-pattern: master
143 project-compare-type: PLAIN
144 project-pattern: TF-A/tf-a-tests
145 trigger-on:
146 - comment-added-event:
147 approval-category: Allow-CI
148 approval-value: 2
149 override-votes: true
150 gerrit-build-started-verified-value: 0
151 gerrit-build-successful-verified-value: 1
152 gerrit-build-failed-verified-value: -1
153 gerrit-build-unstable-verified-value: -1
154 gerrit-build-notbuilt-verified-value: 0
155 gerrit-build-started-codereview-value: 0
156 gerrit-build-successful-codereview-value: 0
157 gerrit-build-failed-codereview-value: 0
158 gerrit-build-unstable-codereview-value: 0
159 gerrit-build-notbuilt-codereview-value: 0