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 - 'snmp-verify-{stream}'
10 - 'snmp-merge-{stream}'
11 - 'snmp-periodic-{stream}'
12 - 'snmp-distribution-{stream}'
13 - 'snmp-distribution-check-{stream}'
14 - 'snmp-integration-{stream}'
17 - 'snmp-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'
44 disable_autorelease: True
45 disable_distribution_check: True
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: 'snmp-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: '{snmp-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: '{snmp-settings}'
124 global-settings: '{odl-global-settings}'
128 artifacts: '**/target/surefire-reports/*-output.txt, '
130 - email-notification:
131 email-prefix: '[snmp]'
135 name: 'snmp-merge-{stream}'
137 # Job template for ODL merge jobs
139 # The purpose of this job template is to setup a ODL merge job
140 # and deploy artifacts to Nexus.
142 # Required Variables:
143 # stream: release stream (eg. stable-lithium or beryllium)
144 # branch: git branch (eg. stable/lithium or master)
153 artifactDaysToKeep: '{build-artifact-days-to-keep}'
154 artifactNumToKeep: '{build-artifact-num-to-keep}'
161 - gerrit-refspec-parameter:
162 refspec: 'refs/heads/{branch}'
165 - gerrit-trigger-scm:
166 credentials-id: '{ssh-credentials}'
168 choosing-strategy: 'default'
172 - ssh-agent-credentials:
174 - '{ssh-credentials}'
178 - gerrit-trigger-patch-merged:
183 - wipe-org-opendaylight-repo
184 - jacoco-nojava-workaround
185 - provide-maven-settings:
186 global-settings-file: '{odl-global-settings}'
187 settings-file: '{snmp-settings}'
190 maven-name: '{mvn33}'
192 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dmerge -Dstream={stream}'
193 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
194 settings: '{snmp-settings}'
195 global-settings: '{odl-global-settings}'
196 post-step-run-condition: UNSTABLE
200 condition-kind: file-exists
201 condition-filename: deploy-site.xml
202 condition-basedir: workspace
204 # The strategy here is intentional to run Maven site:deploy twice
205 # once using regular pom.xml to produce a staged-site which is
206 # then used by deploy-site.xml to push to Nexus. This is a
207 # workaround to Maven Site's default linking code which creates
208 # incorrect URLs for sites due to auto-detection assuming your
209 # project is configured in a certain way which ODL is not.
212 maven-version: '{mvn33}'
214 goals: 'site:deploy -Dstream={stream}'
217 settings: '{snmp-settings}'
218 global-settings: '{odl-global-settings}'
220 maven-version: '{mvn33}'
222 goals: 'site:deploy -Dstream={stream}'
225 settings: '{snmp-settings}'
226 global-settings: '{odl-global-settings}'
233 artifacts: '**/target/surefire-reports/*-output.txt, '
234 - email-notification:
235 email-prefix: '[snmp]'
239 deploy-unstable: false
243 name: 'snmp-periodic-{stream}'
246 # Job template for periodic builders
248 # The purpose of this job template is to setup a periodic
251 # Required Variables:
252 # stream: release stream (eg. stable-lithium or beryllium)
253 # branch: git branch (eg. stable/lithium or master)
262 artifactDaysToKeep: '{build-artifact-days-to-keep}'
263 artifactNumToKeep: '{build-artifact-num-to-keep}'
271 credentials-id: '{ssh-credentials}'
277 - ssh-agent-credentials:
279 - '{ssh-credentials}'
285 - wipe-org-opendaylight-repo
286 - jacoco-nojava-workaround
287 - provide-maven-settings:
288 global-settings-file: '{odl-global-settings}'
289 settings-file: '{snmp-settings}'
292 maven-name: '{mvn33}'
294 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
295 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
296 settings: '{snmp-settings}'
297 global-settings: '{odl-global-settings}'
303 - email-notification:
304 email-prefix: '[snmp]'
308 name: 'snmp-distribution-{stream}'
310 # Required variables:
311 # stream: release stream (eg. stable-lithium or beryllium)
312 # branch: git branch (eg. stable/lithium or master)
319 daysToKeep: '{build-days-to-keep}'
320 numToKeep: '{build-num-to-keep}'
321 artifactDaysToKeep: '{build-artifact-days-to-keep}'
322 artifactNumToKeep: '{build-artifact-num-to-keep}'
326 project: 'integration/distribution'
330 credentials-id: '{ssh-credentials}'
336 - ssh-agent-credentials:
338 - '{ssh-credentials}'
342 jobs: '{project}-merge-{stream}'
346 - wipe-org-opendaylight-repo
347 - provide-maven-settings:
348 global-settings-file: '{odl-global-settings}'
349 settings-file: '{snmp-settings}'
352 maven-name: '{mvn33}'
354 goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
355 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
356 settings: '{integration-settings}'
357 global-settings: '{odl-global-settings}'
360 - email-notification:
361 email-prefix: '[{project}]'
365 deploy-unstable: false
367 # Template: integration-patch-distribution-{stream}
368 # Goal: Build a patch and make sure the distribution can deploy with this change
369 # Operation: This job template builds a patch, creates a distribution containing
370 # the patch, and triggers the distribution deploy test
373 name: 'snmp-distribution-check-{stream}'
374 disabled: '{obj:disable_distribution_check}'
384 artifactDaysToKeep: '{build-artifact-days-to-keep}'
385 artifactNumToKeep: '{build-artifact-num-to-keep}'
388 - gerrit-project-parameter:
390 - gerrit-refspec-parameter:
394 - integration-distribution-git-url
397 - integration-gerrit-scm:
398 credentials-id: '{ssh-credentials}'
399 basedir: '$GERRIT_PROJECT'
400 refspec: '$GERRIT_REFSPEC'
402 - integration-distribution-scm:
403 credentials-id: '{ssh-credentials}'
408 - ssh-agent-credentials:
410 - '{ssh-credentials}'
414 server-name: 'OpenDaylight'
416 - patchset-created-event:
417 exclude-drafts: 'true'
418 exclude-trivial-rebase: 'false'
419 exclude-no-code-change: 'true'
420 - draft-published-event
421 - comment-added-contains-event:
422 comment-contains-value: 'test-distribution'
424 - project-compare-type: 'ANT'
425 project-pattern: '{name}'
427 - branch-compare-type: 'ANT'
428 branch-pattern: '**/{branch}'
436 - wipe-org-opendaylight-repo
438 maven-version: '{mvn33}'
439 pom: '$GERRIT_PROJECT/pom.xml'
440 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}'
442 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
443 settings: '{snmp-settings}'
444 global-settings: '{odl-global-settings}'
447 maven-name: '{mvn33}'
448 root-pom: 'distribution/pom.xml'
449 goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
450 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
451 settings: '{snmp-settings}'
452 global-settings: '{odl-global-settings}'
453 ignore-upstream-changes: true
454 post-step-run-condition: 'SUCCESS'
457 - integration-distribution-check
461 artifacts: 'karaf.log'
463 artifacts: 'karaf_console.log'
464 - email-notification:
465 email-prefix: '[snmp]'
468 name: 'snmp-integration-{stream}'
471 # Job template for ODL integration verify jobs
473 # This is similar to a normal verify job, but it runs
474 # when a project that's a dependency of your project
475 # is successfully built.
477 # Required Variables:
478 # stream: release stream (eg. stable-lithium or beryllium)
479 # branch: git branch (eg. stable/lithium or master)
486 daysToKeep: '{build-days-to-keep}'
487 numToKeep: '{build-num-to-keep}'
488 artifactDaysToKeep: '{build-artifact-days-to-keep}'
489 artifactNumToKeep: '{build-artifact-num-to-keep}'
497 credentials-id: '{ssh-credentials}'
503 - ssh-agent-credentials:
505 - '{ssh-credentials}'
509 jobs: 'odlparent-merge-{stream}'
513 - wipe-org-opendaylight-repo
514 - jacoco-nojava-workaround
515 - provide-maven-settings:
516 global-settings-file: '{odl-global-settings}'
517 settings-file: '{snmp-settings}'
520 maven-name: '{mvn33}'
522 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
523 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
524 settings: '{snmp-settings}'
525 global-settings: '{odl-global-settings}'
531 - email-notification:
532 email-prefix: '[snmp] [odlparent]'
546 artifactDaysToKeep: '1'
547 artifactNumToKeep: '1'
555 credentials-id: '{ssh-credentials}'
561 - ssh-agent-credentials:
563 - '{ssh-credentials}'
567 - gerrit-trigger-patch-sonar:
571 - wipe-org-opendaylight-repo
572 - jacoco-nojava-workaround
573 - provide-maven-settings:
574 global-settings-file: '{odl-global-settings}'
575 settings-file: '{snmp-settings}'
578 maven-name: '{mvn33}'
580 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dsonar'
581 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
582 settings: '{snmp-settings}'
583 global-settings: '{odl-global-settings}'
591 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
592 - email-notification:
593 email-prefix: '[snmp]'
597 name: 'snmp-clm-{stream}'
605 daysToKeep: '{build-days-to-keep}'
606 numToKeep: '{build-num-to-keep}'
607 artifactDaysToKeep: '{build-artifact-days-to-keep}'
608 artifactNumToKeep: '{build-artifact-num-to-keep}'
616 credentials-id: '{ssh-credentials}'
622 - ssh-agent-credentials:
624 - '{ssh-credentials}'
630 - wipe-org-opendaylight-repo
631 - provide-maven-settings:
632 global-settings-file: '{odl-global-settings}'
633 settings-file: '{snmp-settings}'
636 maven-name: '{mvn33}'
638 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'
639 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
640 settings: '{snmp-settings}'
641 global-settings: '{odl-global-settings}'
644 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
646 application-name: snmp
649 - email-notification:
650 email-prefix: '[snmp]'
653 name: 'snmp-validate-autorelease-{stream}'
654 disabled: '{obj:disable_autorelease}'
662 daysToKeep: '{build-days-to-keep}'
663 numToKeep: '{build-num-to-keep}'
664 artifactDaysToKeep: '{build-artifact-days-to-keep}'
665 artifactNumToKeep: '{build-artifact-num-to-keep}'
672 - autorelease-release-tag:
673 release-tag: 'validate'
674 - autorelease-release-branch:
675 release-branch: '{branch}'
676 - autorelease-release-datestamp:
681 url: 'https://git.opendaylight.org/gerrit/releng/autorelease'
690 - autorelease-build-timeout
691 - ssh-agent-credentials:
693 - '{ssh-credentials}'
697 server-name: 'OpenDaylight'
699 - patchset-created-event:
700 exclude-drafts: 'false'
701 exclude-trivial-rebase: 'false'
702 exclude-no-code-change: 'false'
703 - draft-published-event
704 - comment-added-contains-event:
705 comment-contains-value: 'recheck'
706 - comment-added-contains-event:
707 comment-contains-value: 'reverify'
708 - comment-added-contains-event:
709 comment-contains-value: 'revalidate'
711 - project-compare-type: 'ANT'
712 project-pattern: 'snmp'
714 - branch-compare-type: 'ANT'
715 branch-pattern: '**/{branch}'
718 - wipe-org-opendaylight-repo
719 - jacoco-nojava-workaround
720 - autorelease-checkout-gerrit-patch
721 - autorelease-generate-taglist
722 - autorelease-generate-release-patches
724 maven-version: '{mvn33}'
725 pom: validate-pom.xml
726 goals: 'clean install -T1.5C -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
729 settings: '{autorelease-settings}'
730 global-settings: '{odl-global-settings}'
733 maven-name: '{mvn33}'
735 goals: 'clean validate -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
736 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
737 settings: '{autorelease-settings}'
738 global-settings: '{odl-global-settings}'
739 automatic-archiving: false
740 post-step-run-condition: UNSTABLE
743 - shell: "./scripts/list-project-dependencies.sh"
744 - autorelease-sys-stats
749 - email-notification:
750 email-prefix: '[autorelease] [snmp]'