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 - 'discovery-verify-{stream}'
10 - 'discovery-merge-{stream}'
11 - 'discovery-periodic-{stream}'
12 - 'discovery-distribution-{stream}'
13 - 'discovery-distribution-check-{stream}'
14 - 'discovery-integration-{stream}'
16 - 'discovery-clm-{stream}'
17 - 'discovery-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
40 # For the Job templates below replace instances of:
41 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
42 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
43 # MAVEN_GOALS with your maven goals to build
44 # MAVEN_OPTS with your maven options to build
47 name: 'discovery-verify-{stream}'
49 # Job template for ODL verify jobs
51 # The purpose of this job template is to setup a ODL verify job
54 # stream: release stream (eg. stable-lithium or beryllium)
55 # branch: git branch (eg. stable/lithium or master)
72 daysToKeep: '{build-days-to-keep}'
73 numToKeep: '{build-num-to-keep}'
74 artifactDaysToKeep: '{build-artifact-days-to-keep}'
75 artifactNumToKeep: '{build-artifact-num-to-keep}'
82 - gerrit-refspec-parameter:
83 refspec: 'refs/heads/{branch}'
87 credentials-id: '{ssh-credentials}'
88 refspec: '$GERRIT_REFSPEC'
89 choosing-strategy: 'gerrit'
93 - ssh-agent-credentials:
98 - gerrit-trigger-patch-submitted:
103 - wipe-org-opendaylight-repo
104 - jacoco-nojava-workaround
105 - provide-maven-settings:
106 global-settings-file: '{odl-global-settings}'
107 settings-file: '{discovery-settings}'
109 maven-version: '{mvn33}'
111 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dstream={stream}'
113 - '-Xmx1024m -XX:MaxPermSize=256m'
114 settings: '{discovery-settings}'
115 global-settings: '{odl-global-settings}'
119 - email-notification:
120 email-prefix: '[discovery]'
124 name: 'discovery-merge-{stream}'
126 # Job template for ODL merge jobs
128 # The purpose of this job template is to setup a ODL merge job
129 # and deploy artifacts to Nexus.
131 # Required Variables:
132 # stream: release stream (eg. stable-lithium or beryllium)
133 # branch: git branch (eg. stable/lithium or master)
142 artifactDaysToKeep: '{build-artifact-days-to-keep}'
143 artifactNumToKeep: '{build-artifact-num-to-keep}'
150 - gerrit-refspec-parameter:
151 refspec: 'refs/heads/{branch}'
154 - gerrit-trigger-scm:
155 credentials-id: '{ssh-credentials}'
157 choosing-strategy: 'default'
161 - ssh-agent-credentials:
163 - '{ssh-credentials}'
167 - gerrit-trigger-patch-merged:
172 - wipe-org-opendaylight-repo
173 - jacoco-nojava-workaround
174 - provide-maven-settings:
175 global-settings-file: '{odl-global-settings}'
176 settings-file: '{discovery-settings}'
179 maven-name: '{mvn33}'
181 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dmerge -Dstream={stream}'
182 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
183 settings: '{discovery-settings}'
184 global-settings: '{odl-global-settings}'
185 post-step-run-condition: UNSTABLE
189 condition-kind: file-exists
190 condition-filename: deploy-site.xml
191 condition-basedir: workspace
193 # The strategy here is intentional to run Maven site:deploy twice
194 # once using regular pom.xml to produce a staged-site which is
195 # then used by deploy-site.xml to push to Nexus. This is a
196 # workaround to Maven Site's default linking code which creates
197 # incorrect URLs for sites due to auto-detection assuming your
198 # project is configured in a certain way which ODL is not.
201 maven-version: '{mvn33}'
203 goals: 'site:deploy -Dstream={stream}'
206 settings: '{discovery-settings}'
207 global-settings: '{odl-global-settings}'
209 maven-version: '{mvn33}'
211 goals: 'site:deploy -Dstream={stream}'
214 settings: '{discovery-settings}'
215 global-settings: '{odl-global-settings}'
222 artifacts: '**/target/surefire-reports/*-output.txt, '
223 - email-notification:
224 email-prefix: '[discovery]'
228 deploy-unstable: false
232 name: 'discovery-periodic-{stream}'
235 # Job template for periodic builders
237 # The purpose of this job template is to setup a periodic
240 # Required Variables:
241 # stream: release stream (eg. stable-lithium or beryllium)
242 # branch: git branch (eg. stable/lithium or master)
251 artifactDaysToKeep: '{build-artifact-days-to-keep}'
252 artifactNumToKeep: '{build-artifact-num-to-keep}'
260 credentials-id: '{ssh-credentials}'
266 - ssh-agent-credentials:
268 - '{ssh-credentials}'
274 - wipe-org-opendaylight-repo
275 - jacoco-nojava-workaround
276 - provide-maven-settings:
277 global-settings-file: '{odl-global-settings}'
278 settings-file: '{discovery-settings}'
281 maven-name: '{mvn33}'
283 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
284 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
285 settings: '{discovery-settings}'
286 global-settings: '{odl-global-settings}'
292 - email-notification:
293 email-prefix: '[discovery]'
297 name: 'discovery-distribution-{stream}'
299 # Required variables:
300 # stream: release stream (eg. stable-lithium or beryllium)
301 # branch: git branch (eg. stable/lithium or master)
308 daysToKeep: '{build-days-to-keep}'
309 numToKeep: '{build-num-to-keep}'
310 artifactDaysToKeep: '{build-artifact-days-to-keep}'
311 artifactNumToKeep: '{build-artifact-num-to-keep}'
315 project: 'integration/distribution'
319 credentials-id: '{ssh-credentials}'
325 - ssh-agent-credentials:
327 - '{ssh-credentials}'
331 jobs: '{project}-merge-{stream}'
335 - wipe-org-opendaylight-repo
336 - provide-maven-settings:
337 global-settings-file: '{odl-global-settings}'
338 settings-file: '{discovery-settings}'
341 maven-name: '{mvn33}'
343 goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
344 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
345 settings: '{integration-settings}'
346 global-settings: '{odl-global-settings}'
349 - email-notification:
350 email-prefix: '[{project}]'
354 deploy-unstable: false
356 # Template: integration-patch-distribution-{stream}
357 # Goal: Build a patch and make sure the distribution can deploy with this change
358 # Operation: This job template builds a patch, creates a distribution containing
359 # the patch, and triggers the distribution deploy test
362 name: 'discovery-distribution-check-{stream}'
363 disabled: '{obj:disable_distribution_check}'
373 artifactDaysToKeep: '{build-artifact-days-to-keep}'
374 artifactNumToKeep: '{build-artifact-num-to-keep}'
377 - gerrit-project-parameter:
379 - gerrit-refspec-parameter:
383 - integration-distribution-git-url
386 - integration-gerrit-scm:
387 credentials-id: '{ssh-credentials}'
388 basedir: '$GERRIT_PROJECT'
389 refspec: '$GERRIT_REFSPEC'
391 - integration-distribution-scm:
392 credentials-id: '{ssh-credentials}'
397 - ssh-agent-credentials:
399 - '{ssh-credentials}'
403 server-name: 'OpenDaylight'
405 - patchset-created-event:
406 exclude-drafts: 'true'
407 exclude-trivial-rebase: 'false'
408 exclude-no-code-change: 'true'
409 - draft-published-event
410 - comment-added-contains-event:
411 comment-contains-value: 'test-distribution'
413 - project-compare-type: 'ANT'
414 project-pattern: '{name}'
416 - branch-compare-type: 'ANT'
417 branch-pattern: '**/{branch}'
425 - integration-get-bundle-url
427 properties-file: 'bundle.txt'
428 - wipe-org-opendaylight-repo
430 maven-version: '{mvn33}'
431 pom: '$GERRIT_PROJECT/pom.xml'
432 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}'
434 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
435 settings: '{discovery-settings}'
436 global-settings: '{odl-global-settings}'
439 maven-name: '{mvn33}'
440 root-pom: 'distribution/pom.xml'
441 goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
442 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
443 settings: '{discovery-settings}'
444 global-settings: '{odl-global-settings}'
445 ignore-upstream-changes: true
446 post-step-run-condition: 'SUCCESS'
450 - project: 'integration-distribution-deploy-{stream}'
452 predefined-parameters:
456 - email-notification:
457 email-prefix: '[discovery]'
460 name: 'discovery-integration-{stream}'
463 # Job template for ODL integration verify jobs
465 # This is similar to a normal verify job, but it runs
466 # when a project that's a dependency of your project
467 # is successfully built.
469 # Required Variables:
470 # stream: release stream (eg. stable-lithium or beryllium)
471 # branch: git branch (eg. stable/lithium or master)
478 daysToKeep: '{build-days-to-keep}'
479 numToKeep: '{build-num-to-keep}'
480 artifactDaysToKeep: '{build-artifact-days-to-keep}'
481 artifactNumToKeep: '{build-artifact-num-to-keep}'
489 credentials-id: '{ssh-credentials}'
495 - ssh-agent-credentials:
497 - '{ssh-credentials}'
501 jobs: 'odlparent-merge-{stream}'
505 - wipe-org-opendaylight-repo
506 - jacoco-nojava-workaround
507 - provide-maven-settings:
508 global-settings-file: '{odl-global-settings}'
509 settings-file: '{discovery-settings}'
512 maven-name: '{mvn33}'
514 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
515 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
516 settings: '{discovery-settings}'
517 global-settings: '{odl-global-settings}'
523 - email-notification:
524 email-prefix: '[discovery] [odlparent]'
528 name: 'discovery-sonar'
538 artifactDaysToKeep: '1'
539 artifactNumToKeep: '1'
547 credentials-id: '{ssh-credentials}'
553 - ssh-agent-credentials:
555 - '{ssh-credentials}'
559 - gerrit-trigger-patch-sonar:
563 - wipe-org-opendaylight-repo
564 - jacoco-nojava-workaround
565 - provide-maven-settings:
566 global-settings-file: '{odl-global-settings}'
567 settings-file: '{discovery-settings}'
570 maven-name: '{mvn33}'
572 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dsonar'
573 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
574 settings: '{discovery-settings}'
575 global-settings: '{odl-global-settings}'
583 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
584 - email-notification:
585 email-prefix: '[discovery]'
589 name: 'discovery-clm-{stream}'
597 daysToKeep: '{build-days-to-keep}'
598 numToKeep: '{build-num-to-keep}'
599 artifactDaysToKeep: '{build-artifact-days-to-keep}'
600 artifactNumToKeep: '{build-artifact-num-to-keep}'
608 credentials-id: '{ssh-credentials}'
614 - ssh-agent-credentials:
616 - '{ssh-credentials}'
622 - wipe-org-opendaylight-repo
623 - provide-maven-settings:
624 global-settings-file: '{odl-global-settings}'
625 settings-file: '{discovery-settings}'
628 maven-name: '{mvn33}'
630 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'
631 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
632 settings: '{discovery-settings}'
633 global-settings: '{odl-global-settings}'
636 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
638 application-name: discovery
641 - email-notification:
642 email-prefix: '[discovery]'
645 name: 'discovery-validate-autorelease-{stream}'
646 disabled: '{obj:disable_autorelease}'
654 daysToKeep: '{build-days-to-keep}'
655 numToKeep: '{build-num-to-keep}'
656 artifactDaysToKeep: '{build-artifact-days-to-keep}'
657 artifactNumToKeep: '{build-artifact-num-to-keep}'
664 - autorelease-release-tag:
665 release-tag: 'validate'
666 - autorelease-release-branch:
667 release-branch: '{branch}'
668 - autorelease-release-datestamp:
673 url: 'https://git.opendaylight.org/gerrit/releng/autorelease'
682 - autorelease-build-timeout
683 - ssh-agent-credentials:
685 - '{ssh-credentials}'
689 server-name: 'OpenDaylight'
691 - patchset-created-event:
692 exclude-drafts: 'false'
693 exclude-trivial-rebase: 'false'
694 exclude-no-code-change: 'false'
695 - draft-published-event
696 - comment-added-contains-event:
697 comment-contains-value: 'recheck'
698 - comment-added-contains-event:
699 comment-contains-value: 'reverify'
700 - comment-added-contains-event:
701 comment-contains-value: 'revalidate'
703 - project-compare-type: 'ANT'
704 project-pattern: 'discovery'
706 - branch-compare-type: 'ANT'
707 branch-pattern: '**/{branch}'
710 - wipe-org-opendaylight-repo
711 - jacoco-nojava-workaround
712 - autorelease-checkout-gerrit-patch
713 - autorelease-generate-taglist
714 - autorelease-generate-release-patches
716 maven-version: '{mvn33}'
717 pom: validate-pom.xml
718 goals: 'clean install -T1.5C -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
721 settings: '{autorelease-settings}'
722 global-settings: '{odl-global-settings}'
725 maven-name: '{mvn33}'
727 goals: 'clean validate -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
728 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
729 settings: '{autorelease-settings}'
730 global-settings: '{odl-global-settings}'
731 automatic-archiving: false
732 post-step-run-condition: UNSTABLE
735 - shell: "./scripts/list-project-dependencies.sh"
736 - autorelease-sys-stats
741 - email-notification:
742 email-prefix: '[autorelease] [discovery]'