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 name: build-perf-timeout
147 # This wrapper is used for all jobs that require no-activity timeouts
148 name: fdio-infra-wrappers-non-activity-timeout
152 timeout: '{build-timeout}'
155 - ssh-agent-credentials:
157 - 'jenkins-gerrit-credentials'
164 # This wrapper is required for all jobs as it configures the wrappers
165 # needed by the fd.io infra.
166 name: fdio-infra-wrappers
170 timeout: '{build-timeout}'
171 timeout-var: 'BUILD_TIMEOUT'
174 - ssh-agent-credentials:
176 - 'jenkins-gerrit-credentials'
183 # This wrapper is used for all performence jobs that require timeouts
184 name: fdio-infra-wrappers-build-perf-timeout
188 timeout: '{build-perf-timeout}'
191 - ssh-agent-credentials:
193 - 'jenkins-gerrit-credentials'
201 name: gerrit-trigger-patch-submitted
204 server-name: 'Primary'
206 - patchset-created-event:
207 exclude-drafts: 'false'
208 exclude-trivial-rebase: 'false'
209 exclude-no-code-change: 'false'
210 - draft-published-event
211 - comment-added-contains-event:
212 comment-contains-value: 'recheck'
213 - comment-added-contains-event:
214 comment-contains-value: 'reverify'
216 - project-compare-type: 'ANT'
217 project-pattern: '{name}'
219 - branch-compare-type: 'ANT'
220 branch-pattern: '**/{branch}'
223 name: gerrit-trigger-manually-triggered
226 server-name: 'Primary'
228 - comment-added-contains-event:
229 comment-contains-value: '{comment-trigger-value}'
231 - project-compare-type: 'ANT'
232 project-pattern: '{name}'
234 - branch-compare-type: 'ANT'
235 branch-pattern: '**/{branch}'
238 name: gerrit-trigger-patch-merged
241 server-name: 'Primary'
243 - change-merged-event
244 - comment-added-contains-event:
245 comment-contains-value: 'remerge'
247 - project-compare-type: 'ANT'
248 project-pattern: '{name}'
250 - branch-compare-type: 'ANT'
251 branch-pattern: '**/{branch}'
252 # Force Jenkins always vote the values it should already have voted
253 # during the prior verify phase
255 gerrit-build-started-verified-value: 1
256 gerrit-build-successful-verified-value: 1
257 gerrit-build-failed-verified-value: 1
258 gerrit-build-unstable-verified-value: 1
259 gerrit-build-notbuilt-verified-value: 1
260 gerrit-build-started-codereview-value: 0
261 gerrit-build-successful-codereview-value: 0
262 gerrit-build-failed-codereview-value: 0
263 gerrit-build-unstable-codereview-value: 0
264 gerrit-build-notbuilt-codereview-value: 0
268 name: archive-artifacts
271 artifacts: '{artifacts}'
277 name: email-notification
280 recipients: 'nobody@projectrotterdam.info'
282 content-type: default
283 subject: '{email-prefix} $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS!'
285 $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS:
287 Check console output at $BUILD_URL to view the results.
298 exec-pattern: '**/**.exec'
299 class-pattern: '**/classes'
300 source-pattern: '**/src/main/java'
301 exclusion-pattern: '**/gen**,**/generated-sources/**,**/yang-gen**,**/pax/**'
315 output-path: '{output-path}'
319 name: fdio-infra-shiplogs
320 # To archive things, the job will need to create an "archives" directory in
321 # the workspace and this macro will handle copying the contents of the
322 # archives directory.
324 # Uses the build parameter ARCHIVE_ARTIFACTS if not empty to find files to
325 # archive. You can pass globstar patterns for example "**/*.xml **/*.log" as
326 # the archive pattern. This is a space separated list of files to archive.
328 # Also ensure that the workspace is cleaned up at the end of the build.
332 - shell: !include-raw: include-raw-deploy-archives.sh
334 maven-version: '{maven-version}'
335 pom: '.archives/deploy-archives.xml'
336 goals: 'clean deploy -V -B -q -Dmaven.repo.local=/tmp/r'
337 settings: 'jenkins-log-archives-settings'
339 global-settings: 'global-settings'
340 global-settings-type: cfp
341 - description-setter:
342 regexp: '^Build logs: .*'
343 script-only-if-succeeded: false
344 script-only-if-failed: false
345 mark-unstable-if-failed: true
350 name: retry-build-on-builder-error
357 name: ci-management-check-unicode
360 $WORKSPACE/scripts/check-unicode.sh jjb/
363 name: provide-maven-settings
365 - config-file-provider:
367 - file-id: '{global-settings-file}'
368 variable: 'GLOBAL_SETTINGS_FILE'
369 - file-id: '{settings-file}'
370 variable: 'SETTINGS_FILE'
373 name: fdio-infra-properties
376 days-to-keep: '{build-days-to-keep}'
377 num-to-keep: '{build-num-to-keep}'
381 name: packer-validate
383 - config-file-provider:
385 - file-id: 'packer-cloud-env'
390 varfiles="../packer/vars/*"
391 templates="../packer/templates/*"
392 provision="../packer/provision/*.sh"
393 for v in $varfiles; do
394 [[ "${v##*/}" =~ ^(cloud-env.*)$ ]] && continue
395 for t in $templates; do
396 export PACKER_LOG="yes" && \
397 export PACKER_LOG_PATH="packer-validate-${v##*/}-${t##*/}.log" && \
398 packer.io validate -var-file=$CLOUDENV \
400 if [ $? -ne 0 ]; then
405 for p in $provision; do
406 /bin/bash -n $p > provision-validate-${p##*/}.log 2>&1
407 if [ $? -ne 0 ]; then
416 - config-file-provider:
418 - file-id: 'packer-cloud-env'
423 export PACKER_LOG="yes" && \
424 export PACKER_LOG_PATH="packer-build.log" && \
425 packer.io build -var-file=$CLOUDENV \
426 -var-file=../packer/vars/{platform}.json \
427 ../packer/templates/{template}.json