blob: 7bad70e841eeab52fe6778c330af84bfcffb3020 [file] [log] [blame]
Arthur She41aa9422025-02-12 14:10:48 -08001- job:
2 name: tf-a-lts2.12-tftf-gerrit-tforg-l1
3 node: docker-amd64-tf-a-lts2.12-jammy
4 project-type: multijob
5 concurrent: true
6 disabled: false
7 description: |
8 Job that triggers for every TF-A-Tests patch approved with the Allow-CI+1
9 label on review.trustedfirmware.org.
10 properties:
Chris Kay675db4f2025-06-24 14:14:34 +010011 - throttle:
12 option: project
13 enabled: true
14 max-total: 5
15 - build-discarder:
16 days-to-keep: 14
Arthur She41aa9422025-02-12 14:10:48 -080017 parameters:
Chris Kay675db4f2025-06-24 14:14:34 +010018 - string:
19 name: GERRIT_PROJECT
20 default: TF-A/tf-a-tests
21 - string:
22 name: GERRIT_BRANCH
23 default: refs/heads/lts-v2.12
24 - string:
25 name: GERRIT_REFSPEC
26 default: +refs/heads/lts-v2.12:refs/remotes/origin/lts-v2.12
27 - string:
28 name: GERRIT_PATCHSET_NUMBER
29 default: ""
30 - string:
31 name: GERRIT_CHANGE_NUMBER
32 default: ""
33 - string:
34 name: TF_GERRIT_BRANCH
35 default: refs/heads/lts-v2.12
36 description: Git project branch for Trusted Firmware-A.
37 - string:
38 name: TF_GERRIT_REFSPEC
39 default: +refs/heads/lts-v2.12:refs/remotes/origin/lts-v2.12
40 description: Git refspec for Trusted Firmware-A.
41 - string:
42 name: TFTF_GERRIT_REFSPEC
43 default: ${GERRIT_REFSPEC}
44 description: Parameter only used by the clone script
45 - string:
46 name: SPM_REFSPEC
47 default: lts-v2.12
48 description: |
49 SPM (Hafnium) refspec to use.
50 - string:
51 name: CI_REFSPEC
52 default: +refs/heads/lts-v2.12:refs/remotes/origin/lts-v2.12
53 - string:
54 name: JOBS_REFSPEC
55 default: refs/heads/master
56 description: |
57 tf-a-job-configs refspec to use. The master branch is used by default.
58 - string:
59 name: MBEDTLS_URL
60 default: https://github.com/Mbed-TLS/mbedtls/archive/mbedtls-3.6.3.tar.gz
61 - string:
62 name: SHARE_FOLDER
63 default: /srv/shared/${JOB_NAME}/${BUILD_NUMBER}
64 description: Folder containing shared repositories for downstream pipeline jobs
Arthur She41aa9422025-02-12 14:10:48 -080065 wrappers:
66 - credentials-binding:
67 - ssh-user-private-key:
68 credential-id: TFA_CI_BOT_USER_SSH_KEY
69 key-file-variable: CI_BOT_KEY
70 username-variable: CI_BOT_USERNAME
Chris Kay675db4f2025-06-24 14:14:34 +010071 passphrase-variable: ""
Arthur She41aa9422025-02-12 14:10:48 -080072 - workspace-cleanup
73 - timestamps
74 builders:
Chris Kay675db4f2025-06-24 14:14:34 +010075 - shell: !include-raw: scripts/clone.sh
76 - shell: |
77 #!/bin/bash
78 set -e
79 cat << EOF > env.param
80 GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER}
81 GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER}
82 GERRIT_HOST=${GERRIT_HOST}
Chris Kay675db4f2025-06-24 14:14:34 +010083 TFTF_GERRIT_PROJECT=${GERRIT_PROJECT}
84 TFTF_GERRIT_BRANCH=${GERRIT_BRANCH}
85 TFTF_GERRIT_REFSPEC=${GERRIT_REFSPEC}
86 SHARE_FOLDER=${SHARE_FOLDER}
87 EOF
88 - multijob:
89 condition: COMPLETED
90 name: Build and static checks
91 projects:
92 - kill-phase-on: NEVER
93 name: tf-a-static-checks
94 current-parameters: true
95 predefined-parameters: REPO_UNDER_TEST=tf-a-tests
96 property-file: env.param
97 - multijob:
98 condition: COMPLETED
99 name: Run doc build check
100 projects:
101 - kill-phase-on: NEVER
102 name: tf-a-lts2.12-ci-gateway
103 current-parameters: true
104 predefined-parameters: |
105 TEST_GROUPS=tftf-l1-check-docs
106 property-file: env.param
107 - multijob:
108 condition: COMPLETED
109 name: Build TF-A-Tests
110 projects:
111 - kill-phase-on: NEVER
112 name: tf-a-lts2.12-ci-gateway
113 current-parameters: true
114 predefined-parameters: |
115 TEST_GROUPS=tftf-l1-build
116 property-file: env.param
117 - multijob:
118 condition: COMPLETED
119 name: Basic TF-A-Tests test cases
120 projects:
121 - kill-phase-on: NEVER
122 name: tf-a-lts2.12-ci-gateway
123 current-parameters: true
124 predefined-parameters: |
125 TEST_GROUPS=tftf-l1-fvp
126 property-file: env.param
Arthur She41aa9422025-02-12 14:10:48 -0800127 triggers:
Chris Kay675db4f2025-06-24 14:14:34 +0100128 - gerrit:
129 server-name: review.trustedfirmware.org
130 trigger-on:
131 - comment-added-event:
132 approval-category: Allow-CI
133 approval-value: 1
134 projects:
135 - project-compare-type: PLAIN
136 project-pattern: TF-A/tf-a-tests
137 branches:
138 - branch-compare-type: PLAIN
139 branch-pattern: lts-v2.12
140 override-votes: true
141 gerrit-build-started-verified-value: 0
142 gerrit-build-successful-verified-value: 1
143 gerrit-build-failed-verified-value: -1
144 gerrit-build-unstable-verified-value: -1
145 gerrit-build-notbuilt-verified-value: 0
146 gerrit-build-started-codereview-value: 0
147 gerrit-build-successful-codereview-value: 0
148 gerrit-build-failed-codereview-value: 0
149 gerrit-build-unstable-codereview-value: 0
150 gerrit-build-notbuilt-codereview-value: 0