blob: b3a3cbe518f1e50b905e1bca515ca692876c6722 [file] [log] [blame]
Chris Kay71c48d62022-12-20 11:13:25 +00001- job:
2 name: tf-a-tftf-main
3 description: Main CI job for the Trusted Firmware-A Test Framework.
Paul Sokolovsky02ce83a2023-07-16 17:26:27 +03004 node: docker-amd64-tf-a-jammy
Chris Kay71c48d62022-12-20 11:13:25 +00005 project-type: multijob
6 concurrent: true
7 disabled: false
8 properties:
Chris Kay71c48d62022-12-20 11:13:25 +00009 - build-discarder:
10 days-to-keep: 14
11 num-to-keep: 60
12 - throttle:
13 option: project
14 enabled: true
15 max-total: 5
16 parameters:
17 - string:
18 name: TF_GERRIT_PROJECT
Chris Kay675db4f2025-06-24 14:14:34 +010019 default: TF-A/trusted-firmware-a
20 description: Gerrit project name for Trusted Firmware-A.
Chris Kay71c48d62022-12-20 11:13:25 +000021 - string:
22 name: TF_GERRIT_BRANCH
Chris Kay675db4f2025-06-24 14:14:34 +010023 default: refs/heads/integration
24 description: Git project branch for Trusted Firmware-A.
Chris Kay71c48d62022-12-20 11:13:25 +000025 - string:
26 name: TF_GERRIT_REFSPEC
Chris Kay675db4f2025-06-24 14:14:34 +010027 default: +refs/heads/integration:refs/remotes/origin/integration
28 description: Git refspec for Trusted Firmware-A.
Chris Kay71c48d62022-12-20 11:13:25 +000029 - string:
30 name: TFTF_GERRIT_PROJECT
Chris Kay675db4f2025-06-24 14:14:34 +010031 default: TF-A/tf-a-tests
32 description: Gerrit project name for the Trusted Firmware-A Test Framework.
Chris Kay71c48d62022-12-20 11:13:25 +000033 - string:
34 name: TFTF_GERRIT_BRANCH
Chris Kay675db4f2025-06-24 14:14:34 +010035 default: refs/heads/master
36 description: Git branch for the Trusted Firmware-A Test Framework.
Chris Kay71c48d62022-12-20 11:13:25 +000037 - string:
38 name: TFTF_GERRIT_REFSPEC
Chris Kay675db4f2025-06-24 14:14:34 +010039 default: +refs/heads/master:refs/remotes/origin/master
40 description: Git refspec for the Trusted Firmware-A Test Framework.
Chris Kay71c48d62022-12-20 11:13:25 +000041 - string:
42 name: CI_REFSPEC
Chris Kay675db4f2025-06-24 14:14:34 +010043 default: +refs/heads/master:refs/remotes/origin/master
44 description: Git refspec for the Trusted Firmware-A CI scripts.
Chris Kay71c48d62022-12-20 11:13:25 +000045 - string:
Manish V Badarkhe08e108b2025-04-11 08:01:14 +010046 name: RMM_REFSPEC
Chris Kay675db4f2025-06-24 14:14:34 +010047 default: +refs/heads/main:refs/remotes/origin/main
Manish V Badarkhe08e108b2025-04-11 08:01:14 +010048 description: |
49 tf-rmm refspec to use. The main branch is used by default.
50 - string:
Saheer Babub495f032025-01-21 23:01:11 +000051 name: JOBS_REFSPEC
Chris Kay675db4f2025-06-24 14:14:34 +010052 default: refs/heads/master
Saheer Babub495f032025-01-21 23:01:11 +000053 description: |
54 tf-a-job-configs refspec to use. The master branch is used by default.
55 - string:
Chris Kay71c48d62022-12-20 11:13:25 +000056 name: SHARE_FOLDER
Chris Kay675db4f2025-06-24 14:14:34 +010057 default: /srv/shared/${JOB_NAME}/${BUILD_NUMBER}
58 description: Folder containing shared repositories for downstream pipeline jobs.
Chris Kay71c48d62022-12-20 11:13:25 +000059 triggers:
60 - timed: H H(0-6) * * 1-5
61 wrappers:
62 - credentials-binding:
63 - ssh-user-private-key:
64 credential-id: TFA_CI_BOT_USER_SSH_KEY
65 key-file-variable: CI_BOT_KEY
66 username-variable: CI_BOT_USERNAME
67 passphrase-variable: ""
68 - workspace-cleanup
69 - timestamps
70 builders:
Chris Kay675db4f2025-06-24 14:14:34 +010071 - shell: !include-raw: scripts/clone.sh
Chris Kay71c48d62022-12-20 11:13:25 +000072 - shell: |
73 #!/bin/bash
74
75 cat << EOF > tf-a-tests-env.param
76 GERRIT_PROJECT=${TFTF_GERRIT_PROJECT}
77 GERRIT_BRANCH=${TFTF_GERRIT_BRANCH}
78 GERRIT_REFSPEC=${TFTF_GERRIT_REFSPEC}
79 QA_SERVER_PROJECT=${JOB_NAME}
80 QA_SERVER_VERSION=${BUILD_NUMBER}
81 SHARE_FOLDER=${SHARE_FOLDER}
82 EOF
83 - multijob:
84 condition: COMPLETED
85 name: Static checks on TFTF
86 projects:
87 - current-parameters: true
88 kill-phase-on: NEVER
89 name: tf-a-static-checks
Boyan Karatoteva20366c2025-06-25 09:18:00 +010090 alias: tftf-static-checks
Chris Kay675db4f2025-06-24 14:14:34 +010091 predefined-parameters: REPO_UNDER_TEST=tf-a-tests
Chris Kay71c48d62022-12-20 11:13:25 +000092 property-file: tf-a-tests-env.param
93 - multijob:
94 condition: COMPLETED
95 name: Build TFTF
96 projects:
97 - current-parameters: true
98 kill-phase-on: NEVER
99 name: tf-a-ci-gateway
Manish V Badarkhe09964ed2023-11-13 10:12:03 +0000100 alias: tftf-l1-build
Chris Kay675db4f2025-06-24 14:14:34 +0100101 predefined-parameters: TEST_GROUPS=tftf-l1-build
Chris Kay71c48d62022-12-20 11:13:25 +0000102 property-file: tf-a-tests-env.param
103 - multijob:
104 condition: COMPLETED
105 name: Run TFTF FWU
106 projects:
107 - current-parameters: true
108 kill-phase-on: NEVER
109 name: tf-a-ci-gateway
Manish V Badarkhe09964ed2023-11-13 10:12:03 +0000110 alias: tftf-l2-fwu
Chris Kay675db4f2025-06-24 14:14:34 +0100111 predefined-parameters: TEST_GROUPS=tftf-l2-fwu
Chris Kay71c48d62022-12-20 11:13:25 +0000112 property-file: tf-a-tests-env.param
113 - multijob:
114 condition: COMPLETED
115 name: Run TFTF
116 projects:
117 - current-parameters: true
118 kill-phase-on: NEVER
119 name: tf-a-ci-gateway
Manish V Badarkhe09964ed2023-11-13 10:12:03 +0000120 alias: tftf-l1-fvp tftf-l1-juno
Chris Kay675db4f2025-06-24 14:14:34 +0100121 predefined-parameters: TEST_GROUPS=tftf-l1-fvp tftf-l1-juno
Chris Kay71c48d62022-12-20 11:13:25 +0000122 property-file: tf-a-tests-env.param
123 - current-parameters: true
124 kill-phase-on: NEVER
125 name: tf-a-ci-gateway
Manish V Badarkhe09964ed2023-11-13 10:12:03 +0000126 alias: tftf-l2-fvp-auxiliary tftf-l2-fvp-dynamiq
Chris Kay675db4f2025-06-24 14:14:34 +0100127 predefined-parameters: TEST_GROUPS=tftf-l2-fvp-auxiliary tftf-l2-fvp-dynamiq
Manish V Badarkhe09964ed2023-11-13 10:12:03 +0000128 property-file: tf-a-tests-env.param
129 - current-parameters: true
130 kill-phase-on: NEVER
131 name: tf-a-ci-gateway
132 alias: spm-l2-boot-tests tf-l2-boot-tests-spm-mm
Chris Kay675db4f2025-06-24 14:14:34 +0100133 predefined-parameters: TEST_GROUPS=spm-l2-boot-tests tf-l2-boot-tests-spm-mm
Manish V Badarkhe09964ed2023-11-13 10:12:03 +0000134 property-file: tf-a-tests-env.param
135 - current-parameters: true
136 kill-phase-on: NEVER
137 name: tf-a-ci-gateway
138 alias: spm-l3-boot-tests tf-l3-boot-tests-spm-mm
Chris Kay675db4f2025-06-24 14:14:34 +0100139 predefined-parameters: TEST_GROUPS=spm-l3-boot-tests tf-l3-boot-tests-spm-mm
Chris Kay71c48d62022-12-20 11:13:25 +0000140 property-file: tf-a-tests-env.param
141 - multijob:
142 condition: SUCCESSFUL
143 name: Run TFTF Extensive
144 projects:
145 - current-parameters: true
146 kill-phase-on: FAILURE
147 name: tf-a-ci-gateway
Manish V Badarkhe09964ed2023-11-13 10:12:03 +0000148 alias: tftf-l2-extensive-tests-fvp
Chris Kay675db4f2025-06-24 14:14:34 +0100149 predefined-parameters: TEST_GROUPS=tftf-l2-extensive-tests-fvp
Chris Kay71c48d62022-12-20 11:13:25 +0000150 property-file: tf-a-tests-env.param