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 - 'nic-verify-{stream}'
10 - 'nic-merge-{stream}'
11 - 'nic-periodic-{stream}'
12 - 'nic-distribution-{stream}'
13 - 'nic-distribution-check-{stream}'
14 - 'nic-integration-{stream}'
17 - 'nic-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
48 # For the Job templates below replace instances of:
49 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
50 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
51 # MAVEN_GOALS with your maven goals to build
52 # MAVEN_OPTS with your maven options to build
55 name: 'nic-verify-{stream}'
57 # Job template for ODL verify jobs
59 # The purpose of this job template is to setup a ODL verify job
62 # stream: release stream (eg. stable-lithium or beryllium)
63 # branch: git branch (eg. stable/lithium or master)
80 daysToKeep: '{build-days-to-keep}'
81 numToKeep: '{build-num-to-keep}'
82 artifactDaysToKeep: '{build-artifact-days-to-keep}'
83 artifactNumToKeep: '{build-artifact-num-to-keep}'
90 - gerrit-refspec-parameter:
91 refspec: 'refs/heads/{branch}'
95 credentials-id: '{ssh-credentials}'
96 refspec: '$GERRIT_REFSPEC'
97 choosing-strategy: 'gerrit'
101 - ssh-agent-credentials:
103 - '{ssh-credentials}'
106 - gerrit-trigger-patch-submitted:
111 - wipe-org-opendaylight-repo
112 - jacoco-nojava-workaround
113 - provide-maven-settings:
114 global-settings-file: '{odl-global-settings}'
115 settings-file: '{nic-settings}'
117 maven-version: '{mvn33}'
119 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dstream={stream}'
121 - '-Xmx1024m -XX:MaxPermSize=256m'
122 settings: '{nic-settings}'
123 global-settings: '{odl-global-settings}'
127 - email-notification:
128 email-prefix: '[nic]'
132 name: 'nic-merge-{stream}'
134 # Job template for ODL merge jobs
136 # The purpose of this job template is to setup a ODL merge job
137 # and deploy artifacts to Nexus.
139 # Required Variables:
140 # stream: release stream (eg. stable-lithium or beryllium)
141 # branch: git branch (eg. stable/lithium or master)
150 artifactDaysToKeep: '{build-artifact-days-to-keep}'
151 artifactNumToKeep: '{build-artifact-num-to-keep}'
158 - gerrit-refspec-parameter:
159 refspec: 'refs/heads/{branch}'
162 - gerrit-trigger-scm:
163 credentials-id: '{ssh-credentials}'
165 choosing-strategy: 'default'
169 - ssh-agent-credentials:
171 - '{ssh-credentials}'
175 - gerrit-trigger-patch-merged:
180 - wipe-org-opendaylight-repo
181 - jacoco-nojava-workaround
182 - provide-maven-settings:
183 global-settings-file: '{odl-global-settings}'
184 settings-file: '{nic-settings}'
187 maven-name: '{mvn33}'
189 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dmerge -Dstream={stream}'
190 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
191 settings: '{nic-settings}'
192 global-settings: '{odl-global-settings}'
193 post-step-run-condition: UNSTABLE
197 condition-kind: file-exists
198 condition-filename: deploy-site.xml
199 condition-basedir: workspace
201 # The strategy here is intentional to run Maven site:deploy twice
202 # once using regular pom.xml to produce a staged-site which is
203 # then used by deploy-site.xml to push to Nexus. This is a
204 # workaround to Maven Site's default linking code which creates
205 # incorrect URLs for sites due to auto-detection assuming your
206 # project is configured in a certain way which ODL is not.
209 maven-version: '{mvn33}'
211 goals: 'site:deploy -Dstream={stream}'
214 settings: '{nic-settings}'
215 global-settings: '{odl-global-settings}'
217 maven-version: '{mvn33}'
219 goals: 'site:deploy -Dstream={stream}'
222 settings: '{nic-settings}'
223 global-settings: '{odl-global-settings}'
230 artifacts: '**/target/surefire-reports/*-output.txt, '
231 - email-notification:
232 email-prefix: '[nic]'
236 deploy-unstable: false
240 name: 'nic-periodic-{stream}'
243 # Job template for periodic builders
245 # The purpose of this job template is to setup a periodic
248 # Required Variables:
249 # stream: release stream (eg. stable-lithium or beryllium)
250 # branch: git branch (eg. stable/lithium or master)
259 artifactDaysToKeep: '{build-artifact-days-to-keep}'
260 artifactNumToKeep: '{build-artifact-num-to-keep}'
268 credentials-id: '{ssh-credentials}'
274 - ssh-agent-credentials:
276 - '{ssh-credentials}'
282 - wipe-org-opendaylight-repo
283 - jacoco-nojava-workaround
284 - provide-maven-settings:
285 global-settings-file: '{odl-global-settings}'
286 settings-file: '{nic-settings}'
289 maven-name: '{mvn33}'
291 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
292 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
293 settings: '{nic-settings}'
294 global-settings: '{odl-global-settings}'
300 - email-notification:
301 email-prefix: '[nic]'
305 name: 'nic-distribution-{stream}'
307 # Required variables:
308 # stream: release stream (eg. stable-lithium or beryllium)
309 # branch: git branch (eg. stable/lithium or master)
316 daysToKeep: '{build-days-to-keep}'
317 numToKeep: '{build-num-to-keep}'
318 artifactDaysToKeep: '{build-artifact-days-to-keep}'
319 artifactNumToKeep: '{build-artifact-num-to-keep}'
323 project: 'integration/distribution'
327 credentials-id: '{ssh-credentials}'
333 - ssh-agent-credentials:
335 - '{ssh-credentials}'
339 jobs: '{project}-merge-{stream}'
343 - wipe-org-opendaylight-repo
344 - provide-maven-settings:
345 global-settings-file: '{odl-global-settings}'
346 settings-file: '{nic-settings}'
349 maven-name: '{mvn33}'
351 goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
352 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
353 settings: '{integration-settings}'
354 global-settings: '{odl-global-settings}'
357 - email-notification:
358 email-prefix: '[{project}]'
362 deploy-unstable: false
364 # Template: integration-patch-distribution-{stream}
365 # Goal: Build a patch and make sure the distribution can deploy with this change
366 # Operation: This job template builds a patch, creates a distribution containing
367 # the patch, and triggers the distribution deploy test
370 name: 'nic-distribution-check-{stream}'
371 disabled: '{obj:disable_distribution_check}'
380 artifactDaysToKeep: '{build-artifact-days-to-keep}'
381 artifactNumToKeep: '{build-artifact-num-to-keep}'
384 - gerrit-project-parameter:
386 - gerrit-refspec-parameter:
390 - integration-distribution-git-url
393 - integration-gerrit-scm:
394 credentials-id: '{ssh-credentials}'
395 basedir: '$GERRIT_PROJECT'
396 refspec: '$GERRIT_REFSPEC'
398 - integration-distribution-scm:
399 credentials-id: '{ssh-credentials}'
404 - ssh-agent-credentials:
406 - '{ssh-credentials}'
410 server-name: 'OpenDaylight'
412 - patchset-created-event:
413 exclude-drafts: 'true'
414 exclude-trivial-rebase: 'false'
415 exclude-no-code-change: 'true'
416 - draft-published-event
417 - comment-added-contains-event:
418 comment-contains-value: 'test-distribution'
420 - project-compare-type: 'ANT'
421 project-pattern: '{name}'
423 - branch-compare-type: 'ANT'
424 branch-pattern: '**/{branch}'
432 - integration-get-bundle-url
434 properties-file: 'bundle.txt'
435 - wipe-org-opendaylight-repo
437 maven-version: '{mvn33}'
438 pom: '$GERRIT_PROJECT/pom.xml'
439 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}'
441 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
442 settings: '{nic-settings}'
443 global-settings: '{odl-global-settings}'
446 maven-name: '{mvn33}'
447 root-pom: 'distribution/pom.xml'
448 goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
449 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
450 settings: '{nic-settings}'
451 global-settings: '{odl-global-settings}'
452 ignore-upstream-changes: true
453 post-step-run-condition: 'SUCCESS'
457 - project: 'integration-distribution-deploy-{stream}'
459 predefined-parameters:
463 - email-notification:
464 email-prefix: '[nic]'
467 name: 'nic-integration-{stream}'
470 # Job template for ODL integration verify jobs
472 # This is similar to a normal verify job, but it runs
473 # when a project that's a dependency of your project
474 # is successfully built.
476 # Required Variables:
477 # stream: release stream (eg. stable-lithium or beryllium)
478 # branch: git branch (eg. stable/lithium or master)
485 daysToKeep: '{build-days-to-keep}'
486 numToKeep: '{build-num-to-keep}'
487 artifactDaysToKeep: '{build-artifact-days-to-keep}'
488 artifactNumToKeep: '{build-artifact-num-to-keep}'
496 credentials-id: '{ssh-credentials}'
502 - ssh-agent-credentials:
504 - '{ssh-credentials}'
508 jobs: 'controller-merge-{stream},odlparent-merge-{stream},vtn-merge-{stream},yangtools-merge-{stream},groupbasedpolicy-merge-{stream}'
512 - wipe-org-opendaylight-repo
513 - jacoco-nojava-workaround
514 - provide-maven-settings:
515 global-settings-file: '{odl-global-settings}'
516 settings-file: '{nic-settings}'
519 maven-name: '{mvn33}'
521 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
522 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
523 settings: '{nic-settings}'
524 global-settings: '{odl-global-settings}'
530 - email-notification:
531 email-prefix: '[nic] [controller] [odlparent] [vtn] [yangtools] [groupbasedpolicy]'
545 artifactDaysToKeep: '1'
546 artifactNumToKeep: '1'
554 credentials-id: '{ssh-credentials}'
560 - ssh-agent-credentials:
562 - '{ssh-credentials}'
566 - gerrit-trigger-patch-sonar:
570 - wipe-org-opendaylight-repo
571 - jacoco-nojava-workaround
572 - provide-maven-settings:
573 global-settings-file: '{odl-global-settings}'
574 settings-file: '{nic-settings}'
577 maven-name: '{mvn33}'
579 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dsonar'
580 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
581 settings: '{nic-settings}'
582 global-settings: '{odl-global-settings}'
590 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
591 - email-notification:
592 email-prefix: '[nic]'
596 name: 'nic-clm-{stream}'
604 daysToKeep: '{build-days-to-keep}'
605 numToKeep: '{build-num-to-keep}'
606 artifactDaysToKeep: '{build-artifact-days-to-keep}'
607 artifactNumToKeep: '{build-artifact-num-to-keep}'
615 credentials-id: '{ssh-credentials}'
621 - ssh-agent-credentials:
623 - '{ssh-credentials}'
629 - wipe-org-opendaylight-repo
630 - provide-maven-settings:
631 global-settings-file: '{odl-global-settings}'
632 settings-file: '{nic-settings}'
635 maven-name: '{mvn33}'
637 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'
638 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
639 settings: '{nic-settings}'
640 global-settings: '{odl-global-settings}'
643 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
645 application-name: nic
648 - email-notification:
649 email-prefix: '[nic]'
652 name: 'nic-validate-autorelease-{stream}'
653 disabled: '{obj:disable_autorelease}'
661 daysToKeep: '{build-days-to-keep}'
662 numToKeep: '{build-num-to-keep}'
663 artifactDaysToKeep: '{build-artifact-days-to-keep}'
664 artifactNumToKeep: '{build-artifact-num-to-keep}'
671 - autorelease-release-tag:
672 release-tag: 'validate'
673 - autorelease-release-branch:
674 release-branch: '{branch}'
675 - autorelease-release-datestamp:
680 url: 'https://git.opendaylight.org/gerrit/releng/autorelease'
689 - autorelease-build-timeout
690 - ssh-agent-credentials:
692 - '{ssh-credentials}'
696 server-name: 'OpenDaylight'
698 - patchset-created-event:
699 exclude-drafts: 'false'
700 exclude-trivial-rebase: 'false'
701 exclude-no-code-change: 'false'
702 - draft-published-event
703 - comment-added-contains-event:
704 comment-contains-value: 'recheck'
705 - comment-added-contains-event:
706 comment-contains-value: 'reverify'
707 - comment-added-contains-event:
708 comment-contains-value: 'revalidate'
710 - project-compare-type: 'ANT'
711 project-pattern: 'nic'
713 - branch-compare-type: 'ANT'
714 branch-pattern: '**/{branch}'
717 - wipe-org-opendaylight-repo
718 - jacoco-nojava-workaround
719 - autorelease-checkout-gerrit-patch
720 - autorelease-generate-taglist
721 - autorelease-generate-release-patches
723 maven-version: '{mvn33}'
724 pom: validate-pom.xml
725 goals: 'clean install -T1.5C -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
728 settings: '{autorelease-settings}'
729 global-settings: '{odl-global-settings}'
732 maven-name: '{mvn33}'
734 goals: 'clean validate -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
735 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
736 settings: '{autorelease-settings}'
737 global-settings: '{odl-global-settings}'
738 automatic-archiving: false
739 post-step-run-condition: UNSTABLE
742 - shell: "./scripts/list-project-dependencies.sh"
743 - autorelease-sys-stats
748 - email-notification:
749 email-prefix: '[autorelease] [nic]'