5 name: project-parameter
10 description: "JJB configured PROJECT parameter to identify a Gerrit project"
13 name: gerrit-parameter
18 description: "JJB configured GERRIT_BRANCH parameter"
21 name: gerrit-project-parameter
26 description: "GERRIT_PROJECT parameter if not given by trigger"
34 description: "OS parameter"
37 name: gerrit-refspec-parameter
42 description: "GERRIT_REFSPEC parameter not given by trigger"
45 name: maven-project-parameter
50 description: 'Maven selector to be used by shell scripts'
57 default: '/w/tools/hudson.tasks.Maven_MavenInstallation/{maven-version}/bin/mvn'
58 description: 'Maven selector to be used by shell scripts'
61 name: repo-name-parameter
65 default: '{repo-name}'
66 description: 'Name of repo to which to publish packaging'
69 name: compiler-parameter
74 description: "CC parameter, can be gnu or clang"
77 name: is-csit-vpp-job-parameter
81 default: '{is-csit-vpp-job}'
82 description: "Parameter is True if this is a CSIT vpp job."
85 name: stream-parameter
90 description: "Stream job parameter to be used in shell scripts."
98 credentials-id: '{credentials-id}'
107 name: gerrit-trigger-scm
110 credentials-id: '{credentials-id}'
114 - 'origin/$GERRIT_BRANCH'
116 choosing-strategy: '{choosing-strategy}'
119 name: zuul-trigger-scm
122 url: '$ZUUL_URL/$ZUUL_PROJECT'
139 # This wrapper is used for all jobs that require no-activity timeouts
140 name: fdio-infra-wrappers-non-activity-timeout
144 timeout: '{build-timeout}'
147 - ssh-agent-credentials:
149 - 'jenkins-gerrit-credentials'
156 # This wrapper is required for all jobs as it configures the wrappers
157 # needed by the fd.io infra.
158 name: fdio-infra-wrappers
162 timeout: '{build-timeout}'
163 timeout-var: 'BUILD_TIMEOUT'
166 - ssh-agent-credentials:
168 - 'jenkins-gerrit-credentials'
176 name: gerrit-trigger-patch-submitted
179 server-name: 'Primary'
181 - patchset-created-event:
182 exclude-drafts: 'false'
183 exclude-trivial-rebase: 'false'
184 exclude-no-code-change: 'false'
185 - draft-published-event
186 - comment-added-contains-event:
187 comment-contains-value: 'recheck'
188 - comment-added-contains-event:
189 comment-contains-value: 'reverify'
191 - project-compare-type: 'ANT'
192 project-pattern: '{name}'
194 - branch-compare-type: 'ANT'
195 branch-pattern: '**/{branch}'
198 name: gerrit-trigger-trivial-patch-submitted
201 server-name: 'Primary'
203 - patchset-created-event:
204 exclude-drafts: 'false'
205 exclude-trivial-rebase: 'true'
206 exclude-no-code-change: 'true'
207 - draft-published-event
208 - comment-added-contains-event:
209 comment-contains-value: 'recheck'
210 - comment-added-contains-event:
211 comment-contains-value: 'reverify'
213 - project-compare-type: 'ANT'
214 project-pattern: '{name}'
216 - branch-compare-type: 'ANT'
217 branch-pattern: '**/{branch}'
220 name: gerrit-trigger-trivial-patch-submitted-skip-vote
223 server-name: 'Primary'
225 - patchset-created-event:
226 exclude-drafts: 'false'
227 exclude-trivial-rebase: 'true'
228 exclude-no-code-change: 'true'
229 - draft-published-event
230 - comment-added-contains-event:
231 comment-contains-value: 'recheck'
232 - comment-added-contains-event:
233 comment-contains-value: 'reverify'
235 - project-compare-type: 'ANT'
236 project-pattern: '{name}'
238 - branch-compare-type: 'ANT'
239 branch-pattern: '**/{branch}'
247 name: gerrit-trigger-manually-triggered
250 server-name: 'Primary'
252 - comment-added-contains-event:
253 comment-contains-value: '{comment-trigger-value}'
255 - project-compare-type: 'ANT'
256 project-pattern: '{name}'
258 - branch-compare-type: 'ANT'
259 branch-pattern: '**/{branch}'
262 name: gerrit-trigger-patch-merged
265 server-name: 'Primary'
267 - change-merged-event
268 - comment-added-contains-event:
269 comment-contains-value: 'remerge'
271 - project-compare-type: 'ANT'
272 project-pattern: '{name}'
274 - branch-compare-type: 'ANT'
275 branch-pattern: '**/{branch}'
276 # Force Jenkins always vote the values it should already have voted
277 # during the prior verify phase
279 gerrit-build-started-verified-value: 1
280 gerrit-build-successful-verified-value: 1
281 gerrit-build-failed-verified-value: 1
282 gerrit-build-unstable-verified-value: 1
283 gerrit-build-notbuilt-verified-value: 1
284 gerrit-build-started-codereview-value: 0
285 gerrit-build-successful-codereview-value: 0
286 gerrit-build-failed-codereview-value: 0
287 gerrit-build-unstable-codereview-value: 0
288 gerrit-build-notbuilt-codereview-value: 0
292 name: archive-artifacts
295 artifacts: '{artifacts}'
301 name: email-notification
304 recipients: 'nobody@projectrotterdam.info'
306 content-type: default
307 subject: '{email-prefix} $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS!'
309 $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS:
311 Check console output at $BUILD_URL to view the results.
322 exec-pattern: '**/**.exec'
323 class-pattern: '**/classes'
324 source-pattern: '**/src/main/java'
325 exclusion-pattern: '**/gen**,**/generated-sources/**,**/yang-gen**,**/pax/**'
339 output-path: '{output-path}'
343 name: fdio-infra-shiplogs
344 # To archive things, the job will need to create an "archives" directory in
345 # the workspace and this macro will handle copying the contents of the
346 # archives directory.
348 # Uses the build parameter ARCHIVE_ARTIFACTS if not empty to find files to
349 # archive. You can pass globstar patterns for example "**/*.xml **/*.log" as
350 # the archive pattern. This is a space separated list of files to archive.
352 # Also ensure that the workspace is cleaned up at the end of the build.
356 - shell: !include-raw: include-raw-deploy-archives.sh
358 maven-version: '{maven-version}'
359 pom: '.archives/deploy-archives.xml'
360 goals: 'clean deploy -V -B -q -Dmaven.repo.local=/tmp/r'
361 settings: 'jenkins-log-archives-settings'
363 global-settings: 'global-settings'
364 global-settings-type: cfp
365 - description-setter:
366 regexp: '^Build logs: .*'
367 script-only-if-succeeded: false
368 script-only-if-failed: false
369 mark-unstable-if-failed: true
374 name: retry-build-on-builder-error
381 name: ci-management-check-unicode
384 $WORKSPACE/scripts/check-unicode.sh jjb/
387 name: provide-maven-settings
389 - config-file-provider:
391 - file-id: '{global-settings-file}'
392 variable: 'GLOBAL_SETTINGS_FILE'
393 - file-id: '{settings-file}'
394 variable: 'SETTINGS_FILE'
397 name: fdio-infra-properties
400 days-to-keep: '{build-days-to-keep}'
401 num-to-keep: '{build-num-to-keep}'
405 name: packer-validate
407 - config-file-provider:
409 - file-id: 'packer-cloud-env'
414 varfiles="../packer/vars/*"
415 templates="../packer/templates/*"
416 provision="../packer/provision/*.sh"
417 for v in $varfiles; do
418 [[ "${v##*/}" =~ ^(cloud-env.*)$ ]] && continue
419 for t in $templates; do
420 export PACKER_LOG="yes" && \
421 export PACKER_LOG_PATH="packer-validate-${v##*/}-${t##*/}.log" && \
422 packer.io validate -var-file=$CLOUDENV \
424 if [ $? -ne 0 ]; then
429 for p in $provision; do
430 /bin/bash -n $p > provision-validate-${p##*/}.log 2>&1
431 if [ $? -ne 0 ]; then
440 - config-file-provider:
442 - file-id: 'packer-cloud-env'
447 export PACKER_LOG="yes" && \
448 export PACKER_LOG_PATH="packer-build.log" && \
449 packer.io build -var-file=$CLOUDENV \
450 -var-file=../packer/vars/{platform}.json \
451 ../packer/templates/{template}.json