9 properties-content: "GO_ROOT={go-root}"
10 - shell: !include-raw-escape: ../shell/go-test.sh
16 - lf_go_common: &lf_go_common
19 project-type: freestyle
22 ######################
23 # Default parameters #
24 ######################
29 **/target/**/feature.xml
30 **/target/failsafe-reports/failsafe-summary.xml
31 **/target/surefire-reports/*-output.txt
36 git-url: "$GIT_URL/$PROJECT"
37 github-url: "https://github.com"
39 submodule-recursive: true
41 submodule-disable: false
47 disabled: "{disable-job}"
50 - lf-infra-properties:
51 build-days-to-keep: "{build-days-to-keep}"
54 - lf-infra-parameters:
61 build-timeout: "{build-timeout}"
62 jenkins-ssh-credential: "{jenkins-ssh-credential}"
71 - lf_go_snyk_cli: &lf_go_snyk_cli
74 ######################
75 # Default parameters #
76 ######################
79 build-days-to-keep: 30 # 30 days for troubleshooting purposes
82 git-url: "$GIT_URL/$PROJECT"
83 github-url: "https://github.com"
84 java-version: openjdk11
87 snyk-token-credential-id: snyk-token
88 snyk-org-credential-id: snyk-org
90 submodule-recursive: true
92 submodule-disable: false
95 - comment-added-contains-event:
96 comment-contains-value: '^Patch Set\s+\d+:\s+run-snyk\s*$'
99 - lf-infra-parameters:
104 name: SNYK_CLI_OPTIONS
105 default: "{snyk-cli-options}"
106 description: Additional Snyk CLI commands and options
108 name: ARCHIVE_ARTIFACTS
109 default: "{archive-artifacts}"
110 description: Artifacts to archive to the logs server.
113 - credentials-binding:
115 credential-id: "{snyk-token-credential-id}"
118 credential-id: "{snyk-org-credential-id}"
121 #####################
122 # Job Configuration #
123 #####################
125 disabled: "{disable-job}"
129 - lf-update-java-alternatives:
130 java-version: "{java-version}"
133 - lf-infra-snyk-cli-scanner
136 name: "{project-name}-go-snyk-cli-{stream}"
137 id: gerrit-go-snyk-cli
139 # yamllint disable-line rule:key-duplicates
143 - lf-infra-gerrit-scm:
144 jenkins-ssh-credential: "{jenkins-ssh-credential}"
146 refspec: "$GERRIT_REFSPEC"
147 branch: "$GERRIT_BRANCH"
148 submodule-recursive: "{submodule-recursive}"
149 submodule-timeout: "{submodule-timeout}"
150 submodule-disable: "{submodule-disable}"
151 choosing-strategy: default
154 # Build weekly on Saturdays
157 server-name: "{gerrit-server-name}"
158 trigger-on: "{obj:gerrit_snyk_triggers}"
160 - project-compare-type: ANT
161 project-pattern: "{project}"
163 - branch-compare-type: ANT
164 branch-pattern: "**/{branch}"
172 name: "{project-name}-go-snyk-cli-{stream}"
173 id: github-go-snyk-cli
175 # yamllint disable-line rule:key-duplicates
179 - lf-infra-properties:
180 build-days-to-keep: "{build-days-to-keep}"
182 url: "{github-url}/{github-org}/{project}"
185 - lf-infra-github-scm:
186 url: "{git-clone-url}{github-org}/{project}"
188 branch: "refs/heads/{branch}"
189 submodule-recursive: "{submodule-recursive}"
190 submodule-timeout: "{submodule-timeout}"
191 submodule-disable: "{submodule-disable}"
192 choosing-strategy: default
193 jenkins-ssh-credential: "{jenkins-ssh-credential}"
196 # Build weekly on Saturdays
198 - github-pull-request:
199 trigger-phrase: "^run-snyk$"
200 only-trigger-phrase: true
201 status-context: "SNYK scan"
206 white-list: "{obj:github_pr_allowlist}"
207 admin-list: "{obj:github_pr_admin_list}"
208 white-list-target-branches:
215 - lf_go_verify: &lf_go_verify
220 gerrit_verify_triggers:
221 - patchset-created-event:
223 exclude-trivial-rebase: false
224 exclude-no-code-change: false
225 - draft-published-event
226 - comment-added-contains-event:
227 comment-contains-value: '^Patch Set\s+\d+:\s+(recheck|reverify)\s*$'
229 gerrit_trigger_file_paths:
230 - compare-type: REG_EXP
233 # github_included_regions MUST match gerrit_trigger_file_paths
234 github_included_regions:
242 name: "{project-name}-go-verify-{stream}"
245 # yamllint disable-line rule:key-duplicates
249 - lf-infra-gerrit-scm:
250 jenkins-ssh-credential: "{jenkins-ssh-credential}"
252 refspec: "$GERRIT_REFSPEC"
253 branch: "$GERRIT_BRANCH"
254 submodule-disable: "{submodule-disable}"
255 submodule-recursive: "{submodule-recursive}"
256 submodule-timeout: "{submodule-timeout}"
257 choosing-strategy: gerrit
261 server-name: "{gerrit-server-name}"
262 trigger-on: "{obj:gerrit_verify_triggers}"
264 - project-compare-type: ANT
265 project-pattern: "{project}"
267 - branch-compare-type: ANT
268 branch-pattern: "**/{branch}"
269 file-paths: "{obj:gerrit_trigger_file_paths}"
272 name: "{project-name}-go-verify-{stream}"
275 # yamllint disable-line rule:key-duplicates
280 url: "{github-url}/{github-org}/{project}"
283 - lf-infra-github-scm:
284 url: "{git-clone-url}{github-org}/{project}"
285 refspec: "+refs/pull/*:refs/remotes/origin/pr/*"
287 submodule-recursive: "{submodule-recursive}"
288 submodule-timeout: "{submodule-timeout}"
289 submodule-disable: "{submodule-disable}"
290 choosing-strategy: default
291 jenkins-ssh-credential: "{jenkins-ssh-credential}"
294 - github-pull-request:
295 trigger-phrase: "^(recheck|reverify)$"
296 only-trigger-phrase: true
297 status-context: "Go Verify"
302 white-list: "{obj:github_pr_allowlist}"
303 admin-list: "{obj:github_pr_admin_list}"
304 white-list-target-branches: