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-manually-triggered
201 server-name: 'Primary'
203 - comment-added-contains-event:
204 comment-contains-value: '{comment-trigger-value}'
206 - project-compare-type: 'ANT'
207 project-pattern: '{name}'
209 - branch-compare-type: 'ANT'
210 branch-pattern: '**/{branch}'
213 name: gerrit-trigger-patch-merged
216 server-name: 'Primary'
218 - change-merged-event
219 - comment-added-contains-event:
220 comment-contains-value: 'remerge'
222 - project-compare-type: 'ANT'
223 project-pattern: '{name}'
225 - branch-compare-type: 'ANT'
226 branch-pattern: '**/{branch}'
227 # Force Jenkins always vote the values it should already have voted
228 # during the prior verify phase
230 gerrit-build-started-verified-value: 1
231 gerrit-build-successful-verified-value: 1
232 gerrit-build-failed-verified-value: 1
233 gerrit-build-unstable-verified-value: 1
234 gerrit-build-notbuilt-verified-value: 1
235 gerrit-build-started-codereview-value: 0
236 gerrit-build-successful-codereview-value: 0
237 gerrit-build-failed-codereview-value: 0
238 gerrit-build-unstable-codereview-value: 0
239 gerrit-build-notbuilt-codereview-value: 0
243 name: archive-artifacts
246 artifacts: '{artifacts}'
252 name: email-notification
255 recipients: 'nobody@projectrotterdam.info'
257 content-type: default
258 subject: '{email-prefix} $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS!'
260 $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS:
262 Check console output at $BUILD_URL to view the results.
273 exec-pattern: '**/**.exec'
274 class-pattern: '**/classes'
275 source-pattern: '**/src/main/java'
276 exclusion-pattern: '**/gen**,**/generated-sources/**,**/yang-gen**,**/pax/**'
290 output-path: '{output-path}'
294 name: fdio-infra-shiplogs
295 # To archive things, the job will need to create an "archives" directory in
296 # the workspace and this macro will handle copying the contents of the
297 # archives directory.
299 # Uses the build parameter ARCHIVE_ARTIFACTS if not empty to find files to
300 # archive. You can pass globstar patterns for example "**/*.xml **/*.log" as
301 # the archive pattern. This is a space separated list of files to archive.
303 # Also ensure that the workspace is cleaned up at the end of the build.
307 - shell: !include-raw: include-raw-deploy-archives.sh
309 maven-version: '{maven-version}'
310 pom: '.archives/deploy-archives.xml'
311 goals: 'clean deploy -V -B -q -Dmaven.repo.local=/tmp/r'
312 settings: 'jenkins-log-archives-settings'
314 global-settings: 'global-settings'
315 global-settings-type: cfp
316 - description-setter:
317 regexp: '^Build logs: .*'
318 script-only-if-succeeded: false
319 script-only-if-failed: false
320 mark-unstable-if-failed: true
326 name: ci-management-check-unicode
329 $WORKSPACE/scripts/check-unicode.sh jjb/
332 name: provide-maven-settings
334 - config-file-provider:
336 - file-id: '{global-settings-file}'
337 variable: 'GLOBAL_SETTINGS_FILE'
338 - file-id: '{settings-file}'
339 variable: 'SETTINGS_FILE'
342 name: fdio-infra-properties
345 days-to-keep: '{build-days-to-keep}'
346 num-to-keep: '{build-num-to-keep}'
350 name: packer-validate
352 - config-file-provider:
354 - file-id: 'packer-cloud-env'
359 varfiles="../packer/vars/*"
360 templates="../packer/templates/*"
361 provision="../packer/provision/*.sh"
362 for v in $varfiles; do
363 [[ "${v##*/}" =~ ^(cloud-env.*)$ ]] && continue
364 for t in $templates; do
365 export PACKER_LOG="yes" && \
366 export PACKER_LOG_PATH="packer-validate-${v##*/}-${t##*/}.log" && \
367 packer.io validate -var-file=$CLOUDENV \
369 if [ $? -ne 0 ]; then
374 for p in $provision; do
375 /bin/bash -n $p > provision-validate-${p##*/}.log 2>&1
376 if [ $? -ne 0 ]; then
385 - config-file-provider:
387 - file-id: 'packer-cloud-env'
392 export PACKER_LOG="yes" && \
393 export PACKER_LOG_PATH="packer-build.log" && \
394 packer.io build -var-file=$CLOUDENV \
395 -var-file=../packer/vars/{platform}.json \
396 ../packer/templates/{template}.json