1 # REMOVE THIS LINE IF YOU WANT TO CUSTOMIZE ANYTHING BELOW
2 # Otherwise this file will be automatically overwritten by the template
5 # ODL Releng build templates
9 - 'defense4all-verify-{stream}'
10 - 'defense4all-merge-{stream}'
11 - 'defense4all-periodic-{stream}'
12 - 'defense4all-distribution-{stream}'
13 - 'defense4all-integration-{stream}'
15 - 'defense4all-clm-{stream}'
16 - 'defense4all-validate-autorelease-{stream}'
19 # stream: release stream (eg. stable-lithium or beryllium)
20 # branch: git branch (eg. stable/lithium or master)
27 disable_autorelease: True
29 branch: 'stable/beryllium'
33 disable_autorelease: True
35 branch: 'stable/lithium'
39 disable_autorelease: True
41 branch: 'stable/helium'
45 disable_autorelease: True
47 project: 'defense4all'
49 # For the Job templates below replace instances of:
50 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
51 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
52 # MAVEN_GOALS with your maven goals to build
53 # MAVEN_OPTS with your maven options to build
56 name: 'defense4all-verify-{stream}'
58 # Job template for ODL verify jobs
60 # The purpose of this job template is to setup a ODL verify job
63 # stream: release stream (eg. stable-lithium or beryllium)
64 # branch: git branch (eg. stable/lithium or master)
81 daysToKeep: '{build-days-to-keep}'
82 numToKeep: '{build-num-to-keep}'
83 artifactDaysToKeep: '{build-artifact-days-to-keep}'
84 artifactNumToKeep: '{build-artifact-num-to-keep}'
91 - gerrit-refspec-parameter:
92 refspec: 'refs/heads/{branch}'
96 credentials-id: '{ssh-credentials}'
97 refspec: '$GERRIT_REFSPEC'
98 choosing-strategy: 'gerrit'
102 - ssh-agent-credentials:
104 - '{ssh-credentials}'
107 - gerrit-trigger-patch-submitted:
112 - wipe-org-opendaylight-repo
113 - jacoco-nojava-workaround
114 - provide-maven-settings:
115 global-settings-file: '{odl-global-settings}'
116 settings-file: '{defense4all-settings}'
118 maven-version: '{mvn33}'
120 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dstream={stream}'
122 - '-Xmx1024m -XX:MaxPermSize=256m'
123 settings: '{defense4all-settings}'
124 global-settings: '{odl-global-settings}'
128 - email-notification:
129 email-prefix: '[defense4all]'
133 name: 'defense4all-merge-{stream}'
135 # Job template for ODL merge jobs
137 # The purpose of this job template is to setup a ODL merge job
138 # and deploy artifacts to Nexus.
140 # Required Variables:
141 # stream: release stream (eg. stable-lithium or beryllium)
142 # branch: git branch (eg. stable/lithium or master)
149 daysToKeep: '{build-days-to-keep}'
150 numToKeep: '{build-num-to-keep}'
151 artifactDaysToKeep: '{build-artifact-days-to-keep}'
152 artifactNumToKeep: '{build-artifact-num-to-keep}'
159 - gerrit-refspec-parameter:
160 refspec: 'refs/heads/{branch}'
163 - gerrit-trigger-scm:
164 credentials-id: '{ssh-credentials}'
166 choosing-strategy: 'default'
170 - ssh-agent-credentials:
172 - '{ssh-credentials}'
176 - gerrit-trigger-patch-merged:
181 - wipe-org-opendaylight-repo
182 - jacoco-nojava-workaround
183 - provide-maven-settings:
184 global-settings-file: '{odl-global-settings}'
185 settings-file: '{defense4all-settings}'
188 maven-name: '{mvn33}'
189 root-pom: 'dfapp/pom.xml'
190 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dmerge -Dstream={stream}'
191 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
192 settings: '{defense4all-settings}'
193 global-settings: '{odl-global-settings}'
194 post-step-run-condition: UNSTABLE
198 condition-kind: file-exists
199 condition-filename: deploy-site.xml
200 condition-basedir: workspace
202 # The strategy here is intentional to run Maven site:deploy twice
203 # once using regular pom.xml to produce a staged-site which is
204 # then used by deploy-site.xml to push to Nexus. This is a
205 # workaround to Maven Site's default linking code which creates
206 # incorrect URLs for sites due to auto-detection assuming your
207 # project is configured in a certain way which ODL is not.
210 maven-version: '{mvn33}'
212 goals: 'site:deploy -Dstream={stream}'
215 settings: '{defense4all-settings}'
216 global-settings: '{odl-global-settings}'
218 maven-version: '{mvn33}'
220 goals: 'site:deploy -Dstream={stream}'
223 settings: '{defense4all-settings}'
224 global-settings: '{odl-global-settings}'
231 artifacts: '**/target/surefire-reports/*-output.txt, '
232 - email-notification:
233 email-prefix: '[defense4all]'
237 deploy-unstable: false
241 name: 'defense4all-periodic-{stream}'
242 # Temporarily disable until Rackspace networking issues are resolved
245 # Job template for periodic builders
247 # The purpose of this job template is to setup a periodic
250 # Required Variables:
251 # stream: release stream (eg. stable-lithium or beryllium)
252 # branch: git branch (eg. stable/lithium or master)
259 daysToKeep: '{build-days-to-keep}'
260 numToKeep: '{build-num-to-keep}'
261 artifactDaysToKeep: '{build-artifact-days-to-keep}'
262 artifactNumToKeep: '{build-artifact-num-to-keep}'
270 credentials-id: '{ssh-credentials}'
276 - ssh-agent-credentials:
278 - '{ssh-credentials}'
284 - wipe-org-opendaylight-repo
285 - jacoco-nojava-workaround
286 - provide-maven-settings:
287 global-settings-file: '{odl-global-settings}'
288 settings-file: '{defense4all-settings}'
291 maven-name: '{mvn33}'
292 root-pom: 'dfapp/pom.xml'
293 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
294 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
295 settings: '{defense4all-settings}'
296 global-settings: '{odl-global-settings}'
302 - email-notification:
303 email-prefix: '[defense4all]'
307 name: 'defense4all-distribution-{stream}'
309 # Required variables:
310 # stream: release stream (eg. stable-lithium or beryllium)
311 # branch: git branch (eg. stable/lithium or master)
318 daysToKeep: '{build-days-to-keep}'
319 numToKeep: '{build-num-to-keep}'
320 artifactDaysToKeep: '{build-artifact-days-to-keep}'
321 artifactNumToKeep: '{build-artifact-num-to-keep}'
325 project: 'integration/distribution'
329 credentials-id: '{ssh-credentials}'
335 - ssh-agent-credentials:
337 - '{ssh-credentials}'
341 jobs: '{project}-merge-{stream}'
345 - wipe-org-opendaylight-repo
346 - provide-maven-settings:
347 global-settings-file: '{odl-global-settings}'
348 settings-file: '{defense4all-settings}'
351 maven-name: '{mvn33}'
353 goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
354 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
355 settings: '{integration-settings}'
356 global-settings: '{odl-global-settings}'
359 - email-notification:
360 email-prefix: '[{project}]'
364 deploy-unstable: false
367 name: 'defense4all-integration-{stream}'
368 # Temporarily disable this job until Rackspace networking issues are
373 # Job template for ODL integration verify jobs
375 # This is similar to a normal verify job, but it runs
376 # when a project that's a dependency of your project
377 # is successfully built.
379 # Required Variables:
380 # stream: release stream (eg. stable-lithium or beryllium)
381 # branch: git branch (eg. stable/lithium or master)
388 daysToKeep: '{build-days-to-keep}'
389 numToKeep: '{build-num-to-keep}'
390 artifactDaysToKeep: '{build-artifact-days-to-keep}'
391 artifactNumToKeep: '{build-artifact-num-to-keep}'
399 credentials-id: '{ssh-credentials}'
405 - ssh-agent-credentials:
407 - '{ssh-credentials}'
411 jobs: 'odlparent-merge-{stream}'
415 - wipe-org-opendaylight-repo
416 - jacoco-nojava-workaround
417 - provide-maven-settings:
418 global-settings-file: '{odl-global-settings}'
419 settings-file: '{defense4all-settings}'
422 maven-name: '{mvn33}'
423 root-pom: 'dfapp/pom.xml'
424 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
425 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
426 settings: '{defense4all-settings}'
427 global-settings: '{odl-global-settings}'
433 - email-notification:
434 email-prefix: '[defense4all] [odlparent]'
438 name: 'defense4all-sonar'
439 # Temporarily disable until Rackspace networking issues are resolved
449 artifactDaysToKeep: '1'
450 artifactNumToKeep: '1'
458 credentials-id: '{ssh-credentials}'
464 - ssh-agent-credentials:
466 - '{ssh-credentials}'
470 - gerrit-trigger-patch-sonar:
474 - wipe-org-opendaylight-repo
475 - jacoco-nojava-workaround
476 - provide-maven-settings:
477 global-settings-file: '{odl-global-settings}'
478 settings-file: '{defense4all-settings}'
481 maven-name: '{mvn33}'
482 root-pom: 'dfapp/pom.xml'
483 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dsonar'
484 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
485 settings: '{defense4all-settings}'
486 global-settings: '{odl-global-settings}'
494 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
495 - email-notification:
496 email-prefix: '[defense4all]'
500 name: 'defense4all-clm-{stream}'
501 # Temporarily disable until Rackspace networking issues are resolved
509 daysToKeep: '{build-days-to-keep}'
510 numToKeep: '{build-num-to-keep}'
511 artifactDaysToKeep: '{build-artifact-days-to-keep}'
512 artifactNumToKeep: '{build-artifact-num-to-keep}'
520 credentials-id: '{ssh-credentials}'
526 - ssh-agent-credentials:
528 - '{ssh-credentials}'
534 - wipe-org-opendaylight-repo
535 - provide-maven-settings:
536 global-settings-file: '{odl-global-settings}'
537 settings-file: '{defense4all-settings}'
540 maven-name: '{mvn33}'
542 goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
543 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
544 settings: '{defense4all-settings}'
545 global-settings: '{odl-global-settings}'
548 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
550 application-name: defense4all
553 - email-notification:
554 email-prefix: '[defense4all]'
557 name: 'defense4all-validate-autorelease-{stream}'
558 disabled: '{obj:disable_autorelease}'
566 daysToKeep: '{build-days-to-keep}'
567 numToKeep: '{build-num-to-keep}'
568 artifactDaysToKeep: '{build-artifact-days-to-keep}'
569 artifactNumToKeep: '{build-artifact-num-to-keep}'
576 - autorelease-release-tag:
577 release-tag: 'validate'
578 - autorelease-release-branch:
579 release-branch: '{branch}'
580 - autorelease-release-datestamp:
585 url: 'https://git.opendaylight.org/gerrit/releng/autorelease'
594 - autorelease-build-timeout
595 - ssh-agent-credentials:
597 - '{ssh-credentials}'
601 server-name: 'OpenDaylight'
603 - patchset-created-event:
604 exclude-drafts: 'false'
605 exclude-trivial-rebase: 'false'
606 exclude-no-code-change: 'false'
607 - draft-published-event
608 - comment-added-contains-event:
609 comment-contains-value: 'recheck'
610 - comment-added-contains-event:
611 comment-contains-value: 'reverify'
612 - comment-added-contains-event:
613 comment-contains-value: 'revalidate'
615 - project-compare-type: 'ANT'
616 project-pattern: 'defense4all'
618 - branch-compare-type: 'ANT'
619 branch-pattern: '**/{branch}'
622 - wipe-org-opendaylight-repo
623 - jacoco-nojava-workaround
624 - autorelease-checkout-gerrit-patch
625 - autorelease-generate-taglist
626 - autorelease-generate-release-patches
628 maven-version: '{mvn33}'
629 pom: validate-pom.xml
630 goals: 'clean install -T1.5C -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
633 settings: '{autorelease-settings}'
634 global-settings: '{odl-global-settings}'
637 maven-name: '{mvn33}'
639 goals: 'clean validate -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
640 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
641 settings: '{autorelease-settings}'
642 global-settings: '{odl-global-settings}'
643 automatic-archiving: false
644 post-step-run-condition: UNSTABLE
647 - shell: "./scripts/list-project-dependencies.sh"
648 - autorelease-sys-stats
653 - email-notification:
654 email-prefix: '[autorelease] [defense4all]'