blob: f7c3bc799ccabfb9f491b01d82d2e59e010c7fba [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 wrappers:
60 - credentials-binding:
61 - ssh-user-private-key:
62 credential-id: TFA_CI_BOT_USER_SSH_KEY
63 key-file-variable: CI_BOT_KEY
64 username-variable: CI_BOT_USERNAME
65 passphrase-variable: ""
66 - workspace-cleanup
67 - timestamps
68 builders:
Chris Kay675db4f2025-06-24 14:14:34 +010069 - shell: !include-raw: scripts/clone.sh
Chris Kay71c48d62022-12-20 11:13:25 +000070 - shell: |
71 #!/bin/bash
72
73 cat << EOF > tf-a-tests-env.param
74 GERRIT_PROJECT=${TFTF_GERRIT_PROJECT}
75 GERRIT_BRANCH=${TFTF_GERRIT_BRANCH}
76 GERRIT_REFSPEC=${TFTF_GERRIT_REFSPEC}
77 QA_SERVER_PROJECT=${JOB_NAME}
78 QA_SERVER_VERSION=${BUILD_NUMBER}
79 SHARE_FOLDER=${SHARE_FOLDER}
80 EOF
81 - multijob:
82 condition: COMPLETED
83 name: Static checks on TFTF
84 projects:
85 - current-parameters: true
86 kill-phase-on: NEVER
87 name: tf-a-static-checks
Boyan Karatoteva20366c2025-06-25 09:18:00 +010088 alias: tftf-static-checks
Chris Kay675db4f2025-06-24 14:14:34 +010089 predefined-parameters: REPO_UNDER_TEST=tf-a-tests
Chris Kay71c48d62022-12-20 11:13:25 +000090 property-file: tf-a-tests-env.param
91 - multijob:
92 condition: COMPLETED
93 name: Build TFTF
94 projects:
95 - current-parameters: true
96 kill-phase-on: NEVER
97 name: tf-a-ci-gateway
Manish V Badarkhe09964ed2023-11-13 10:12:03 +000098 alias: tftf-l1-build
Chris Kay675db4f2025-06-24 14:14:34 +010099 predefined-parameters: TEST_GROUPS=tftf-l1-build
Chris Kay71c48d62022-12-20 11:13:25 +0000100 property-file: tf-a-tests-env.param
101 - multijob:
102 condition: COMPLETED
103 name: Run TFTF FWU
104 projects:
105 - current-parameters: true
106 kill-phase-on: NEVER
107 name: tf-a-ci-gateway
Manish V Badarkhe09964ed2023-11-13 10:12:03 +0000108 alias: tftf-l2-fwu
Chris Kay675db4f2025-06-24 14:14:34 +0100109 predefined-parameters: TEST_GROUPS=tftf-l2-fwu
Chris Kay71c48d62022-12-20 11:13:25 +0000110 property-file: tf-a-tests-env.param
111 - multijob:
112 condition: COMPLETED
113 name: Run TFTF
114 projects:
115 - current-parameters: true
116 kill-phase-on: NEVER
117 name: tf-a-ci-gateway
Manish V Badarkhe09964ed2023-11-13 10:12:03 +0000118 alias: tftf-l1-fvp tftf-l1-juno
Chris Kay675db4f2025-06-24 14:14:34 +0100119 predefined-parameters: TEST_GROUPS=tftf-l1-fvp tftf-l1-juno
Chris Kay71c48d62022-12-20 11:13:25 +0000120 property-file: tf-a-tests-env.param
121 - current-parameters: true
122 kill-phase-on: NEVER
123 name: tf-a-ci-gateway
Manish V Badarkhe09964ed2023-11-13 10:12:03 +0000124 alias: tftf-l2-fvp-auxiliary tftf-l2-fvp-dynamiq
Chris Kay675db4f2025-06-24 14:14:34 +0100125 predefined-parameters: TEST_GROUPS=tftf-l2-fvp-auxiliary tftf-l2-fvp-dynamiq
Manish V Badarkhe09964ed2023-11-13 10:12:03 +0000126 property-file: tf-a-tests-env.param
127 - current-parameters: true
128 kill-phase-on: NEVER
129 name: tf-a-ci-gateway
130 alias: spm-l2-boot-tests tf-l2-boot-tests-spm-mm
Chris Kay675db4f2025-06-24 14:14:34 +0100131 predefined-parameters: TEST_GROUPS=spm-l2-boot-tests tf-l2-boot-tests-spm-mm
Manish V Badarkhe09964ed2023-11-13 10:12:03 +0000132 property-file: tf-a-tests-env.param
133 - current-parameters: true
134 kill-phase-on: NEVER
135 name: tf-a-ci-gateway
136 alias: spm-l3-boot-tests tf-l3-boot-tests-spm-mm
Chris Kay675db4f2025-06-24 14:14:34 +0100137 predefined-parameters: TEST_GROUPS=spm-l3-boot-tests tf-l3-boot-tests-spm-mm
Chris Kay71c48d62022-12-20 11:13:25 +0000138 property-file: tf-a-tests-env.param
139 - multijob:
140 condition: SUCCESSFUL
141 name: Run TFTF Extensive
142 projects:
143 - current-parameters: true
144 kill-phase-on: FAILURE
145 name: tf-a-ci-gateway
Manish V Badarkhe09964ed2023-11-13 10:12:03 +0000146 alias: tftf-l2-extensive-tests-fvp
Chris Kay675db4f2025-06-24 14:14:34 +0100147 predefined-parameters: TEST_GROUPS=tftf-l2-extensive-tests-fvp
Chris Kay71c48d62022-12-20 11:13:25 +0000148 property-file: tf-a-tests-env.param