blob: 7a6600d9d12e5eb78e9043e6a4ec4b7d1bc78899 [file] [log] [blame]
Chris Kayd2539cd2022-12-05 11:31:22 +00001- job:
2 name: tf-a-tftf-main
3 description: Main CI job for the Trusted Firmware-A Test Framework.
Paul Sokolovsky4d0cde82023-07-16 16:05:08 +03004 node: docker-amd64-tf-a-jammy
Chris Kayd2539cd2022-12-05 11:31:22 +00005 project-type: multijob
6 concurrent: true
7 disabled: false
8 properties:
Chris Kayd2539cd2022-12-05 11:31:22 +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
19 default: "TF-A/trusted-firmware-a"
20 description: "Gerrit project name for Trusted Firmware-A."
21 - string:
22 name: TF_GERRIT_BRANCH
Paul Sokolovskydf590d72023-07-16 12:30:24 +030023 default: "refs/heads/integration"
Chris Kayd2539cd2022-12-05 11:31:22 +000024 description: "Git project branch for Trusted Firmware-A."
25 - string:
26 name: TF_GERRIT_REFSPEC
Paul Sokolovskydf590d72023-07-16 12:30:24 +030027 default: "+refs/heads/integration:refs/remotes/origin/integration"
Chris Kayd2539cd2022-12-05 11:31:22 +000028 description: "Git refspec for Trusted Firmware-A."
29 - string:
30 name: TFTF_GERRIT_PROJECT
31 default: "TF-A/tf-a-tests"
32 description: "Gerrit project name for the Trusted Firmware-A Test Framework."
33 - string:
34 name: TFTF_GERRIT_BRANCH
35 default: "refs/heads/master"
36 description: "Git branch for the Trusted Firmware-A Test Framework."
37 - string:
38 name: TFTF_GERRIT_REFSPEC
39 default: "+refs/heads/master:refs/remotes/origin/master"
40 description: "Git refspec for the Trusted Firmware-A Test Framework."
41 - string:
42 name: CI_REFSPEC
43 default: "+refs/heads/master:refs/remotes/origin/master"
44 description: "Git refspec for the Trusted Firmware-A CI scripts."
45 - string:
Chris Kayc1aa7ba2025-06-12 16:56:38 +010046 name: RMM_REFSPEC
47 default: '+refs/heads/main:refs/remotes/origin/main'
48 description: |
49 tf-rmm refspec to use. The main branch is used by default.
50 - string:
51 name: JOBS_REFSPEC
52 default: 'refs/heads/master'
53 description: |
54 tf-a-job-configs refspec to use. The master branch is used by default.
55 - string:
Chris Kayd2539cd2022-12-05 11:31:22 +000056 name: SHARE_FOLDER
Chris Kayc1aa7ba2025-06-12 16:56:38 +010057 default: "/srv/shared/staging/${JOB_NAME}/${BUILD_NUMBER}"
Chris Kayd2539cd2022-12-05 11:31:22 +000058 description: "Folder containing shared repositories for downstream pipeline jobs."
Chris Kayd2539cd2022-12-05 11:31:22 +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 Kay9a90fb32022-12-05 11:43:48 +000071 - shell:
72 !include-raw: scripts/clone.sh
Chris Kayd2539cd2022-12-05 11:31:22 +000073 - shell: |
74 #!/bin/bash
75
76 cat << EOF > tf-a-tests-env.param
77 GERRIT_PROJECT=${TFTF_GERRIT_PROJECT}
78 GERRIT_BRANCH=${TFTF_GERRIT_BRANCH}
79 GERRIT_REFSPEC=${TFTF_GERRIT_REFSPEC}
80 QA_SERVER_PROJECT=${JOB_NAME}
81 QA_SERVER_VERSION=${BUILD_NUMBER}
82 SHARE_FOLDER=${SHARE_FOLDER}
83 EOF
Chris Kayd2539cd2022-12-05 11:31:22 +000084 - multijob:
85 condition: COMPLETED
86 name: Static checks on TFTF
87 projects:
88 - current-parameters: true
89 kill-phase-on: NEVER
90 name: tf-a-static-checks
91 predefined-parameters: |-
Boyan Karatotevac578842023-01-11 14:11:35 +000092 REPO_UNDER_TEST=tf-a-tests
Chris Kayd2539cd2022-12-05 11:31:22 +000093 property-file: tf-a-tests-env.param
94 - multijob:
95 condition: COMPLETED
96 name: Build TFTF
97 projects:
98 - current-parameters: true
99 kill-phase-on: NEVER
100 name: tf-a-ci-gateway
Chris Kayc1aa7ba2025-06-12 16:56:38 +0100101 alias: tftf-l1-build
Chris Kayd2539cd2022-12-05 11:31:22 +0000102 predefined-parameters: |-
103 TEST_GROUPS=tftf-l1-build
104 property-file: tf-a-tests-env.param
105 - multijob:
106 condition: COMPLETED
107 name: Run TFTF FWU
108 projects:
109 - current-parameters: true
110 kill-phase-on: NEVER
111 name: tf-a-ci-gateway
Chris Kayc1aa7ba2025-06-12 16:56:38 +0100112 alias: tftf-l2-fwu
Chris Kayd2539cd2022-12-05 11:31:22 +0000113 predefined-parameters: |-
114 TEST_GROUPS=tftf-l2-fwu
115 property-file: tf-a-tests-env.param
116 - multijob:
117 condition: COMPLETED
118 name: Run TFTF
119 projects:
120 - current-parameters: true
121 kill-phase-on: NEVER
122 name: tf-a-ci-gateway
Chris Kayc1aa7ba2025-06-12 16:56:38 +0100123 alias: tftf-l1-fvp tftf-l1-juno
Chris Kayd2539cd2022-12-05 11:31:22 +0000124 predefined-parameters: |-
Chris Kayc1aa7ba2025-06-12 16:56:38 +0100125 TEST_GROUPS=tftf-l1-fvp tftf-l1-juno
Chris Kayd2539cd2022-12-05 11:31:22 +0000126 property-file: tf-a-tests-env.param
127 - current-parameters: true
128 kill-phase-on: NEVER
129 name: tf-a-ci-gateway
Chris Kayc1aa7ba2025-06-12 16:56:38 +0100130 alias: tftf-l2-fvp-auxiliary tftf-l2-fvp-dynamiq
Chris Kayd2539cd2022-12-05 11:31:22 +0000131 predefined-parameters: |-
Chris Kayc1aa7ba2025-06-12 16:56:38 +0100132 TEST_GROUPS=tftf-l2-fvp-auxiliary tftf-l2-fvp-dynamiq
133 property-file: tf-a-tests-env.param
134 - current-parameters: true
135 kill-phase-on: NEVER
136 name: tf-a-ci-gateway
137 alias: spm-l2-boot-tests tf-l2-boot-tests-spm-mm
138 predefined-parameters: |-
139 TEST_GROUPS=spm-l2-boot-tests tf-l2-boot-tests-spm-mm
140 property-file: tf-a-tests-env.param
141 - current-parameters: true
142 kill-phase-on: NEVER
143 name: tf-a-ci-gateway
144 alias: spm-l3-boot-tests tf-l3-boot-tests-spm-mm
145 predefined-parameters: |-
146 TEST_GROUPS=spm-l3-boot-tests tf-l3-boot-tests-spm-mm
Chris Kayd2539cd2022-12-05 11:31:22 +0000147 property-file: tf-a-tests-env.param
148 - multijob:
149 condition: SUCCESSFUL
150 name: Run TFTF Extensive
151 projects:
152 - current-parameters: true
153 kill-phase-on: FAILURE
154 name: tf-a-ci-gateway
Chris Kayc1aa7ba2025-06-12 16:56:38 +0100155 alias: tftf-l2-extensive-tests-fvp
Chris Kayd2539cd2022-12-05 11:31:22 +0000156 predefined-parameters: |-
157 TEST_GROUPS=tftf-l2-extensive-tests-fvp
158 property-file: tf-a-tests-env.param