blob: e5debb93b2952cd9f92799b008272cc37740cd25 [file] [log] [blame]
Paul Sokolovskyf558c3e2024-02-01 16:22:40 +07001- job:
2 name: tf-a-lts2.10-gerrit-tforg-l1
Paul Sokolovsky6067c522024-02-07 13:48:17 +07003 node: docker-amd64-tf-a-lts2.10-jammy
Paul Sokolovskyf558c3e2024-02-01 16:22:40 +07004 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 - authorization:
18 !include: authorization.yaml.inc
19 parameters:
20 - string:
21 name: GERRIT_PROJECT
22 default: 'TF-A/trusted-firmware-a'
23 - string:
24 name: GERRIT_BRANCH
25 default: 'refs/heads/lts-v2.10'
26 - string:
27 name: GERRIT_REFSPEC
28 default: '+refs/heads/lts-v2.10:refs/remotes/origin/lts-v2.10'
29 - string:
30 name: GERRIT_PATCHSET_NUMBER
31 default: ''
32 - string:
33 name: GERRIT_CHANGE_NUMBER
34 default: ''
35 - string:
36 name: TF_GERRIT_REFSPEC
37 default: ${GERRIT_REFSPEC}
38 description: 'Parameter only used by the clone script'
39 - string:
40 name: TFTF_GERRIT_PROJECT
41 default: 'TF-A/tf-a-tests'
42 - string:
43 name: TFTF_GERRIT_BRANCH
44 default: 'refs/heads/lts-v2.10'
45 - string:
46 name: TFTF_GERRIT_REFSPEC
47 default: '+refs/heads/lts-v2.10:refs/remotes/origin/lts-v2.10'
48 - string:
49 name: SPM_REFSPEC
50 default: 'v2.10'
51 description: |
52 SPM(Hafnium) refspec to use. The master branch is used by default.
53 - string:
54 name: CI_REFSPEC
55 default: '+refs/heads/lts-v2.10:refs/remotes/origin/lts-v2.10'
56 - string:
Saheer Babub495f032025-01-21 23:01:11 +000057 name: JOBS_REFSPEC
58 default: 'refs/heads/master'
59 description: |
60 tf-a-job-configs refspec to use. The master branch is used by default.
61 - string:
Paul Sokolovskyf558c3e2024-02-01 16:22:40 +070062 name: MBEDTLS_URL
Yann Gautier75189582025-01-10 17:37:36 +010063 default: 'https://github.com/Mbed-TLS/mbedtls/archive/mbedtls-3.6.2.tar.gz'
Paul Sokolovskyf558c3e2024-02-01 16:22:40 +070064 - string:
65 name: SHARE_FOLDER
66 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
67 description: 'Folder containing shared repositories for downstream pipeline jobs'
68 wrappers:
69 - credentials-binding:
70 - ssh-user-private-key:
71 credential-id: TFA_CI_BOT_USER_SSH_KEY
72 key-file-variable: CI_BOT_KEY
73 username-variable: CI_BOT_USERNAME
74 passphrase-variable: ''
75 - workspace-cleanup
76 - timestamps
77 builders:
78 - shell:
79 !include-raw: scripts/clone.sh
80 - shell: |
81 #!/bin/bash
82 set -e
83 cat << EOF > env.param
84 GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER}
85 GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER}
86 GERRIT_HOST=${GERRIT_HOST}
87 QA_SERVER_PROJECT=${JOB_NAME}
88 QA_SERVER_VERSION=${BUILD_NUMBER}
89 TF_GERRIT_PROJECT=${GERRIT_PROJECT}
90 TF_GERRIT_BRANCH=${GERRIT_BRANCH}
91 TF_GERRIT_REFSPEC=${GERRIT_REFSPEC}
92 SHARE_FOLDER=${SHARE_FOLDER}
93 EOF
94 - multijob:
95 name: Lint commit messages
96 condition: COMPLETED
97 projects:
98 - name: tf-a-commitlint
99 kill-phase-on: NEVER
100 predefined-parameters: |
Saheer Babuc4b886d2025-01-22 00:31:43 +0000101 URL=https://review.trustedfirmware.org/${GERRIT_PROJECT}
Paul Sokolovskyf558c3e2024-02-01 16:22:40 +0700102 REFSPEC=${GERRIT_REFSPEC}
103 REFNAME=${GERRIT_PATCHSET_REVISION}
104 REFNAME_BASE=origin/${GERRIT_BRANCH}
105 - multijob:
106 condition: COMPLETED
107 name: Build and static checks
108 projects:
109 - kill-phase-on: NEVER
110 name: tf-a-static-checks
111 current-parameters: true
112 predefined-parameters: |-
113 TEST_GROUPS=tf-l2-scan-build
114 ENABLE_STATIC_CHECK=true
115 property-file: env.param
116 - multijob:
117 condition: COMPLETED
118 name: Run doc build check
119 projects:
120 - kill-phase-on: NEVER
121 name: tf-a-lts2.10-ci-gateway
122 current-parameters: true
123 predefined-parameters: |
124 TEST_GROUPS=tf-l1-check-docs
125 property-file: env.param
126 - multijob:
127 condition: COMPLETED
128 name: Run build tests
129 projects:
130 - kill-phase-on: NEVER
131 name: tf-a-lts2.10-ci-gateway
132 current-parameters: true
133 predefined-parameters: |
134 TEST_GROUPS=tf-l1-build-fvp tf-l1-build-juno tf-l1-build-clang tf-l1-build-plat spm-l1-build-tests
135 property-file: env.param
136 triggers:
137 - gerrit:
138 server-name: review.trustedfirmware.org
139 trigger-on:
140 - comment-added-event:
141 approval-category: "Allow-CI"
142 approval-value: 1
143 projects:
144 - project-compare-type: PLAIN
145 project-pattern: TF-A/trusted-firmware-a
146 branches:
147 - branch-compare-type: PLAIN
148 branch-pattern: lts-v2.10
149 override-votes: true
150 gerrit-build-started-verified-value: 0
151 gerrit-build-successful-verified-value: 1
152 gerrit-build-failed-verified-value: -1
153 gerrit-build-unstable-verified-value: -1
154 gerrit-build-notbuilt-verified-value: 0
155 gerrit-build-started-codereview-value: 0
156 gerrit-build-successful-codereview-value: 0
157 gerrit-build-failed-codereview-value: 0
158 gerrit-build-unstable-codereview-value: 0
159 gerrit-build-notbuilt-codereview-value: 0