blob: 05998abafde95593f0f42ef7c806e9d97d745194 [file] [log] [blame]
Arthur She41aa9422025-02-12 14:10:48 -08001- job:
2 name: tf-a-lts2.12-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 patch approved with the Allow-CI+1
9 label on review.trustedfirmware.org.
10 properties:
11 - throttle:
12 option: project
13 enabled: true
14 max-total: 5
15 - build-discarder:
16 days-to-keep: 14
17 parameters:
18 - string:
19 name: GERRIT_PROJECT
20 default: 'TF-A/trusted-firmware-a'
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_REFSPEC
35 default: ${GERRIT_REFSPEC}
36 description: 'Parameter only used by the clone script'
37 - string:
38 name: TFTF_GERRIT_PROJECT
39 default: 'TF-A/tf-a-tests'
40 - string:
41 name: TFTF_GERRIT_BRANCH
42 default: 'refs/heads/lts-v2.12'
43 - string:
44 name: TFTF_GERRIT_REFSPEC
45 default: '+refs/heads/lts-v2.12:refs/remotes/origin/lts-v2.12'
46 - string:
47 name: SPM_REFSPEC
48 default: 'lts-v2.12'
49 description: |
50 SPM(Hafnium) refspec to use. The lts-v2.12 branch is used by default.
51 - string:
52 name: CI_REFSPEC
53 default: '+refs/heads/lts-v2.12:refs/remotes/origin/lts-v2.12'
54 - string:
55 name: JOBS_REFSPEC
56 default: 'refs/heads/master'
57 description: |
58 tf-a-job-configs refspec to use. The master branch is used by default.
59 - string:
60 name: MBEDTLS_URL
Yann Gautier25e15672025-05-16 17:27:03 +020061 default: 'https://github.com/Mbed-TLS/mbedtls/archive/mbedtls-3.6.3.tar.gz'
Arthur She41aa9422025-02-12 14:10:48 -080062 - string:
63 name: SHARE_FOLDER
64 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
65 description: 'Folder containing shared repositories for downstream pipeline jobs'
66 wrappers:
67 - credentials-binding:
68 - ssh-user-private-key:
69 credential-id: TFA_CI_BOT_USER_SSH_KEY
70 key-file-variable: CI_BOT_KEY
71 username-variable: CI_BOT_USERNAME
72 passphrase-variable: ''
73 - workspace-cleanup
74 - timestamps
75 builders:
76 - shell:
77 !include-raw: scripts/clone.sh
78 - shell: |
79 #!/bin/bash
80 set -e
81 cat << EOF > env.param
82 GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER}
83 GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER}
84 GERRIT_HOST=${GERRIT_HOST}
85 QA_SERVER_PROJECT=${JOB_NAME}
86 QA_SERVER_VERSION=${BUILD_NUMBER}
87 TF_GERRIT_PROJECT=${GERRIT_PROJECT}
88 TF_GERRIT_BRANCH=${GERRIT_BRANCH}
89 TF_GERRIT_REFSPEC=${GERRIT_REFSPEC}
90 SHARE_FOLDER=${SHARE_FOLDER}
91 EOF
92 - multijob:
93 name: Lint commit messages
94 condition: COMPLETED
95 projects:
96 - name: tf-a-commitlint
97 kill-phase-on: NEVER
98 predefined-parameters: |
99 URL=https://review.trustedfirmware.org/${GERRIT_PROJECT}
100 REFSPEC=${GERRIT_REFSPEC}
101 REFNAME=${GERRIT_PATCHSET_REVISION}
102 REFNAME_BASE=origin/${GERRIT_BRANCH}
103 - multijob:
104 condition: COMPLETED
105 name: Build and static checks
106 projects:
107 - kill-phase-on: NEVER
108 name: tf-a-static-checks
109 current-parameters: true
110 predefined-parameters: |-
111 TEST_GROUPS=tf-l2-scan-build
112 ENABLE_STATIC_CHECK=true
113 property-file: env.param
114 - multijob:
115 condition: COMPLETED
116 name: Run doc build check
117 projects:
118 - kill-phase-on: NEVER
119 name: tf-a-lts2.12-ci-gateway
120 current-parameters: true
121 predefined-parameters: |
122 TEST_GROUPS=tf-l1-check-docs
123 property-file: env.param
124 - multijob:
125 condition: COMPLETED
126 name: Run build tests
127 projects:
128 - kill-phase-on: NEVER
129 name: tf-a-lts2.12-ci-gateway
130 current-parameters: true
131 predefined-parameters: |
132 TEST_GROUPS=tf-l1-build-fvp tf-l1-build-juno tf-l1-build-clang tf-l1-build-plat spm-l1-build-tests
133 property-file: env.param
134 triggers:
135 - gerrit:
136 server-name: review.trustedfirmware.org
137 trigger-on:
138 - comment-added-event:
139 approval-category: "Allow-CI"
140 approval-value: 1
141 projects:
142 - project-compare-type: PLAIN
Saheer Babuad04bf42025-03-06 17:25:52 +0000143 project-pattern: next/TF-A/trusted-firmware-a
Arthur She41aa9422025-02-12 14:10:48 -0800144 branches:
145 - branch-compare-type: PLAIN
Saheer Babuad04bf42025-03-06 17:25:52 +0000146 branch-pattern: openci-migration-lts-v2.12
Arthur She41aa9422025-02-12 14:10:48 -0800147 override-votes: true
148 gerrit-build-started-verified-value: 0
149 gerrit-build-successful-verified-value: 1
150 gerrit-build-failed-verified-value: -1
151 gerrit-build-unstable-verified-value: -1
152 gerrit-build-notbuilt-verified-value: 0
153 gerrit-build-started-codereview-value: 0
154 gerrit-build-successful-codereview-value: 0
155 gerrit-build-failed-codereview-value: 0
156 gerrit-build-unstable-codereview-value: 0
157 gerrit-build-notbuilt-codereview-value: 0