blob: 59b222d028c63255c4a6c18caed03b31efca5dcc [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:
9 - authorization:
10 !include: authorization.yaml.inc
11 - build-discarder:
12 days-to-keep: 14
13 num-to-keep: 60
14 - throttle:
15 option: project
16 enabled: true
17 max-total: 5
18 parameters:
19 - string:
20 name: TF_GERRIT_PROJECT
21 default: "TF-A/trusted-firmware-a"
22 description: "Gerrit project name for Trusted Firmware-A."
23 - string:
24 name: TF_GERRIT_BRANCH
Manish V Badarkhedce7e212023-02-13 16:17:46 +000025 default: "refs/heads/integration"
Chris Kay71c48d62022-12-20 11:13:25 +000026 description: "Git project branch for Trusted Firmware-A."
27 - string:
28 name: TF_GERRIT_REFSPEC
Manish V Badarkhedce7e212023-02-13 16:17:46 +000029 default: "+refs/heads/integration:refs/remotes/origin/integration"
Chris Kay71c48d62022-12-20 11:13:25 +000030 description: "Git refspec for Trusted Firmware-A."
31 - string:
32 name: TFTF_GERRIT_PROJECT
33 default: "TF-A/tf-a-tests"
34 description: "Gerrit project name for the Trusted Firmware-A Test Framework."
35 - string:
36 name: TFTF_GERRIT_BRANCH
37 default: "refs/heads/master"
38 description: "Git branch for the Trusted Firmware-A Test Framework."
39 - string:
40 name: TFTF_GERRIT_REFSPEC
41 default: "+refs/heads/master:refs/remotes/origin/master"
42 description: "Git refspec for the Trusted Firmware-A Test Framework."
43 - string:
44 name: CI_REFSPEC
45 default: "+refs/heads/master:refs/remotes/origin/master"
46 description: "Git refspec for the Trusted Firmware-A CI scripts."
47 - string:
48 name: SHARE_FOLDER
49 default: "/srv/shared/${JOB_NAME}/${BUILD_NUMBER}"
50 description: "Folder containing shared repositories for downstream pipeline jobs."
Chris Kay71c48d62022-12-20 11:13:25 +000051 triggers:
52 - timed: H H(0-6) * * 1-5
53 wrappers:
54 - credentials-binding:
55 - ssh-user-private-key:
56 credential-id: TFA_CI_BOT_USER_SSH_KEY
57 key-file-variable: CI_BOT_KEY
58 username-variable: CI_BOT_USERNAME
59 passphrase-variable: ""
60 - workspace-cleanup
61 - timestamps
62 builders:
63 - shell:
64 !include-raw: scripts/clone.sh
65 - shell: |
66 #!/bin/bash
67
68 cat << EOF > tf-a-tests-env.param
69 GERRIT_PROJECT=${TFTF_GERRIT_PROJECT}
70 GERRIT_BRANCH=${TFTF_GERRIT_BRANCH}
71 GERRIT_REFSPEC=${TFTF_GERRIT_REFSPEC}
72 QA_SERVER_PROJECT=${JOB_NAME}
73 QA_SERVER_VERSION=${BUILD_NUMBER}
74 SHARE_FOLDER=${SHARE_FOLDER}
75 EOF
76 - multijob:
77 condition: COMPLETED
78 name: Static checks on TFTF
79 projects:
80 - current-parameters: true
81 kill-phase-on: NEVER
82 name: tf-a-static-checks
83 predefined-parameters: |-
Manish V Badarkhe4a7c1972022-12-28 18:37:04 +000084 REPO_UNDER_TEST=tf-a-tests
Chris Kay71c48d62022-12-20 11:13:25 +000085 property-file: tf-a-tests-env.param
86 - multijob:
87 condition: COMPLETED
88 name: Build TFTF
89 projects:
90 - current-parameters: true
91 kill-phase-on: NEVER
92 name: tf-a-ci-gateway
Manish V Badarkhe09964ed2023-11-13 10:12:03 +000093 alias: tftf-l1-build
Chris Kay71c48d62022-12-20 11:13:25 +000094 predefined-parameters: |-
95 TEST_GROUPS=tftf-l1-build
96 property-file: tf-a-tests-env.param
97 - multijob:
98 condition: COMPLETED
99 name: Run TFTF FWU
100 projects:
101 - current-parameters: true
102 kill-phase-on: NEVER
103 name: tf-a-ci-gateway
Manish V Badarkhe09964ed2023-11-13 10:12:03 +0000104 alias: tftf-l2-fwu
Chris Kay71c48d62022-12-20 11:13:25 +0000105 predefined-parameters: |-
106 TEST_GROUPS=tftf-l2-fwu
107 property-file: tf-a-tests-env.param
108 - multijob:
109 condition: COMPLETED
110 name: Run TFTF
111 projects:
112 - current-parameters: true
113 kill-phase-on: NEVER
114 name: tf-a-ci-gateway
Manish V Badarkhe09964ed2023-11-13 10:12:03 +0000115 alias: tftf-l1-fvp tftf-l1-juno
Chris Kay71c48d62022-12-20 11:13:25 +0000116 predefined-parameters: |-
Manish V Badarkhe09964ed2023-11-13 10:12:03 +0000117 TEST_GROUPS=tftf-l1-fvp tftf-l1-juno
Chris Kay71c48d62022-12-20 11:13:25 +0000118 property-file: tf-a-tests-env.param
119 - current-parameters: true
120 kill-phase-on: NEVER
121 name: tf-a-ci-gateway
Manish V Badarkhe09964ed2023-11-13 10:12:03 +0000122 alias: tftf-l2-fvp-auxiliary tftf-l2-fvp-dynamiq
Chris Kay71c48d62022-12-20 11:13:25 +0000123 predefined-parameters: |-
Manish V Badarkhe09964ed2023-11-13 10:12:03 +0000124 TEST_GROUPS=tftf-l2-fvp-auxiliary tftf-l2-fvp-dynamiq
125 property-file: tf-a-tests-env.param
126 - current-parameters: true
127 kill-phase-on: NEVER
128 name: tf-a-ci-gateway
129 alias: spm-l2-boot-tests tf-l2-boot-tests-spm-mm
130 predefined-parameters: |-
Manish V Badarkhe0297b082023-12-04 18:14:58 +0000131 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
137 predefined-parameters: |-
138 TEST_GROUPS=spm-l3-boot-tests tf-l3-boot-tests-spm-mm
Chris Kay71c48d62022-12-20 11:13:25 +0000139 property-file: tf-a-tests-env.param
140 - multijob:
141 condition: SUCCESSFUL
142 name: Run TFTF Extensive
143 projects:
144 - current-parameters: true
145 kill-phase-on: FAILURE
146 name: tf-a-ci-gateway
Manish V Badarkhe09964ed2023-11-13 10:12:03 +0000147 alias: tftf-l2-extensive-tests-fvp
Chris Kay71c48d62022-12-20 11:13:25 +0000148 predefined-parameters: |-
149 TEST_GROUPS=tftf-l2-extensive-tests-fvp
150 property-file: tf-a-tests-env.param