blob: 326ebb4c097d6a06da6b9ee277956f7f6e27b25c [file] [log] [blame]
Zachary Leaf5a9a2772024-10-15 15:07:23 +01001- job:
2 name: tf-a-main-tfa-next
3 node: docker-amd64-tf-a-jammy
4 project-type: multijob
5 concurrent: true
6 disabled: false
7 description: Main CI job for Trusted Firmware Next
8 properties:
9 - throttle:
10 option: project
11 enabled: true
12 max-total: 5
13 - build-discarder:
14 days-to-keep: 14
15 num-to-keep: 60
16 triggers:
17 - gerrit:
Zachary Leaf5a9a2772024-10-15 15:07:23 +010018 server-name: 'review.trustedfirmware.org'
19 projects:
20 - branches:
21 - branch-compare-type: PLAIN
22 branch-pattern: 'tfa-next'
23 project-compare-type: PLAIN
24 project-pattern: 'TF-A/trusted-firmware-a'
25 trigger-on:
26 - patchset-created-event:
27 exclude-drafts: true
Tomás González43ff3962024-11-12 12:24:33 +000028 exclude-trivial-rebase: false
Zachary Leaf5a9a2772024-10-15 15:07:23 +010029 exclude-no-code-change: true
30 exclude-private: true
31 exclude-wip: true
Zachary Leaf5b81ea02024-10-30 16:36:38 +000032 - comment-added-contains-event:
33 comment-contains-value: '^RUN_CI$'
Zachary Leaf9d17b662024-10-23 14:34:56 +010034 override-votes: true
35 gerrit-build-started-verified-value: 0
36 gerrit-build-successful-verified-value: 1
37 gerrit-build-failed-verified-value: -1
38 gerrit-build-unstable-verified-value: -1
39 gerrit-build-notbuilt-verified-value: 0
Zachary Leaf71632362024-11-04 16:36:05 +000040 # without explicitly setting these values to 0, the plugin will by
41 # default leave Code Review votes
42 gerrit-build-started-codereview-value: 0
43 gerrit-build-successful-codereview-value: 0
44 gerrit-build-failed-codereview-value: 0
45 gerrit-build-unstable-codereview-value: 0
46 gerrit-build-notbuilt-codereview-value: 0
Zachary Leaf9d17b662024-10-23 14:34:56 +010047 silent: false
48 silent-start: false
Zachary Leaf5a9a2772024-10-15 15:07:23 +010049 parameters:
50 # GERRIT_{PROJECT,BRANCH,REFSPEC} are set when triggered by a Gerrit
51 # patchset - defaults below are for manual triggers
52 - string:
53 name: GERRIT_PROJECT
54 default: 'TF-A/trusted-firmware-a'
55 - string:
56 name: GERRIT_BRANCH
57 default: 'refs/heads/tfa-next'
58 - string:
59 name: GERRIT_REFSPEC
60 default: '+refs/heads/tfa-next:refs/remotes/origin/tfa-next'
61 description: |
62 'e.g. refs/changes/13/31138/1'
63 - string:
64 name: TF_GERRIT_REFSPEC
65 default: ${GERRIT_REFSPEC}
66 description: |
67 'do-not-amend: used by scripts/clone.sh to fetch the correct Gerrit patchset - use GERRIT_REFSPEC instead'
68 - string:
69 name: TFTF_GERRIT_PROJECT
70 default: 'TF-A/tf-a-tests'
71 - string:
72 name: TFTF_GERRIT_BRANCH
73 default: 'refs/heads/master'
74 - string:
75 name: TFTF_GERRIT_REFSPEC
76 default: '+refs/heads/master:refs/remotes/origin/master'
77 - string:
78 name: CI_REFSPEC
79 default: '+refs/heads/tfa-next:refs/remotes/origin/tfa-next'
80 description: |
Zachary Leaf9d17b662024-10-23 14:34:56 +010081 'Refs to fetch for the tf-a-ci-scripts repo e.g. refs/changes/13/31138/1'
Zachary Leaf5a9a2772024-10-15 15:07:23 +010082 - string:
Saheer Babub495f032025-01-21 23:01:11 +000083 name: JOBS_REFSPEC
84 default: 'refs/heads/master'
85 description: |
86 tf-a-job-configs refspec to use. The master branch is used by default.
87 - string:
Zachary Leaf5a9a2772024-10-15 15:07:23 +010088 name: SHARE_FOLDER
Zachary Leaf65d20a02024-10-22 09:25:47 +010089 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
Zachary Leaf5a9a2772024-10-15 15:07:23 +010090 description: 'Folder containing shared repositories for downstream pipeline jobs'
91 - string:
92 name: CLONE_REPOS
93 default: "tf-a-ci-scripts,trusted-firmware-a"
94 description: |
95 Optional arg to clone only specific projects from default list (tf-a-ci-scripts,trusted-firmware-a,tf-a-tests,spm,tf-m-tests,tf-m-extras)
96 - string:
97 name: FETCH_SSH
98 default: 1
99 description: |
100 Fetch branches with authenticated SSH instead of anonymous HTTPS
101 wrappers:
102 - credentials-binding:
103 - ssh-user-private-key:
104 credential-id: TFA_CI_BOT_USER_SSH_KEY
105 key-file-variable: CI_BOT_KEY
106 username-variable: CI_BOT_USERNAME
107 passphrase-variable: ''
108 - workspace-cleanup
109 - timestamps
110 builders:
111 - shell:
112 !include-raw: scripts/clone.sh
113 - shell: |
114 #!/bin/bash
115 set -e
116 cat << EOF > tf-a-env.param
117 TF_GERRIT_PROJECT=${GERRIT_PROJECT}
118 TF_GERRIT_BRANCH=${GERRIT_BRANCH}
119 TF_GERRIT_REFSPEC=${GERRIT_REFSPEC}
120 SHARE_FOLDER=${SHARE_FOLDER}
121 EOF
122 - multijob:
Zachary Leaf28bc0012024-11-05 12:53:48 +0000123 name: Lint commit messages
124 condition: COMPLETED
125 projects:
126 - name: tf-a-commitlint-tfa-next
127 kill-phase-on: NEVER
128 predefined-parameters: |
129 REFSPEC=${GERRIT_REFSPEC}
130 REFNAME=${GERRIT_PATCHSET_REVISION}
131 REFNAME_BASE=origin/${GERRIT_BRANCH}
132 - multijob:
Zachary Leaf09235922024-11-01 17:52:16 +0000133 name: Code formatting, static checks and lints
134 condition: COMPLETED
135 projects:
136 - name: tf-a-static-tfa-next
137 current-parameters: true
138 kill-phase-on: NEVER
139 property-file: tf-a-env.param
140 - multijob:
Zachary Leaf5a9a2772024-10-15 15:07:23 +0100141 name: Build Trusted Firmware
142 condition: COMPLETED
143 projects:
144 - name: tf-a-ci-gateway-tfa-next
145 alias: tf-next-build
146 current-parameters: true
147 kill-phase-on: NEVER
148 predefined-parameters: |
149 TEST_GROUPS=tf-next-build
150 property-file: tf-a-env.param