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-distribution-check-{stream}'
14 - 'defense4all-integration-{stream}'
16 - 'defense4all-clm-{stream}'
17 - 'defense4all-validate-autorelease-{stream}'
20 # stream: release stream (eg. stable-lithium or beryllium)
21 # branch: git branch (eg. stable/lithium or master)
28 disable_autorelease: True
29 disable_distribution_check: False
31 branch: 'stable/beryllium'
35 disable_autorelease: True
36 disable_distribution_check: False
38 branch: 'stable/lithium'
42 disable_autorelease: True
43 disable_distribution_check: True
45 branch: 'stable/helium'
49 disable_autorelease: True
50 disable_distribution_check: True
52 project: 'defense4all'
54 # For the Job templates below replace instances of:
55 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
56 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
57 # MAVEN_GOALS with your maven goals to build
58 # MAVEN_OPTS with your maven options to build
61 name: 'defense4all-verify-{stream}'
63 # Job template for ODL verify jobs
65 # The purpose of this job template is to setup a ODL verify job
68 # stream: release stream (eg. stable-lithium or beryllium)
69 # branch: git branch (eg. stable/lithium or master)
86 daysToKeep: '{build-days-to-keep}'
87 numToKeep: '{build-num-to-keep}'
88 artifactDaysToKeep: '{build-artifact-days-to-keep}'
89 artifactNumToKeep: '{build-artifact-num-to-keep}'
96 - gerrit-refspec-parameter:
97 refspec: 'refs/heads/{branch}'
100 - gerrit-trigger-scm:
101 credentials-id: '{ssh-credentials}'
102 refspec: '$GERRIT_REFSPEC'
103 choosing-strategy: 'gerrit'
107 - ssh-agent-credentials:
109 - '{ssh-credentials}'
112 - gerrit-trigger-patch-submitted:
117 - wipe-org-opendaylight-repo
118 - jacoco-nojava-workaround
119 - provide-maven-settings:
120 global-settings-file: '{odl-global-settings}'
121 settings-file: '{defense4all-settings}'
123 maven-version: '{mvn33}'
125 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dstream={stream}'
127 - '-Xmx1024m -XX:MaxPermSize=256m'
128 settings: '{defense4all-settings}'
129 global-settings: '{odl-global-settings}'
133 - email-notification:
134 email-prefix: '[defense4all]'
138 name: 'defense4all-merge-{stream}'
140 # Job template for ODL merge jobs
142 # The purpose of this job template is to setup a ODL merge job
143 # and deploy artifacts to Nexus.
145 # Required Variables:
146 # stream: release stream (eg. stable-lithium or beryllium)
147 # branch: git branch (eg. stable/lithium or master)
156 artifactDaysToKeep: '{build-artifact-days-to-keep}'
157 artifactNumToKeep: '{build-artifact-num-to-keep}'
164 - gerrit-refspec-parameter:
165 refspec: 'refs/heads/{branch}'
168 - gerrit-trigger-scm:
169 credentials-id: '{ssh-credentials}'
171 choosing-strategy: 'default'
175 - ssh-agent-credentials:
177 - '{ssh-credentials}'
181 - gerrit-trigger-patch-merged:
186 - wipe-org-opendaylight-repo
187 - jacoco-nojava-workaround
188 - provide-maven-settings:
189 global-settings-file: '{odl-global-settings}'
190 settings-file: '{defense4all-settings}'
193 maven-name: '{mvn33}'
194 root-pom: 'dfapp/pom.xml'
195 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dmerge -Dstream={stream}'
196 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
197 settings: '{defense4all-settings}'
198 global-settings: '{odl-global-settings}'
199 post-step-run-condition: UNSTABLE
203 condition-kind: file-exists
204 condition-filename: deploy-site.xml
205 condition-basedir: workspace
207 # The strategy here is intentional to run Maven site:deploy twice
208 # once using regular pom.xml to produce a staged-site which is
209 # then used by deploy-site.xml to push to Nexus. This is a
210 # workaround to Maven Site's default linking code which creates
211 # incorrect URLs for sites due to auto-detection assuming your
212 # project is configured in a certain way which ODL is not.
215 maven-version: '{mvn33}'
217 goals: 'site:deploy -Dstream={stream}'
220 settings: '{defense4all-settings}'
221 global-settings: '{odl-global-settings}'
223 maven-version: '{mvn33}'
225 goals: 'site:deploy -Dstream={stream}'
228 settings: '{defense4all-settings}'
229 global-settings: '{odl-global-settings}'
236 artifacts: '**/target/surefire-reports/*-output.txt, '
237 - email-notification:
238 email-prefix: '[defense4all]'
242 deploy-unstable: false
246 name: 'defense4all-periodic-{stream}'
249 # Job template for periodic builders
251 # The purpose of this job template is to setup a periodic
254 # Required Variables:
255 # stream: release stream (eg. stable-lithium or beryllium)
256 # branch: git branch (eg. stable/lithium or master)
265 artifactDaysToKeep: '{build-artifact-days-to-keep}'
266 artifactNumToKeep: '{build-artifact-num-to-keep}'
274 credentials-id: '{ssh-credentials}'
280 - ssh-agent-credentials:
282 - '{ssh-credentials}'
288 - wipe-org-opendaylight-repo
289 - jacoco-nojava-workaround
290 - provide-maven-settings:
291 global-settings-file: '{odl-global-settings}'
292 settings-file: '{defense4all-settings}'
295 maven-name: '{mvn33}'
296 root-pom: 'dfapp/pom.xml'
297 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
298 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
299 settings: '{defense4all-settings}'
300 global-settings: '{odl-global-settings}'
306 - email-notification:
307 email-prefix: '[defense4all]'
311 name: 'defense4all-distribution-{stream}'
313 # Required variables:
314 # stream: release stream (eg. stable-lithium or beryllium)
315 # branch: git branch (eg. stable/lithium or master)
322 daysToKeep: '{build-days-to-keep}'
323 numToKeep: '{build-num-to-keep}'
324 artifactDaysToKeep: '{build-artifact-days-to-keep}'
325 artifactNumToKeep: '{build-artifact-num-to-keep}'
329 project: 'integration/distribution'
333 credentials-id: '{ssh-credentials}'
339 - ssh-agent-credentials:
341 - '{ssh-credentials}'
345 jobs: '{project}-merge-{stream}'
349 - wipe-org-opendaylight-repo
350 - provide-maven-settings:
351 global-settings-file: '{odl-global-settings}'
352 settings-file: '{defense4all-settings}'
355 maven-name: '{mvn33}'
357 goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
358 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
359 settings: '{integration-settings}'
360 global-settings: '{odl-global-settings}'
363 - email-notification:
364 email-prefix: '[{project}]'
368 deploy-unstable: false
370 # Template: integration-patch-distribution-{stream}
371 # Goal: Build a patch and make sure the distribution can deploy with this change
372 # Operation: This job template builds a patch, creates a distribution containing
373 # the patch, and triggers the distribution deploy test
376 name: 'defense4all-distribution-check-{stream}'
377 disabled: '{obj:disable_distribution_check}'
386 artifactDaysToKeep: '{build-artifact-days-to-keep}'
387 artifactNumToKeep: '{build-artifact-num-to-keep}'
390 - gerrit-project-parameter:
392 - gerrit-refspec-parameter:
396 - integration-distribution-git-url
399 - integration-gerrit-scm:
400 credentials-id: '{ssh-credentials}'
401 basedir: '$GERRIT_PROJECT'
402 refspec: '$GERRIT_REFSPEC'
404 - integration-distribution-scm:
405 credentials-id: '{ssh-credentials}'
410 - ssh-agent-credentials:
412 - '{ssh-credentials}'
416 server-name: 'OpenDaylight'
418 - patchset-created-event:
419 exclude-drafts: 'true'
420 exclude-trivial-rebase: 'false'
421 exclude-no-code-change: 'true'
422 - draft-published-event
423 - comment-added-contains-event:
424 comment-contains-value: 'test-distribution'
426 - project-compare-type: 'ANT'
427 project-pattern: '{name}'
429 - branch-compare-type: 'ANT'
430 branch-pattern: '**/{branch}'
438 - integration-get-bundle-url
440 properties-file: 'bundle.txt'
441 - wipe-org-opendaylight-repo
443 maven-version: '{mvn33}'
444 pom: '$GERRIT_PROJECT/pom.xml'
445 goals: 'clean install -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}'
447 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
448 settings: '{defense4all-settings}'
449 global-settings: '{odl-global-settings}'
452 maven-name: '{mvn33}'
453 root-pom: 'distribution/pom.xml'
454 goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
455 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
456 settings: '{defense4all-settings}'
457 global-settings: '{odl-global-settings}'
458 ignore-upstream-changes: true
459 post-step-run-condition: 'SUCCESS'
463 - project: 'integration-distribution-deploy-{stream}'
465 predefined-parameters:
469 - email-notification:
470 email-prefix: '[defense4all]'
473 name: 'defense4all-integration-{stream}'
476 # Job template for ODL integration verify jobs
478 # This is similar to a normal verify job, but it runs
479 # when a project that's a dependency of your project
480 # is successfully built.
482 # Required Variables:
483 # stream: release stream (eg. stable-lithium or beryllium)
484 # branch: git branch (eg. stable/lithium or master)
491 daysToKeep: '{build-days-to-keep}'
492 numToKeep: '{build-num-to-keep}'
493 artifactDaysToKeep: '{build-artifact-days-to-keep}'
494 artifactNumToKeep: '{build-artifact-num-to-keep}'
502 credentials-id: '{ssh-credentials}'
508 - ssh-agent-credentials:
510 - '{ssh-credentials}'
514 jobs: 'odlparent-merge-{stream}'
518 - wipe-org-opendaylight-repo
519 - jacoco-nojava-workaround
520 - provide-maven-settings:
521 global-settings-file: '{odl-global-settings}'
522 settings-file: '{defense4all-settings}'
525 maven-name: '{mvn33}'
526 root-pom: 'dfapp/pom.xml'
527 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
528 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
529 settings: '{defense4all-settings}'
530 global-settings: '{odl-global-settings}'
536 - email-notification:
537 email-prefix: '[defense4all] [odlparent]'
541 name: 'defense4all-sonar'
551 artifactDaysToKeep: '1'
552 artifactNumToKeep: '1'
560 credentials-id: '{ssh-credentials}'
566 - ssh-agent-credentials:
568 - '{ssh-credentials}'
572 - gerrit-trigger-patch-sonar:
576 - wipe-org-opendaylight-repo
577 - jacoco-nojava-workaround
578 - provide-maven-settings:
579 global-settings-file: '{odl-global-settings}'
580 settings-file: '{defense4all-settings}'
583 maven-name: '{mvn33}'
584 root-pom: 'dfapp/pom.xml'
585 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dsonar'
586 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
587 settings: '{defense4all-settings}'
588 global-settings: '{odl-global-settings}'
596 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
597 - email-notification:
598 email-prefix: '[defense4all]'
602 name: 'defense4all-clm-{stream}'
610 daysToKeep: '{build-days-to-keep}'
611 numToKeep: '{build-num-to-keep}'
612 artifactDaysToKeep: '{build-artifact-days-to-keep}'
613 artifactNumToKeep: '{build-artifact-num-to-keep}'
621 credentials-id: '{ssh-credentials}'
627 - ssh-agent-credentials:
629 - '{ssh-credentials}'
635 - wipe-org-opendaylight-repo
636 - provide-maven-settings:
637 global-settings-file: '{odl-global-settings}'
638 settings-file: '{defense4all-settings}'
641 maven-name: '{mvn33}'
643 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'
644 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
645 settings: '{defense4all-settings}'
646 global-settings: '{odl-global-settings}'
649 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
651 application-name: defense4all
654 - email-notification:
655 email-prefix: '[defense4all]'
658 name: 'defense4all-validate-autorelease-{stream}'
659 disabled: '{obj:disable_autorelease}'
667 daysToKeep: '{build-days-to-keep}'
668 numToKeep: '{build-num-to-keep}'
669 artifactDaysToKeep: '{build-artifact-days-to-keep}'
670 artifactNumToKeep: '{build-artifact-num-to-keep}'
677 - autorelease-release-tag:
678 release-tag: 'validate'
679 - autorelease-release-branch:
680 release-branch: '{branch}'
681 - autorelease-release-datestamp:
686 url: 'https://git.opendaylight.org/gerrit/releng/autorelease'
695 - autorelease-build-timeout
696 - ssh-agent-credentials:
698 - '{ssh-credentials}'
702 server-name: 'OpenDaylight'
704 - patchset-created-event:
705 exclude-drafts: 'false'
706 exclude-trivial-rebase: 'false'
707 exclude-no-code-change: 'false'
708 - draft-published-event
709 - comment-added-contains-event:
710 comment-contains-value: 'recheck'
711 - comment-added-contains-event:
712 comment-contains-value: 'reverify'
713 - comment-added-contains-event:
714 comment-contains-value: 'revalidate'
716 - project-compare-type: 'ANT'
717 project-pattern: 'defense4all'
719 - branch-compare-type: 'ANT'
720 branch-pattern: '**/{branch}'
723 - wipe-org-opendaylight-repo
724 - jacoco-nojava-workaround
725 - autorelease-checkout-gerrit-patch
726 - autorelease-generate-taglist
727 - autorelease-generate-release-patches
729 maven-version: '{mvn33}'
730 pom: validate-pom.xml
731 goals: 'clean install -T1.5C -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
734 settings: '{autorelease-settings}'
735 global-settings: '{odl-global-settings}'
738 maven-name: '{mvn33}'
740 goals: 'clean validate -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
741 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
742 settings: '{autorelease-settings}'
743 global-settings: '{odl-global-settings}'
744 automatic-archiving: false
745 post-step-run-condition: UNSTABLE
748 - shell: "./scripts/list-project-dependencies.sh"
749 - autorelease-sys-stats
754 - email-notification:
755 email-prefix: '[autorelease] [defense4all]'