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