blob: 24f18895763073b14cadbbaf0e7d94ec398a9b85 [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
28 exclude-trivial-rebase: true
29 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:
83 name: SHARE_FOLDER
Zachary Leaf65d20a02024-10-22 09:25:47 +010084 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
Zachary Leaf5a9a2772024-10-15 15:07:23 +010085 description: 'Folder containing shared repositories for downstream pipeline jobs'
86 - string:
87 name: CLONE_REPOS
88 default: "tf-a-ci-scripts,trusted-firmware-a"
89 description: |
90 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)
91 - string:
92 name: FETCH_SSH
93 default: 1
94 description: |
95 Fetch branches with authenticated SSH instead of anonymous HTTPS
96 wrappers:
97 - credentials-binding:
98 - ssh-user-private-key:
99 credential-id: TFA_CI_BOT_USER_SSH_KEY
100 key-file-variable: CI_BOT_KEY
101 username-variable: CI_BOT_USERNAME
102 passphrase-variable: ''
103 - workspace-cleanup
104 - timestamps
105 builders:
106 - shell:
107 !include-raw: scripts/clone.sh
108 - shell: |
109 #!/bin/bash
110 set -e
111 cat << EOF > tf-a-env.param
112 TF_GERRIT_PROJECT=${GERRIT_PROJECT}
113 TF_GERRIT_BRANCH=${GERRIT_BRANCH}
114 TF_GERRIT_REFSPEC=${GERRIT_REFSPEC}
115 SHARE_FOLDER=${SHARE_FOLDER}
116 EOF
117 - multijob:
Zachary Leaf28bc0012024-11-05 12:53:48 +0000118 name: Lint commit messages
119 condition: COMPLETED
120 projects:
121 - name: tf-a-commitlint-tfa-next
122 kill-phase-on: NEVER
123 predefined-parameters: |
124 REFSPEC=${GERRIT_REFSPEC}
125 REFNAME=${GERRIT_PATCHSET_REVISION}
126 REFNAME_BASE=origin/${GERRIT_BRANCH}
127 - multijob:
Zachary Leaf09235922024-11-01 17:52:16 +0000128 name: Code formatting, static checks and lints
129 condition: COMPLETED
130 projects:
131 - name: tf-a-static-tfa-next
132 current-parameters: true
133 kill-phase-on: NEVER
134 property-file: tf-a-env.param
135 - multijob:
Zachary Leaf5a9a2772024-10-15 15:07:23 +0100136 name: Build Trusted Firmware
137 condition: COMPLETED
138 projects:
139 - name: tf-a-ci-gateway-tfa-next
140 alias: tf-next-build
141 current-parameters: true
142 kill-phase-on: NEVER
143 predefined-parameters: |
144 TEST_GROUPS=tf-next-build
145 property-file: tf-a-env.param