blob: 6ce87f07af9772eccd080426b9624c5f1d66cab9 [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:
Paul Sokolovsky526f4232023-06-05 12:16:46 +030058 name: MBEDTLS_URL
Yann Gautier716b39f2025-01-10 17:37:45 +010059 default: 'https://github.com/Mbed-TLS/mbedtls/archive/mbedtls-3.6.2.tar.gz'
Paul Sokolovsky526f4232023-06-05 12:16:46 +030060 - string:
Paul Sokolovskyfc009812023-05-18 18:26:26 +030061 name: SHARE_FOLDER
Paul Sokolovskyc668f812023-07-27 13:23:32 +030062 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
Paul Sokolovskyfc009812023-05-18 18:26:26 +030063 description: 'Folder containing shared repositories for downstream pipeline jobs'
64 wrappers:
65 - credentials-binding:
66 - ssh-user-private-key:
67 credential-id: TFA_CI_BOT_USER_SSH_KEY
68 key-file-variable: CI_BOT_KEY
69 username-variable: CI_BOT_USERNAME
70 passphrase-variable: ''
71 - workspace-cleanup
72 - timestamps
73 builders:
74 - shell:
75 !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}
83 QA_SERVER_PROJECT=${JOB_NAME}
84 QA_SERVER_VERSION=${BUILD_NUMBER}
85 TF_GERRIT_PROJECT=${GERRIT_PROJECT}
86 TF_GERRIT_BRANCH=${GERRIT_BRANCH}
87 TF_GERRIT_REFSPEC=${GERRIT_REFSPEC}
88 SHARE_FOLDER=${SHARE_FOLDER}
89 EOF
90 - multijob:
91 name: Lint commit messages
92 condition: COMPLETED
93 projects:
94 - name: tf-a-commitlint
95 kill-phase-on: NEVER
96 predefined-parameters: |
Saheer Babuc4b886d2025-01-22 00:31:43 +000097 URL=https://review.trustedfirmware.org/${GERRIT_PROJECT}
Paul Sokolovskyfc009812023-05-18 18:26:26 +030098 REFSPEC=${GERRIT_REFSPEC}
99 REFNAME=${GERRIT_PATCHSET_REVISION}
100 REFNAME_BASE=origin/${GERRIT_BRANCH}
101 - multijob:
102 condition: COMPLETED
103 name: Build and static checks
104 projects:
105 - kill-phase-on: NEVER
106 name: tf-a-static-checks
107 current-parameters: true
108 predefined-parameters: |-
109 TEST_GROUPS=tf-l2-scan-build
110 ENABLE_STATIC_CHECK=true
111 property-file: env.param
112 - multijob:
113 condition: COMPLETED
114 name: Run doc build check
115 projects:
116 - kill-phase-on: NEVER
Paul Sokolovskyfbb010b2023-06-05 11:32:17 +0300117 name: tf-a-lts2.8-ci-gateway
Paul Sokolovskyfc009812023-05-18 18:26:26 +0300118 current-parameters: true
119 predefined-parameters: |
120 TEST_GROUPS=tf-l1-check-docs
121 property-file: env.param
122 - multijob:
123 condition: COMPLETED
124 name: Run build tests
125 projects:
126 - kill-phase-on: NEVER
Paul Sokolovskyfbb010b2023-06-05 11:32:17 +0300127 name: tf-a-lts2.8-ci-gateway
Paul Sokolovskyfc009812023-05-18 18:26:26 +0300128 current-parameters: true
129 predefined-parameters: |
130 TEST_GROUPS=tf-l1-build-fvp tf-l1-build-juno tf-l1-build-clang tf-l1-build-plat spm-l1-build-tests
131 property-file: env.param
132 triggers:
133 - gerrit:
134 server-name: review.trustedfirmware.org
135 trigger-on:
136 - comment-added-event:
137 approval-category: "Allow-CI"
138 approval-value: 1
139 projects:
140 - project-compare-type: PLAIN
141 project-pattern: TF-A/trusted-firmware-a
142 branches:
143 - branch-compare-type: PLAIN
144 branch-pattern: lts-v2.8
145 override-votes: true
146 gerrit-build-started-verified-value: 0
147 gerrit-build-successful-verified-value: 1
148 gerrit-build-failed-verified-value: -1
149 gerrit-build-unstable-verified-value: -1
150 gerrit-build-notbuilt-verified-value: 0
151 gerrit-build-started-codereview-value: 0
152 gerrit-build-successful-codereview-value: 0
153 gerrit-build-failed-codereview-value: 0
154 gerrit-build-unstable-codereview-value: 0
155 gerrit-build-notbuilt-codereview-value: 0