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 - 'armoury-verify-{stream}'
10 - 'armoury-merge-{stream}'
11 - 'armoury-periodic-{stream}'
12 - 'armoury-distribution-{stream}'
13 - 'armoury-distribution-check-{stream}'
14 - 'armoury-integration-{stream}'
16 - 'armoury-clm-{stream}'
17 - 'armoury-validate-autorelease-{stream}'
20 # stream: release stream (eg. stable-lithium or beryllium)
21 # branch: git branch (eg. stable/lithium or master)
29 disable_autorelease: True
30 disable_distribution_check: False
32 branch: 'stable/beryllium'
37 disable_autorelease: True
38 disable_distribution_check: False
42 # For the Job templates below replace instances of:
43 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
44 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
45 # MAVEN_GOALS with your maven goals to build
46 # MAVEN_OPTS with your maven options to build
49 name: 'armoury-verify-{stream}'
51 # Job template for ODL verify jobs
53 # The purpose of this job template is to setup a ODL verify job
56 # stream: release stream (eg. stable-lithium or beryllium)
57 # branch: git branch (eg. stable/lithium or master)
74 daysToKeep: '{build-days-to-keep}'
75 numToKeep: '{build-num-to-keep}'
76 artifactDaysToKeep: '{build-artifact-days-to-keep}'
77 artifactNumToKeep: '{build-artifact-num-to-keep}'
84 - gerrit-refspec-parameter:
85 refspec: 'refs/heads/{branch}'
89 credentials-id: '{ssh-credentials}'
90 refspec: '$GERRIT_REFSPEC'
91 choosing-strategy: 'gerrit'
95 - ssh-agent-credentials:
100 - gerrit-trigger-patch-submitted:
105 - wipe-org-opendaylight-repo
106 - jacoco-nojava-workaround
107 - provide-maven-settings:
108 global-settings-file: '{odl-global-settings}'
109 settings-file: '{armoury-settings}'
111 maven-version: '{mvn33}'
113 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dstream={stream}'
115 - '-Xmx2048m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
116 settings: '{armoury-settings}'
117 global-settings: '{odl-global-settings}'
121 - email-notification:
122 email-prefix: '[armoury]'
126 name: 'armoury-merge-{stream}'
128 # Job template for ODL merge jobs
130 # The purpose of this job template is to setup a ODL merge job
131 # and deploy artifacts to Nexus.
133 # Required Variables:
134 # stream: release stream (eg. stable-lithium or beryllium)
135 # branch: git branch (eg. stable/lithium or master)
144 artifactDaysToKeep: '{build-artifact-days-to-keep}'
145 artifactNumToKeep: '{build-artifact-num-to-keep}'
152 - gerrit-refspec-parameter:
153 refspec: 'refs/heads/{branch}'
156 - gerrit-trigger-scm:
157 credentials-id: '{ssh-credentials}'
159 choosing-strategy: 'default'
163 - ssh-agent-credentials:
165 - '{ssh-credentials}'
169 - gerrit-trigger-patch-merged:
174 - wipe-org-opendaylight-repo
175 - jacoco-nojava-workaround
176 - provide-maven-settings:
177 global-settings-file: '{odl-global-settings}'
178 settings-file: '{armoury-settings}'
181 maven-name: '{mvn33}'
183 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dmerge -Dstream={stream}'
184 maven-opts: '-Xmx2048m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
185 settings: '{armoury-settings}'
186 global-settings: '{odl-global-settings}'
187 post-step-run-condition: UNSTABLE
191 condition-kind: file-exists
192 condition-filename: deploy-site.xml
193 condition-basedir: workspace
195 # The strategy here is intentional to run Maven site:deploy twice
196 # once using regular pom.xml to produce a staged-site which is
197 # then used by deploy-site.xml to push to Nexus. This is a
198 # workaround to Maven Site's default linking code which creates
199 # incorrect URLs for sites due to auto-detection assuming your
200 # project is configured in a certain way which ODL is not.
203 maven-version: '{mvn33}'
205 goals: 'site:deploy -Dstream={stream}'
208 settings: '{armoury-settings}'
209 global-settings: '{odl-global-settings}'
211 maven-version: '{mvn33}'
213 goals: 'site:deploy -Dstream={stream}'
216 settings: '{armoury-settings}'
217 global-settings: '{odl-global-settings}'
224 artifacts: '**/target/surefire-reports/*-output.txt, '
225 - email-notification:
226 email-prefix: '[armoury]'
230 deploy-unstable: false
234 name: 'armoury-periodic-{stream}'
237 # Job template for periodic builders
239 # The purpose of this job template is to setup a periodic
242 # Required Variables:
243 # stream: release stream (eg. stable-lithium or beryllium)
244 # branch: git branch (eg. stable/lithium or master)
253 artifactDaysToKeep: '{build-artifact-days-to-keep}'
254 artifactNumToKeep: '{build-artifact-num-to-keep}'
262 credentials-id: '{ssh-credentials}'
268 - ssh-agent-credentials:
270 - '{ssh-credentials}'
276 - wipe-org-opendaylight-repo
277 - jacoco-nojava-workaround
278 - provide-maven-settings:
279 global-settings-file: '{odl-global-settings}'
280 settings-file: '{armoury-settings}'
283 maven-name: '{mvn33}'
285 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
286 maven-opts: '-Xmx2048m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
287 settings: '{armoury-settings}'
288 global-settings: '{odl-global-settings}'
294 - email-notification:
295 email-prefix: '[armoury]'
299 name: 'armoury-distribution-{stream}'
301 # Required variables:
302 # stream: release stream (eg. stable-lithium or beryllium)
303 # branch: git branch (eg. stable/lithium or master)
310 daysToKeep: '{build-days-to-keep}'
311 numToKeep: '{build-num-to-keep}'
312 artifactDaysToKeep: '{build-artifact-days-to-keep}'
313 artifactNumToKeep: '{build-artifact-num-to-keep}'
317 project: 'integration/distribution'
321 credentials-id: '{ssh-credentials}'
327 - ssh-agent-credentials:
329 - '{ssh-credentials}'
333 jobs: '{project}-merge-{stream}'
337 - wipe-org-opendaylight-repo
338 - provide-maven-settings:
339 global-settings-file: '{odl-global-settings}'
340 settings-file: '{armoury-settings}'
343 maven-name: '{mvn33}'
345 goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
346 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
347 settings: '{integration-settings}'
348 global-settings: '{odl-global-settings}'
351 - email-notification:
352 email-prefix: '[{project}]'
356 deploy-unstable: false
358 # Template: integration-patch-distribution-{stream}
359 # Goal: Build a patch and make sure the distribution can deploy with this change
360 # Operation: This job template builds a patch, creates a distribution containing
361 # the patch, and triggers the distribution deploy test
364 name: 'armoury-distribution-check-{stream}'
365 disabled: '{obj:disable_distribution_check}'
374 artifactDaysToKeep: '{build-artifact-days-to-keep}'
375 artifactNumToKeep: '{build-artifact-num-to-keep}'
378 - gerrit-project-parameter:
380 - gerrit-refspec-parameter:
384 - integration-distribution-git-url
387 - integration-gerrit-scm:
388 credentials-id: '{ssh-credentials}'
389 basedir: '$GERRIT_PROJECT'
390 refspec: '$GERRIT_REFSPEC'
392 - integration-distribution-scm:
393 credentials-id: '{ssh-credentials}'
398 - ssh-agent-credentials:
400 - '{ssh-credentials}'
404 server-name: 'OpenDaylight'
406 - patchset-created-event:
407 exclude-drafts: 'true'
408 exclude-trivial-rebase: 'false'
409 exclude-no-code-change: 'true'
410 - draft-published-event
411 - comment-added-contains-event:
412 comment-contains-value: 'test-distribution'
414 - project-compare-type: 'ANT'
415 project-pattern: '{name}'
417 - branch-compare-type: 'ANT'
418 branch-pattern: '**/{branch}'
426 - integration-get-bundle-url
428 properties-file: 'bundle.txt'
429 - wipe-org-opendaylight-repo
431 maven-version: '{mvn33}'
432 pom: '$GERRIT_PROJECT/pom.xml'
433 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}'
435 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
436 settings: '{armoury-settings}'
437 global-settings: '{odl-global-settings}'
440 maven-name: '{mvn33}'
441 root-pom: 'distribution/pom.xml'
442 goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
443 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
444 settings: '{armoury-settings}'
445 global-settings: '{odl-global-settings}'
446 ignore-upstream-changes: true
447 post-step-run-condition: 'SUCCESS'
451 - project: 'integration-distribution-deploy-{stream}'
453 predefined-parameters:
457 - email-notification:
458 email-prefix: '[armoury]'
461 name: 'armoury-integration-{stream}'
464 # Job template for ODL integration verify jobs
466 # This is similar to a normal verify job, but it runs
467 # when a project that's a dependency of your project
468 # is successfully built.
470 # Required Variables:
471 # stream: release stream (eg. stable-lithium or beryllium)
472 # branch: git branch (eg. stable/lithium or master)
479 daysToKeep: '{build-days-to-keep}'
480 numToKeep: '{build-num-to-keep}'
481 artifactDaysToKeep: '{build-artifact-days-to-keep}'
482 artifactNumToKeep: '{build-artifact-num-to-keep}'
490 credentials-id: '{ssh-credentials}'
496 - ssh-agent-credentials:
498 - '{ssh-credentials}'
502 jobs: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream},mdsal-merge-{stream}'
506 - wipe-org-opendaylight-repo
507 - jacoco-nojava-workaround
508 - provide-maven-settings:
509 global-settings-file: '{odl-global-settings}'
510 settings-file: '{armoury-settings}'
513 maven-name: '{mvn33}'
515 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
516 maven-opts: '-Xmx2048m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
517 settings: '{armoury-settings}'
518 global-settings: '{odl-global-settings}'
524 - email-notification:
525 email-prefix: '[armoury] [odlparent] [yangtools] [controller] [mdsal]'
529 name: 'armoury-sonar'
539 artifactDaysToKeep: '1'
540 artifactNumToKeep: '1'
548 credentials-id: '{ssh-credentials}'
554 - ssh-agent-credentials:
556 - '{ssh-credentials}'
560 - gerrit-trigger-patch-sonar:
564 - wipe-org-opendaylight-repo
565 - jacoco-nojava-workaround
566 - provide-maven-settings:
567 global-settings-file: '{odl-global-settings}'
568 settings-file: '{armoury-settings}'
571 maven-name: '{mvn33}'
573 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dsonar'
574 maven-opts: '-Xmx2048m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
575 settings: '{armoury-settings}'
576 global-settings: '{odl-global-settings}'
584 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
585 - email-notification:
586 email-prefix: '[armoury]'
590 name: 'armoury-clm-{stream}'
598 daysToKeep: '{build-days-to-keep}'
599 numToKeep: '{build-num-to-keep}'
600 artifactDaysToKeep: '{build-artifact-days-to-keep}'
601 artifactNumToKeep: '{build-artifact-num-to-keep}'
609 credentials-id: '{ssh-credentials}'
615 - ssh-agent-credentials:
617 - '{ssh-credentials}'
623 - wipe-org-opendaylight-repo
624 - provide-maven-settings:
625 global-settings-file: '{odl-global-settings}'
626 settings-file: '{armoury-settings}'
629 maven-name: '{mvn33}'
631 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'
632 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
633 settings: '{armoury-settings}'
634 global-settings: '{odl-global-settings}'
637 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
639 application-name: armoury
642 - email-notification:
643 email-prefix: '[armoury]'
646 name: 'armoury-validate-autorelease-{stream}'
647 disabled: '{obj:disable_autorelease}'
655 daysToKeep: '{build-days-to-keep}'
656 numToKeep: '{build-num-to-keep}'
657 artifactDaysToKeep: '{build-artifact-days-to-keep}'
658 artifactNumToKeep: '{build-artifact-num-to-keep}'
665 - autorelease-release-tag:
666 release-tag: 'validate'
667 - autorelease-release-branch:
668 release-branch: '{branch}'
669 - autorelease-release-datestamp:
674 url: 'https://git.opendaylight.org/gerrit/releng/autorelease'
683 - autorelease-build-timeout
684 - ssh-agent-credentials:
686 - '{ssh-credentials}'
690 server-name: 'OpenDaylight'
692 - patchset-created-event:
693 exclude-drafts: 'false'
694 exclude-trivial-rebase: 'false'
695 exclude-no-code-change: 'false'
696 - draft-published-event
697 - comment-added-contains-event:
698 comment-contains-value: 'recheck'
699 - comment-added-contains-event:
700 comment-contains-value: 'reverify'
701 - comment-added-contains-event:
702 comment-contains-value: 'revalidate'
704 - project-compare-type: 'ANT'
705 project-pattern: 'armoury'
707 - branch-compare-type: 'ANT'
708 branch-pattern: '**/{branch}'
711 - wipe-org-opendaylight-repo
712 - jacoco-nojava-workaround
713 - autorelease-checkout-gerrit-patch
714 - autorelease-generate-taglist
715 - autorelease-generate-release-patches
717 maven-version: '{mvn33}'
718 pom: validate-pom.xml
719 goals: 'clean install -T1.5C -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
722 settings: '{autorelease-settings}'
723 global-settings: '{odl-global-settings}'
726 maven-name: '{mvn33}'
728 goals: 'clean validate -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
729 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
730 settings: '{autorelease-settings}'
731 global-settings: '{odl-global-settings}'
732 automatic-archiving: false
733 post-step-run-condition: UNSTABLE
736 - shell: "./scripts/list-project-dependencies.sh"
737 - autorelease-sys-stats
742 - email-notification:
743 email-prefix: '[autorelease] [armoury]'