blob: eaf04db058e516e2939cd252524e656ee0433d63 [file] [log] [blame]
Paul Sokolovskyfc009812023-05-18 18:26:26 +03001- job:
2 name: tf-a-lts2.8-gerrit-tforg-l1
3 node: docker-amd64-tf-a-bionic
4 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.8'
26 - string:
27 name: GERRIT_REFSPEC
28 default: '+refs/heads/lts-v2.8:refs/remotes/origin/lts-v2.8'
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.8'
45 - string:
46 name: TFTF_GERRIT_REFSPEC
47 default: '+refs/heads/lts-v2.8:refs/remotes/origin/lts-v2.8'
48 - string:
49 name: SPM_REFSPEC
50 default: 'v2.8'
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.8:refs/remotes/origin/lts-v2.8'
56 - string:
57 name: SHARE_FOLDER
58 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
59 description: 'Folder containing shared repositories for downstream pipeline jobs'
60 wrappers:
61 - credentials-binding:
62 - ssh-user-private-key:
63 credential-id: TFA_CI_BOT_USER_SSH_KEY
64 key-file-variable: CI_BOT_KEY
65 username-variable: CI_BOT_USERNAME
66 passphrase-variable: ''
67 - workspace-cleanup
68 - timestamps
69 builders:
70 - shell:
71 !include-raw: scripts/clone.sh
72 - shell: |
73 #!/bin/bash
74 set -e
75 cat << EOF > env.param
76 GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER}
77 GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER}
78 GERRIT_HOST=${GERRIT_HOST}
79 QA_SERVER_PROJECT=${JOB_NAME}
80 QA_SERVER_VERSION=${BUILD_NUMBER}
81 TF_GERRIT_PROJECT=${GERRIT_PROJECT}
82 TF_GERRIT_BRANCH=${GERRIT_BRANCH}
83 TF_GERRIT_REFSPEC=${GERRIT_REFSPEC}
84 SHARE_FOLDER=${SHARE_FOLDER}
85 EOF
86 - multijob:
87 name: Lint commit messages
88 condition: COMPLETED
89 projects:
90 - name: tf-a-commitlint
91 kill-phase-on: NEVER
92 predefined-parameters: |
93 REFSPEC=${GERRIT_REFSPEC}
94 REFNAME=${GERRIT_PATCHSET_REVISION}
95 REFNAME_BASE=origin/${GERRIT_BRANCH}
96 - multijob:
97 condition: COMPLETED
98 name: Build and static checks
99 projects:
100 - kill-phase-on: NEVER
101 name: tf-a-static-checks
102 current-parameters: true
103 predefined-parameters: |-
104 TEST_GROUPS=tf-l2-scan-build
105 ENABLE_STATIC_CHECK=true
106 property-file: env.param
107 - multijob:
108 condition: COMPLETED
109 name: Run doc build check
110 projects:
111 - kill-phase-on: NEVER
112 name: tf-a-ci-gateway
113 current-parameters: true
114 predefined-parameters: |
115 TEST_GROUPS=tf-l1-check-docs
116 property-file: env.param
117 - multijob:
118 condition: COMPLETED
119 name: Run build tests
120 projects:
121 - kill-phase-on: NEVER
122 name: tf-a-ci-gateway
123 current-parameters: true
124 predefined-parameters: |
125 TEST_GROUPS=tf-l1-build-fvp tf-l1-build-juno tf-l1-build-clang tf-l1-build-plat spm-l1-build-tests
126 property-file: env.param
127 triggers:
128 - gerrit:
129 server-name: review.trustedfirmware.org
130 trigger-on:
131 - comment-added-event:
132 approval-category: "Allow-CI"
133 approval-value: 1
134 projects:
135 - project-compare-type: PLAIN
136 project-pattern: TF-A/trusted-firmware-a
137 branches:
138 - branch-compare-type: PLAIN
139 branch-pattern: lts-v2.8
140 override-votes: true
141 gerrit-build-started-verified-value: 0
142 gerrit-build-successful-verified-value: 1
143 gerrit-build-failed-verified-value: -1
144 gerrit-build-unstable-verified-value: -1
145 gerrit-build-notbuilt-verified-value: 0
146 gerrit-build-started-codereview-value: 0
147 gerrit-build-successful-codereview-value: 0
148 gerrit-build-failed-codereview-value: 0
149 gerrit-build-unstable-codereview-value: 0
150 gerrit-build-notbuilt-codereview-value: 0