blob: 297e542347149ec4a45e4a27bcd571dcfb93bc7f [file] [log] [blame]
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -05001- job:
Leonardo Sandovalffaee982021-11-11 10:27:57 -06002 name: tf-a-gerrit-tforg-l1
Paul Sokolovsky370f1f52023-06-05 21:57:47 +03003 node: docker-amd64-tf-a-jammy
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -05004 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:
Chris Kay675db4f2025-06-24 14:14:34 +010011 - throttle:
12 option: project
13 enabled: true
14 max-total: 5
15 - build-discarder:
16 days-to-keep: 15
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050017 parameters:
Chris Kay675db4f2025-06-24 14:14:34 +010018 - string:
19 name: GERRIT_PROJECT
20 default: TF-A/trusted-firmware-a
21 - string:
22 name: GERRIT_BRANCH
23 default: refs/heads/integration
24 - string:
25 name: GERRIT_REFSPEC
26 default: +refs/heads/integration:refs/remotes/origin/integration
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/master
43 - string:
44 name: TFTF_GERRIT_REFSPEC
45 default: +refs/heads/master:refs/remotes/origin/master
46 - string:
47 name: SPM_REFSPEC
48 default: +refs/heads/master:refs/remotes/origin/master
49 description: |
50 SPM(Hafnium) refspec to use. The master branch is used by default.
51 - string:
52 name: RMM_REFSPEC
53 default: +refs/heads/main:refs/remotes/origin/main
54 description: |
55 tf-rmm refspec to use. The main branch is used by default.
56 - string:
57 name: CI_REFSPEC
58 default: +refs/heads/master:refs/remotes/origin/master
59 - string:
60 name: JOBS_REFSPEC
61 default: refs/heads/master
62 description: |
63 tf-a-job-configs refspec to use. The master branch is used by default.
64 - string:
65 name: MBEDTLS_URL
66 default: https://github.com/Mbed-TLS/mbedtls/archive/mbedtls-3.6.3.tar.gz
67 - string:
68 name: SHARE_FOLDER
69 default: /srv/shared/${JOB_NAME}/${BUILD_NUMBER}
70 description: Folder containing shared repositories for downstream pipeline jobs
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050071 wrappers:
72 - credentials-binding:
73 - ssh-user-private-key:
74 credential-id: TFA_CI_BOT_USER_SSH_KEY
75 key-file-variable: CI_BOT_KEY
76 username-variable: CI_BOT_USERNAME
Chris Kay675db4f2025-06-24 14:14:34 +010077 passphrase-variable: ""
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050078 - workspace-cleanup
79 - timestamps
80 builders:
Chris Kay675db4f2025-06-24 14:14:34 +010081 - shell: !include-raw: scripts/clone.sh
82 - shell: |
83 #!/bin/bash
84 set -e
85 cat << EOF > env.param
86 GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER}
87 GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER}
88 GERRIT_HOST=${GERRIT_HOST}
89 QA_SERVER_PROJECT=${JOB_NAME}
90 QA_SERVER_VERSION=${BUILD_NUMBER}
91 TF_GERRIT_PROJECT=${GERRIT_PROJECT}
92 TF_GERRIT_BRANCH=${GERRIT_BRANCH}
93 TF_GERRIT_REFSPEC=${GERRIT_REFSPEC}
94 SHARE_FOLDER=${SHARE_FOLDER}
95 EOF
96 - multijob:
97 name: Lint commit messages
98 condition: COMPLETED
99 projects:
100 - name: tf-a-commitlint
101 kill-phase-on: NEVER
102 predefined-parameters: |
103 URL=https://review.trustedfirmware.org/${GERRIT_PROJECT}
104 REFSPEC=${GERRIT_REFSPEC}
105 REFNAME=${GERRIT_PATCHSET_REVISION}
106 REFNAME_BASE=origin/${GERRIT_BRANCH}
107 - multijob:
108 condition: COMPLETED
109 name: Build and static checks
110 projects:
111 - kill-phase-on: NEVER
112 name: tf-a-static-checks
113 current-parameters: true
114 predefined-parameters: |-
115 TEST_GROUPS=tf-l2-scan-build
116 ENABLE_STATIC_CHECK=true
117 property-file: env.param
118 - multijob:
119 condition: COMPLETED
120 name: Run doc build check
121 projects:
122 - kill-phase-on: NEVER
123 name: tf-a-ci-gateway
124 current-parameters: true
125 predefined-parameters: |
126 TEST_GROUPS=tf-l1-check-docs
127 property-file: env.param
128 - multijob:
129 condition: COMPLETED
130 name: Run build tests
131 projects:
132 - kill-phase-on: NEVER
133 name: tf-a-ci-gateway
134 current-parameters: true
135 predefined-parameters: |
136 TEST_GROUPS=tf-l1-build-fvp tf-l1-build-juno tf-l1-build-clang tf-l1-build-plat spm-l1-build-tests
137 property-file: env.param
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500138 triggers:
Chris Kay675db4f2025-06-24 14:14:34 +0100139 - gerrit:
140 server-name: review.trustedfirmware.org
141 trigger-on:
142 - comment-added-event:
143 approval-category: Allow-CI
144 approval-value: 1
145 projects:
146 - project-compare-type: PLAIN
147 project-pattern: TF-A/trusted-firmware-a
148 branches:
149 - branch-compare-type: PLAIN
150 branch-pattern: integration
151 override-votes: true
152 gerrit-build-started-verified-value: 0
153 gerrit-build-successful-verified-value: 1
154 gerrit-build-failed-verified-value: -1
155 gerrit-build-unstable-verified-value: -1
156 gerrit-build-notbuilt-verified-value: 0
157 gerrit-build-started-codereview-value: 0
158 gerrit-build-successful-codereview-value: 0
159 gerrit-build-failed-codereview-value: 0
160 gerrit-build-unstable-codereview-value: 0
161 gerrit-build-notbuilt-codereview-value: 0