2 # Template used for running CLM scans
4 # {name} - Project Shortname
5 # {project} - Fully qualified project name
6 # {mvn-settings} - Project maven settings file
9 name: '{project-name}-clm-{stream}'
16 daysToKeep: '{build-days-to-keep}'
17 numToKeep: '{build-num-to-keep}'
20 - opendaylight-infra-parameters:
23 refspec: 'refs/heads/{branch}'
24 artifacts: '{archive-artifacts}'
32 - opendaylight-infra-wrappers:
33 build-timeout: '{build-timeout}'
39 - provide-maven-settings:
40 global-settings-file: 'odl-global-settings'
41 settings-file: '{mvn-settings}'
46 goals: 'clean install dependency:tree com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
47 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
48 settings: '{mvn-settings}'
50 global-settings: 'odl-global-settings'
51 global-settings-type: cfp
54 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
56 application-name: '{project-name}'
60 email-prefix: '[{project-name}]'
62 maven-version: '{mvn33}'
65 name: '{project-name}-distribution-{stream}'
68 # stream: release stream (eg. stable-lithium or beryllium)
69 # branch: git branch (eg. stable/lithium or master)
76 daysToKeep: '{build-days-to-keep}'
77 numToKeep: '{build-num-to-keep}'
78 artifactDaysToKeep: '{build-artifact-days-to-keep}'
79 artifactNumToKeep: '{build-artifact-num-to-keep}'
82 - opendaylight-infra-parameters:
83 project: 'integration/distribution'
85 refspec: 'refs/heads/{branch}'
86 artifacts: '{archive-artifacts} **/dependency_tree.txt'
94 - opendaylight-infra-wrappers:
95 build-timeout: '{build-timeout}'
99 jobs: '{project}-merge-{stream}'
103 - provide-maven-settings:
104 global-settings-file: 'odl-global-settings'
105 settings-file: '{mvn-settings}'
108 maven-name: '{mvn33}'
110 goals: 'clean install dependency:tree -DoutputFile=dependency_tree.txt -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
111 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
112 settings: 'integration-distribution-settings'
114 global-settings: 'odl-global-settings'
115 global-settings-type: cfp
118 - email-notification:
119 email-prefix: '[{project}]'
123 deploy-unstable: false
125 maven-version: '{mvn33}'
128 # Template: {name}-distribution-check-{stream}
129 # Goal: Build a patch and make sure the distribution can deploy with this change
130 # Operation: This job template builds a patch, creates a distribution containing
131 # the patch, and triggers the distribution deploy test
133 name: '{project-name}-distribution-check-{stream}'
134 disabled: '{obj:disable_distribution_check}'
142 daysToKeep: '{build-days-to-keep}'
143 numToKeep: '{build-num-to-keep}'
144 artifactDaysToKeep: '{build-artifact-days-to-keep}'
145 artifactNumToKeep: '{build-artifact-num-to-keep}'
148 - opendaylight-infra-parameters:
151 refspec: 'refs/heads/{branch}'
152 artifacts: '{archive-artifacts} **/dependency_tree.txt'
153 - integration-distribution-git-url
156 - integration-gerrit-scm:
157 basedir: '$GERRIT_PROJECT'
158 refspec: '$GERRIT_REFSPEC'
160 - integration-distribution-scm:
164 - opendaylight-infra-wrappers:
165 build-timeout: '{build-timeout}'
169 server-name: 'OpenDaylight'
171 - patchset-created-event:
172 exclude-drafts: 'true'
173 exclude-trivial-rebase: 'false'
174 exclude-no-code-change: 'true'
175 - draft-published-event
176 - comment-added-contains-event:
177 comment-contains-value: 'test-distribution'
178 - comment-added-contains-event:
179 comment-contains-value: 'reverify'
180 - comment-added-contains-event:
181 comment-contains-value: 'recheck'
183 - project-compare-type: 'ANT'
184 project-pattern: '{project}'
186 - branch-compare-type: 'ANT'
187 branch-pattern: '**/{branch}'
196 maven-version: '{mvn33}'
197 pom: '$GERRIT_PROJECT/pom.xml'
198 goals: 'clean install dependency:tree -DoutputFile=dependency_tree.txt -V -B -Pq -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}'
200 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
201 settings: '{mvn-settings}'
203 global-settings: 'odl-global-settings'
204 global-settings-type: cfp
207 maven-name: '{mvn33}'
208 root-pom: 'distribution/pom.xml'
209 goals: 'clean install dependency:tree -DoutputFile=dependency_tree.txt -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
210 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
211 settings: '{mvn-settings}'
213 global-settings: 'odl-global-settings'
214 global-settings-type: cfp
215 ignore-upstream-changes: true
216 post-step-run-condition: 'SUCCESS'
219 - integration-distribution-check
222 - email-notification:
223 email-prefix: '[{project-name}]'
228 mkdir -p $WORKSPACE/archives
229 cp karaf*.log $WORKSPACE/archives
230 script-only-if-succeeded: False
231 script-only-if-failed: False
232 mark-unstable-if-failed: True
234 maven-version: '{mvn33}'
237 name: '{project-name}-integration-{stream}'
239 # Job template for ODL integration verify jobs
241 # This is similar to a normal verify job, but it runs
242 # when a project that's a dependency of your project
243 # is successfully built.
245 # Required Variables:
246 # stream: release stream (eg. stable-lithium or beryllium)
247 # branch: git branch (eg. stable/lithium or master)
254 daysToKeep: '{build-days-to-keep}'
255 numToKeep: '{build-num-to-keep}'
256 artifactDaysToKeep: '{build-artifact-days-to-keep}'
257 artifactNumToKeep: '{build-artifact-num-to-keep}'
260 - opendaylight-infra-parameters:
263 refspec: 'refs/heads/{branch}'
264 artifacts: '{archive-artifacts}'
272 - opendaylight-infra-wrappers:
273 build-timeout: '{build-timeout}'
277 jobs: '{dependencies}'
281 - jacoco-nojava-workaround
282 - provide-maven-settings:
283 global-settings-file: 'odl-global-settings'
284 settings-file: '{mvn-settings}'
287 maven-name: '{mvn33}'
288 goals: '{mvn-goals} -V -B -Djenkins'
289 maven-opts: '{mvn-opts}'
290 settings: '{mvn-settings}'
292 global-settings: 'odl-global-settings'
293 global-settings-type: cfp
299 - email-notification:
300 email-prefix: '{email-upstream}'
303 maven-version: '{mvn33}'
306 name: '{project-name}-merge-{stream}'
308 # Job template for ODL merge jobs
310 # The purpose of this job template is to setup a ODL merge job
311 # and deploy artifacts to Nexus.
313 # Required Variables:
314 # stream: release stream (eg. stable-lithium or beryllium)
315 # branch: git branch (eg. stable/lithium or master)
324 artifactDaysToKeep: '{build-artifact-days-to-keep}'
325 artifactNumToKeep: '{build-artifact-num-to-keep}'
328 - opendaylight-infra-parameters:
331 refspec: 'refs/heads/{branch}'
332 artifacts: '{archive-artifacts}'
335 - gerrit-trigger-scm:
337 choosing-strategy: 'default'
340 - opendaylight-infra-wrappers:
341 build-timeout: '{build-timeout}'
345 - gerrit-trigger-patch-merged:
350 - jacoco-nojava-workaround
351 - provide-maven-settings:
352 global-settings-file: 'odl-global-settings'
353 settings-file: '{mvn-settings}'
356 maven-name: '{mvn33}'
357 goals: '{mvn-goals} -V -B -Djenkins -Dmerge -Dstream={stream}'
358 maven-opts: '{mvn-opts}'
359 settings: '{mvn-settings}'
361 global-settings: 'odl-global-settings'
362 global-settings-type: cfp
363 post-step-run-condition: UNSTABLE
367 condition-kind: file-exists
368 condition-filename: deploy-site.xml
369 condition-basedir: workspace
371 # The strategy here is intentional to run Maven site:deploy twice
372 # once using regular pom.xml to produce a staged-site which is
373 # then used by deploy-site.xml to push to Nexus. This is a
374 # workaround to Maven Site's default linking code which creates
375 # incorrect URLs for sites due to auto-detection assuming your
376 # project is configured in a certain way which ODL is not.
379 maven-version: '{mvn33}'
381 goals: 'site:deploy -V -B -Dstream={stream}'
384 settings: '{mvn-settings}'
386 global-settings: 'odl-global-settings'
387 global-settings-type: cfp
389 maven-version: '{mvn33}'
391 goals: 'site:deploy -V -B -Dstream={stream}'
394 settings: '{mvn-settings}'
396 global-settings: 'odl-global-settings'
397 global-settings-type: cfp
403 - email-notification:
404 email-prefix: '[{project-name}]'
408 deploy-unstable: false
411 maven-version: '{mvn33}'
414 name: '{project-name}-periodic-{stream}'
416 # Job template for periodic builders
418 # The purpose of this job template is to setup a periodic
421 # Required Variables:
422 # stream: release stream (eg. stable-lithium or beryllium)
423 # branch: git branch (eg. stable/lithium or master)
433 - opendaylight-infra-parameters:
436 refspec: 'refs/heads/{branch}'
437 artifacts: '{archive-artifacts}'
445 - opendaylight-infra-wrappers:
446 build-timeout: '{build-timeout}'
452 - jacoco-nojava-workaround
453 - provide-maven-settings:
454 global-settings-file: 'odl-global-settings'
455 settings-file: '{mvn-settings}'
458 maven-name: '{mvn33}'
459 goals: '{mvn-goals} -V -B -Djenkins'
460 maven-opts: '{mvn-opts}'
461 settings: '{mvn-settings}'
463 global-settings: 'odl-global-settings'
464 global-settings-type: cfp
470 - email-notification:
471 email-prefix: '[{project-name}]'
474 maven-version: '{mvn33}'
477 name: '{project-name}-sonar'
487 artifactDaysToKeep: '1'
488 artifactNumToKeep: '1'
491 - opendaylight-infra-parameters:
494 refspec: 'refs/heads/{branch}'
495 artifacts: '{archive-artifacts}'
503 - opendaylight-infra-wrappers:
504 build-timeout: '{build-timeout}'
508 - gerrit-trigger-patch-sonar:
512 - jacoco-nojava-workaround
513 - provide-maven-settings:
514 global-settings-file: 'odl-global-settings'
515 settings-file: '{mvn-settings}'
518 maven-name: '{mvn33}'
519 goals: '{mvn-goals} -V -B -Djenkins -Dsonar'
520 maven-opts: '{mvn-opts}'
521 settings: '{mvn-settings}'
523 global-settings: 'odl-global-settings'
524 global-settings-type: cfp
532 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
533 - email-notification:
534 email-prefix: '[{project-name}]'
537 maven-version: '{mvn33}'
540 name: '{project-name}-validate-autorelease-{stream}'
541 disabled: '{obj:disable_autorelease}'
549 daysToKeep: '{build-days-to-keep}'
550 numToKeep: '{build-num-to-keep}'
551 artifactDaysToKeep: '{build-artifact-days-to-keep}'
552 artifactNumToKeep: '{build-artifact-num-to-keep}'
555 - opendaylight-infra-parameters:
558 refspec: 'refs/heads/{branch}'
559 artifacts: '{archive-artifacts}'
560 - autorelease-release-tag:
561 release-tag: 'validate'
562 - autorelease-release-branch:
563 release-branch: '{branch}'
566 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
567 description: "Autorelease clone URL"
572 credentials-id: 'opendaylight-jenkins-ssh'
582 - opendaylight-infra-wrappers:
583 build-timeout: '{build-timeout}'
587 server-name: 'OpenDaylight'
589 - patchset-created-event:
590 exclude-drafts: 'true'
591 exclude-trivial-rebase: 'false'
592 exclude-no-code-change: 'true'
593 - draft-published-event
594 - comment-added-contains-event:
595 comment-contains-value: 'recheck'
596 - comment-added-contains-event:
597 comment-contains-value: 'reverify'
598 - comment-added-contains-event:
599 comment-contains-value: 'revalidate'
601 - project-compare-type: 'ANT'
602 project-pattern: '{project}'
604 - branch-compare-type: 'ANT'
605 branch-pattern: '**/{branch}'
611 - jacoco-nojava-workaround
612 - autorelease-checkout-gerrit-patch
613 - autorelease-generate-release-patches
615 maven-version: '{mvn33}'
616 pom: validate-pom.xml
617 goals: 'clean install dependency:tree -V -B -T1.5C -Pq -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
620 settings: 'autorelease-settings'
622 global-settings: 'odl-global-settings'
623 global-settings-type: cfp
626 maven-name: '{mvn33}'
628 goals: 'clean validate -V -B -Pq -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
629 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
630 settings: 'autorelease-settings'
632 global-settings: 'odl-global-settings'
633 global-settings-type: cfp
634 automatic-archiving: false
635 post-step-run-condition: UNSTABLE
638 - autorelease-sys-stats
641 - email-notification:
642 email-prefix: '[autorelease] [{project-name}]'
644 maven-version: '{mvn33}'
647 name: '{project-name}-verify-{stream}'
649 # Job template for ODL verify jobs
651 # The purpose of this job template is to setup a ODL verify job
653 # Required Variables:
654 # stream: release stream (eg. stable-lithium or beryllium)
655 # branch: git branch (eg. stable/lithium or master)
675 - opendaylight-infra-parameters:
678 refspec: 'refs/heads/{branch}'
679 artifacts: '{archive-artifacts}'
682 - gerrit-trigger-scm:
683 refspec: '$GERRIT_REFSPEC'
684 choosing-strategy: 'gerrit'
687 - opendaylight-infra-wrappers:
688 build-timeout: '{build-timeout}'
691 - gerrit-trigger-patch-submitted:
696 - jacoco-nojava-workaround
697 - provide-maven-settings:
698 global-settings-file: 'odl-global-settings'
699 settings-file: '{mvn-settings}'
701 maven-version: '{mvn33}'
702 goals: '{mvn-goals} -V -B -Djenkins -Dstream={stream}'
705 settings: '{mvn-settings}'
707 global-settings: 'odl-global-settings'
708 global-settings-type: cfp
712 - email-notification:
713 email-prefix: '[{project-name}]'
716 maven-version: '{mvn33}'
719 name: '{project-name}-verify-{stream}-{maven}-{jdks}'
721 # Job template for ODL verify jobs
723 # The purpose of this job template is to setup a ODL verify job
725 # Required Variables:
726 # stream: release stream (eg. stable-lithium or beryllium)
727 # branch: git branch (eg. stable/lithium or master)
729 project-type: freestyle
738 - opendaylight-infra-parameters:
741 refspec: 'refs/heads/{branch}'
742 artifacts: '{archive-artifacts}'
745 - gerrit-trigger-scm:
746 refspec: '$GERRIT_REFSPEC'
747 choosing-strategy: 'gerrit'
750 - opendaylight-infra-wrappers:
751 build-timeout: '{build-timeout}'
754 - gerrit-trigger-patch-submitted:
759 - jacoco-nojava-workaround
760 - provide-maven-settings:
761 global-settings-file: 'odl-global-settings'
762 settings-file: '{mvn-settings}'
764 maven-version: '{mvn-version}'
765 goals: '{mvn-goals} -V -B -Djenkins -Dstream={stream}'
768 settings: '{mvn-settings}'
770 global-settings: 'odl-global-settings'
771 global-settings-type: cfp
775 - email-notification:
776 email-prefix: '[{project-name}]'
779 maven-version: '{mvn-version}'