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 - 'dlux-verify-{stream}'
10 - 'dlux-merge-{stream}'
11 - 'dlux-periodic-{stream}'
12 - 'dlux-distribution-{stream}'
13 - 'dlux-distribution-check-{stream}'
14 - 'dlux-integration-{stream}'
17 - 'dlux-validate-autorelease-{stream}'
20 # stream: release stream (eg. stable-lithium or beryllium)
21 # branch: git branch (eg. stable/lithium or master)
28 disable_autorelease: False
29 disable_distribution_check: False
31 branch: 'stable/beryllium'
36 disable_autorelease: False
37 disable_distribution_check: False
39 branch: 'stable/lithium'
43 disable_autorelease: True
44 disable_distribution_check: True
46 branch: 'stable/helium'
50 disable_autorelease: True
51 disable_distribution_check: True
55 # For the Job templates below replace instances of:
56 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
57 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
58 # MAVEN_GOALS with your maven goals to build
59 # MAVEN_OPTS with your maven options to build
62 name: 'dlux-verify-{stream}'
64 # Job template for ODL verify jobs
66 # The purpose of this job template is to setup a ODL verify job
69 # stream: release stream (eg. stable-lithium or beryllium)
70 # branch: git branch (eg. stable/lithium or master)
87 daysToKeep: '{build-days-to-keep}'
88 numToKeep: '{build-num-to-keep}'
89 artifactDaysToKeep: '{build-artifact-days-to-keep}'
90 artifactNumToKeep: '{build-artifact-num-to-keep}'
97 - gerrit-refspec-parameter:
98 refspec: 'refs/heads/{branch}'
101 - gerrit-trigger-scm:
102 credentials-id: '{ssh-credentials}'
103 refspec: '$GERRIT_REFSPEC'
104 choosing-strategy: 'gerrit'
108 - ssh-agent-credentials:
110 - '{ssh-credentials}'
113 - gerrit-trigger-patch-submitted:
118 - wipe-org-opendaylight-repo
119 - jacoco-nojava-workaround
120 - provide-maven-settings:
121 global-settings-file: '{odl-global-settings}'
122 settings-file: '{dlux-settings}'
124 maven-version: '{mvn33}'
126 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dstream={stream}'
128 - '-Xmx1024m -XX:MaxPermSize=256m'
129 settings: '{dlux-settings}'
130 global-settings: '{odl-global-settings}'
134 artifacts: '**/target/surefire-reports/*-output.txt, '
136 - email-notification:
137 email-prefix: '[dlux]'
141 name: 'dlux-merge-{stream}'
143 # Job template for ODL merge jobs
145 # The purpose of this job template is to setup a ODL merge job
146 # and deploy artifacts to Nexus.
148 # Required Variables:
149 # stream: release stream (eg. stable-lithium or beryllium)
150 # branch: git branch (eg. stable/lithium or master)
159 artifactDaysToKeep: '{build-artifact-days-to-keep}'
160 artifactNumToKeep: '{build-artifact-num-to-keep}'
167 - gerrit-refspec-parameter:
168 refspec: 'refs/heads/{branch}'
171 - gerrit-trigger-scm:
172 credentials-id: '{ssh-credentials}'
174 choosing-strategy: 'default'
178 - ssh-agent-credentials:
180 - '{ssh-credentials}'
184 - gerrit-trigger-patch-merged:
189 - wipe-org-opendaylight-repo
190 - jacoco-nojava-workaround
191 - provide-maven-settings:
192 global-settings-file: '{odl-global-settings}'
193 settings-file: '{dlux-settings}'
196 maven-name: '{mvn33}'
198 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dmerge -Dstream={stream}'
199 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
200 settings: '{dlux-settings}'
201 global-settings: '{odl-global-settings}'
202 post-step-run-condition: UNSTABLE
206 condition-kind: file-exists
207 condition-filename: deploy-site.xml
208 condition-basedir: workspace
210 # The strategy here is intentional to run Maven site:deploy twice
211 # once using regular pom.xml to produce a staged-site which is
212 # then used by deploy-site.xml to push to Nexus. This is a
213 # workaround to Maven Site's default linking code which creates
214 # incorrect URLs for sites due to auto-detection assuming your
215 # project is configured in a certain way which ODL is not.
218 maven-version: '{mvn33}'
220 goals: 'site:deploy -Dstream={stream}'
223 settings: '{dlux-settings}'
224 global-settings: '{odl-global-settings}'
226 maven-version: '{mvn33}'
228 goals: 'site:deploy -Dstream={stream}'
231 settings: '{dlux-settings}'
232 global-settings: '{odl-global-settings}'
239 artifacts: '**/target/surefire-reports/*-output.txt, '
240 - email-notification:
241 email-prefix: '[dlux]'
245 deploy-unstable: false
249 name: 'dlux-periodic-{stream}'
252 # Job template for periodic builders
254 # The purpose of this job template is to setup a periodic
257 # Required Variables:
258 # stream: release stream (eg. stable-lithium or beryllium)
259 # branch: git branch (eg. stable/lithium or master)
268 artifactDaysToKeep: '{build-artifact-days-to-keep}'
269 artifactNumToKeep: '{build-artifact-num-to-keep}'
277 credentials-id: '{ssh-credentials}'
283 - ssh-agent-credentials:
285 - '{ssh-credentials}'
291 - wipe-org-opendaylight-repo
292 - jacoco-nojava-workaround
293 - provide-maven-settings:
294 global-settings-file: '{odl-global-settings}'
295 settings-file: '{dlux-settings}'
298 maven-name: '{mvn33}'
300 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
301 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
302 settings: '{dlux-settings}'
303 global-settings: '{odl-global-settings}'
309 - email-notification:
310 email-prefix: '[dlux]'
314 name: 'dlux-distribution-{stream}'
316 # Required variables:
317 # stream: release stream (eg. stable-lithium or beryllium)
318 # branch: git branch (eg. stable/lithium or master)
325 daysToKeep: '{build-days-to-keep}'
326 numToKeep: '{build-num-to-keep}'
327 artifactDaysToKeep: '{build-artifact-days-to-keep}'
328 artifactNumToKeep: '{build-artifact-num-to-keep}'
332 project: 'integration/distribution'
336 credentials-id: '{ssh-credentials}'
342 - ssh-agent-credentials:
344 - '{ssh-credentials}'
348 jobs: '{project}-merge-{stream}'
352 - wipe-org-opendaylight-repo
353 - provide-maven-settings:
354 global-settings-file: '{odl-global-settings}'
355 settings-file: '{dlux-settings}'
358 maven-name: '{mvn33}'
360 goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
361 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
362 settings: '{integration-settings}'
363 global-settings: '{odl-global-settings}'
366 - email-notification:
367 email-prefix: '[{project}]'
371 deploy-unstable: false
373 # Template: integration-patch-distribution-{stream}
374 # Goal: Build a patch and make sure the distribution can deploy with this change
375 # Operation: This job template builds a patch, creates a distribution containing
376 # the patch, and triggers the distribution deploy test
379 name: 'dlux-distribution-check-{stream}'
380 disabled: '{obj:disable_distribution_check}'
390 artifactDaysToKeep: '{build-artifact-days-to-keep}'
391 artifactNumToKeep: '{build-artifact-num-to-keep}'
394 - gerrit-project-parameter:
396 - gerrit-refspec-parameter:
400 - integration-distribution-git-url
403 - integration-gerrit-scm:
404 credentials-id: '{ssh-credentials}'
405 basedir: '$GERRIT_PROJECT'
406 refspec: '$GERRIT_REFSPEC'
408 - integration-distribution-scm:
409 credentials-id: '{ssh-credentials}'
414 - ssh-agent-credentials:
416 - '{ssh-credentials}'
420 server-name: 'OpenDaylight'
422 - patchset-created-event:
423 exclude-drafts: 'true'
424 exclude-trivial-rebase: 'false'
425 exclude-no-code-change: 'true'
426 - draft-published-event
427 - comment-added-contains-event:
428 comment-contains-value: 'test-distribution'
430 - project-compare-type: 'ANT'
431 project-pattern: '{name}'
433 - branch-compare-type: 'ANT'
434 branch-pattern: '**/{branch}'
442 - wipe-org-opendaylight-repo
444 maven-version: '{mvn33}'
445 pom: '$GERRIT_PROJECT/pom.xml'
446 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}'
448 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
449 settings: '{dlux-settings}'
450 global-settings: '{odl-global-settings}'
453 maven-name: '{mvn33}'
454 root-pom: 'distribution/pom.xml'
455 goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
456 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
457 settings: '{dlux-settings}'
458 global-settings: '{odl-global-settings}'
459 ignore-upstream-changes: true
460 post-step-run-condition: 'SUCCESS'
463 - integration-distribution-check
467 artifacts: 'karaf.log'
469 artifacts: 'karaf_console.log'
470 - email-notification:
471 email-prefix: '[dlux]'
474 name: 'dlux-integration-{stream}'
477 # Job template for ODL integration verify jobs
479 # This is similar to a normal verify job, but it runs
480 # when a project that's a dependency of your project
481 # is successfully built.
483 # Required Variables:
484 # stream: release stream (eg. stable-lithium or beryllium)
485 # branch: git branch (eg. stable/lithium or master)
492 daysToKeep: '{build-days-to-keep}'
493 numToKeep: '{build-num-to-keep}'
494 artifactDaysToKeep: '{build-artifact-days-to-keep}'
495 artifactNumToKeep: '{build-artifact-num-to-keep}'
503 credentials-id: '{ssh-credentials}'
509 - ssh-agent-credentials:
511 - '{ssh-credentials}'
515 jobs: 'odlparent-merge-{stream}'
519 - wipe-org-opendaylight-repo
520 - jacoco-nojava-workaround
521 - provide-maven-settings:
522 global-settings-file: '{odl-global-settings}'
523 settings-file: '{dlux-settings}'
526 maven-name: '{mvn33}'
528 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
529 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
530 settings: '{dlux-settings}'
531 global-settings: '{odl-global-settings}'
537 - email-notification:
538 email-prefix: '[dlux] [odlparent]'
552 artifactDaysToKeep: '1'
553 artifactNumToKeep: '1'
561 credentials-id: '{ssh-credentials}'
567 - ssh-agent-credentials:
569 - '{ssh-credentials}'
573 - gerrit-trigger-patch-sonar:
577 - wipe-org-opendaylight-repo
578 - jacoco-nojava-workaround
579 - provide-maven-settings:
580 global-settings-file: '{odl-global-settings}'
581 settings-file: '{dlux-settings}'
584 maven-name: '{mvn33}'
586 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dsonar'
587 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
588 settings: '{dlux-settings}'
589 global-settings: '{odl-global-settings}'
597 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
598 - email-notification:
599 email-prefix: '[dlux]'
603 name: 'dlux-clm-{stream}'
611 daysToKeep: '{build-days-to-keep}'
612 numToKeep: '{build-num-to-keep}'
613 artifactDaysToKeep: '{build-artifact-days-to-keep}'
614 artifactNumToKeep: '{build-artifact-num-to-keep}'
622 credentials-id: '{ssh-credentials}'
628 - ssh-agent-credentials:
630 - '{ssh-credentials}'
636 - wipe-org-opendaylight-repo
637 - provide-maven-settings:
638 global-settings-file: '{odl-global-settings}'
639 settings-file: '{dlux-settings}'
642 maven-name: '{mvn33}'
644 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'
645 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
646 settings: '{dlux-settings}'
647 global-settings: '{odl-global-settings}'
650 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
652 application-name: dlux
655 - email-notification:
656 email-prefix: '[dlux]'
659 name: 'dlux-validate-autorelease-{stream}'
660 disabled: '{obj:disable_autorelease}'
668 daysToKeep: '{build-days-to-keep}'
669 numToKeep: '{build-num-to-keep}'
670 artifactDaysToKeep: '{build-artifact-days-to-keep}'
671 artifactNumToKeep: '{build-artifact-num-to-keep}'
678 - autorelease-release-tag:
679 release-tag: 'validate'
680 - autorelease-release-branch:
681 release-branch: '{branch}'
682 - autorelease-release-datestamp:
687 url: 'https://git.opendaylight.org/gerrit/releng/autorelease'
696 - autorelease-build-timeout
697 - ssh-agent-credentials:
699 - '{ssh-credentials}'
703 server-name: 'OpenDaylight'
705 - patchset-created-event:
706 exclude-drafts: 'false'
707 exclude-trivial-rebase: 'false'
708 exclude-no-code-change: 'false'
709 - draft-published-event
710 - comment-added-contains-event:
711 comment-contains-value: 'recheck'
712 - comment-added-contains-event:
713 comment-contains-value: 'reverify'
714 - comment-added-contains-event:
715 comment-contains-value: 'revalidate'
717 - project-compare-type: 'ANT'
718 project-pattern: 'dlux'
720 - branch-compare-type: 'ANT'
721 branch-pattern: '**/{branch}'
727 - wipe-org-opendaylight-repo
728 - jacoco-nojava-workaround
729 - autorelease-checkout-gerrit-patch
730 - autorelease-generate-taglist
731 - autorelease-generate-release-patches
733 maven-version: '{mvn33}'
734 pom: validate-pom.xml
735 goals: 'clean install -T1.5C -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
738 settings: '{autorelease-settings}'
739 global-settings: '{odl-global-settings}'
742 maven-name: '{mvn33}'
744 goals: 'clean validate -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
745 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
746 settings: '{autorelease-settings}'
747 global-settings: '{odl-global-settings}'
748 automatic-archiving: false
749 post-step-run-condition: UNSTABLE
752 - shell: "./scripts/list-project-dependencies.sh"
753 - autorelease-sys-stats
758 - email-notification:
759 email-prefix: '[autorelease] [dlux]'