blob: 551479ac8455a0f41d8d7803d541b2338ca1b837 [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}
Chris Kay675db4f2025-06-24 14:14:34 +010088 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-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-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-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-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
Leonardo Sandoval119d8cf2020-10-13 16:22:33 -0500134 triggers:
Chris Kay675db4f2025-06-24 14:14:34 +0100135 - gerrit:
136 server-name: review.trustedfirmware.org
137 projects:
138 - branches:
139 - branch-compare-type: PLAIN
140 branch-pattern: master
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