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