blob: 573b5a85555e55e98664b3231c8487a22e87192a [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.
4 node: docker-amd64-tf-a-bionic
5 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
25 default: "refs/heads/master"
26 description: "Git project branch for Trusted Firmware-A."
27 - string:
28 name: TF_GERRIT_REFSPEC
29 default: "+refs/heads/master:refs/remotes/origin/master"
30 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."
51 publishers:
52 - slack:
53 notify-unstable: True
54 notify-failure: True
55 notify-repeated-failure: True
56 notify-back-to-normal: True
57 room: "#trusted-firmware-a-ci-info"
58 triggers:
59 - timed: H H(0-6) * * 1-5
60 wrappers:
61 - credentials-binding:
62 - ssh-user-private-key:
63 credential-id: TFA_CI_BOT_USER_SSH_KEY
64 key-file-variable: CI_BOT_KEY
65 username-variable: CI_BOT_USERNAME
66 passphrase-variable: ""
67 - workspace-cleanup
68 - timestamps
69 builders:
70 - shell:
71 !include-raw: scripts/clone.sh
72 - 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
90 predefined-parameters: |-
91 REPO_UNDER_TEST=trusted-firmware-tf
92 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
100 predefined-parameters: |-
101 TEST_GROUPS=tftf-l1-build
102 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
110 predefined-parameters: |-
111 TEST_GROUPS=tftf-l2-fwu
112 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
120 predefined-parameters: |-
121 TEST_GROUPS=tftf-l1-fvp tftf-l1-juno tftf-l2-fvp-auxiliary tftf-l2-fvp-dynamiq
122 property-file: tf-a-tests-env.param
123 - current-parameters: true
124 kill-phase-on: NEVER
125 name: tf-a-ci-gateway
126 predefined-parameters: |-
127 TEST_GROUPS=spm-l2-boot-tests spm-l3-boot-tests tf-l2-boot-tests-spm-mm tf-l3-boot-tests-spm-mm
128 property-file: tf-a-tests-env.param
129 - multijob:
130 condition: SUCCESSFUL
131 name: Run TFTF Extensive
132 projects:
133 - current-parameters: true
134 kill-phase-on: FAILURE
135 name: tf-a-ci-gateway
136 predefined-parameters: |-
137 TEST_GROUPS=tftf-l2-extensive-tests-fvp
138 property-file: tf-a-tests-env.param