blob: 0889a77af680e1f9eb56397fcb13c59296a6e6be [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
93 predefined-parameters: |-
94 TEST_GROUPS=tftf-l1-build
95 property-file: tf-a-tests-env.param
96 - multijob:
97 condition: COMPLETED
98 name: Run TFTF FWU
99 projects:
100 - current-parameters: true
101 kill-phase-on: NEVER
102 name: tf-a-ci-gateway
103 predefined-parameters: |-
104 TEST_GROUPS=tftf-l2-fwu
105 property-file: tf-a-tests-env.param
106 - multijob:
107 condition: COMPLETED
108 name: Run TFTF
109 projects:
110 - current-parameters: true
111 kill-phase-on: NEVER
112 name: tf-a-ci-gateway
113 predefined-parameters: |-
114 TEST_GROUPS=tftf-l1-fvp tftf-l1-juno tftf-l2-fvp-auxiliary tftf-l2-fvp-dynamiq
115 property-file: tf-a-tests-env.param
116 - current-parameters: true
117 kill-phase-on: NEVER
118 name: tf-a-ci-gateway
119 predefined-parameters: |-
120 TEST_GROUPS=spm-l2-boot-tests spm-l3-boot-tests tf-l2-boot-tests-spm-mm tf-l3-boot-tests-spm-mm
121 property-file: tf-a-tests-env.param
122 - multijob:
123 condition: SUCCESSFUL
124 name: Run TFTF Extensive
125 projects:
126 - current-parameters: true
127 kill-phase-on: FAILURE
128 name: tf-a-ci-gateway
129 predefined-parameters: |-
130 TEST_GROUPS=tftf-l2-extensive-tests-fvp
131 property-file: tf-a-tests-env.param