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}'
11 project-type: freestyle
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}'
43 maven-version: '{mvn33}'
45 goals: 'clean install dependency:tree com.sonatype.clm:clm-maven-plugin:index -V -B -Pq -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
47 - '-Xmx4096m -XX:MaxPermSize=512m'
48 settings: '{mvn-settings}'
50 global-settings: 'odl-global-settings'
51 global-settings-type: cfp
52 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
54 application-name: '{project-name}'
58 email-prefix: '[{project-name}]'
59 - opendaylight-infra-shiplogs:
60 maven-version: '{mvn33}'
63 name: '{project-name}-distribution-{stream}'
66 # stream: release stream (eg. stable-lithium or beryllium)
67 # branch: git branch (eg. stable/lithium or master)
69 project-type: freestyle
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}'
80 - opendaylight-infra-parameters:
81 project: 'integration/distribution'
83 refspec: 'refs/heads/{branch}'
84 artifacts: '{archive-artifacts} **/dependency_tree.txt **/target/surefire-reports/*-output.txt'
92 - opendaylight-infra-wrappers:
93 build-timeout: '{build-timeout}'
97 jobs: '{project}-merge-{stream}'
101 - provide-maven-settings:
102 global-settings-file: 'odl-global-settings'
103 settings-file: '{mvn-settings}'
105 maven-version: '{mvn33}'
107 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'
109 - '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
110 settings: 'integration-distribution-settings'
112 global-settings: 'odl-global-settings'
113 global-settings-type: cfp
115 maven-version: '{mvn33}'
117 goals: 'validate jar:jar deploy:deploy -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
119 - '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
120 settings: 'integration-distribution-settings'
122 global-settings: 'odl-global-settings'
123 global-settings-type: cfp
126 - email-notification:
127 email-prefix: '[{project}]'
128 - opendaylight-infra-shiplogs:
129 maven-version: '{mvn33}'
132 # Template: {name}-distribution-check-{stream}
133 # Goal: Build a patch and make sure the distribution can deploy with this change
134 # Operation: This job template builds a patch, creates a distribution containing
135 # the patch, and triggers the distribution deploy test
137 name: '{project-name}-distribution-check-{stream}'
138 disabled: '{obj:disable_distribution_check}'
140 project-type: freestyle
146 daysToKeep: '{build-days-to-keep}'
147 numToKeep: '{build-num-to-keep}'
148 artifactDaysToKeep: '{build-artifact-days-to-keep}'
149 artifactNumToKeep: '{build-artifact-num-to-keep}'
152 - opendaylight-infra-parameters:
155 refspec: 'refs/heads/{branch}'
156 artifacts: '{archive-artifacts} **/dependency_tree.txt **/target/surefire-reports/*-output.txt'
157 - integration-distribution-git-url
160 - integration-gerrit-scm:
161 basedir: '$GERRIT_PROJECT'
162 refspec: '$GERRIT_REFSPEC'
164 - integration-distribution-scm:
168 - opendaylight-infra-wrappers:
169 build-timeout: '{build-timeout}'
173 server-name: 'OpenDaylight'
175 - patchset-created-event:
176 exclude-drafts: 'true'
177 exclude-trivial-rebase: 'false'
178 exclude-no-code-change: 'true'
179 - draft-published-event
180 - comment-added-contains-event:
181 comment-contains-value: 'test-distribution'
182 - comment-added-contains-event:
183 comment-contains-value: 'reverify'
184 - comment-added-contains-event:
185 comment-contains-value: 'recheck'
187 - project-compare-type: 'ANT'
188 project-pattern: '{project}'
190 - branch-compare-type: 'ANT'
191 branch-pattern: '**/{branch}'
200 maven-version: '{mvn33}'
201 pom: '$GERRIT_PROJECT/pom.xml'
202 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}'
204 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
205 settings: '{mvn-settings}'
207 global-settings: 'odl-global-settings'
208 global-settings-type: cfp
210 maven-version: '{mvn33}'
211 pom: 'distribution/pom.xml'
212 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'
214 - '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
215 settings: '{mvn-settings}'
217 global-settings: 'odl-global-settings'
218 global-settings-type: cfp
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
235 - opendaylight-infra-shiplogs:
236 maven-version: '{mvn33}'
239 name: '{project-name}-integration-{stream}'
241 # Job template for ODL integration verify jobs
243 # This is similar to a normal verify job, but it runs
244 # when a project that's a dependency of your project
245 # is successfully built.
247 # Required Variables:
248 # stream: release stream (eg. stable-lithium or beryllium)
249 # branch: git branch (eg. stable/lithium or master)
251 project-type: freestyle
256 daysToKeep: '{build-days-to-keep}'
257 numToKeep: '{build-num-to-keep}'
258 artifactDaysToKeep: '{build-artifact-days-to-keep}'
259 artifactNumToKeep: '{build-artifact-num-to-keep}'
262 - opendaylight-infra-parameters:
265 refspec: 'refs/heads/{branch}'
266 artifacts: '{archive-artifacts}'
274 - opendaylight-infra-wrappers:
275 build-timeout: '{build-timeout}'
279 jobs: '{dependencies}'
283 - jacoco-nojava-workaround
284 - provide-maven-settings:
285 global-settings-file: 'odl-global-settings'
286 settings-file: '{mvn-settings}'
288 maven-version: '{mvn33}'
289 goals: '{mvn-goals} -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
292 settings: '{mvn-settings}'
294 global-settings: 'odl-global-settings'
295 global-settings-type: cfp
298 - email-notification:
299 email-prefix: '{email-upstream}'
302 - opendaylight-infra-shiplogs:
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)
317 project-type: freestyle
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}'
355 maven-version: '{mvn33}'
356 goals: '{mvn-goals} -V -B -Djenkins -Dmerge -Dstream={stream} -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
359 settings: '{mvn-settings}'
361 global-settings: 'odl-global-settings'
362 global-settings-type: cfp
364 maven-version: '{mvn33}'
365 goals: 'validate jar:jar deploy:deploy -V -B -Djenkins -Dmerge -Dstream={stream} -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
368 settings: '{mvn-settings}'
370 global-settings: 'odl-global-settings'
371 global-settings-type: cfp
373 condition-kind: file-exists
374 condition-filename: deploy-site.xml
375 condition-basedir: workspace
377 # The strategy here is intentional to run Maven site:deploy twice
378 # once using regular pom.xml to produce a staged-site which is
379 # then used by deploy-site.xml to push to Nexus. This is a
380 # workaround to Maven Site's default linking code which creates
381 # incorrect URLs for sites due to auto-detection assuming your
382 # project is configured in a certain way which ODL is not.
385 maven-version: '{mvn33}'
387 goals: 'site:deploy -V -B -Dstream={stream}'
390 settings: '{mvn-settings}'
392 global-settings: 'odl-global-settings'
393 global-settings-type: cfp
395 maven-version: '{mvn33}'
397 goals: 'site:deploy -V -B -Dstream={stream}'
400 settings: '{mvn-settings}'
402 global-settings: 'odl-global-settings'
403 global-settings-type: cfp
406 - email-notification:
407 email-prefix: '[{project-name}]'
410 - opendaylight-infra-shiplogs:
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)
425 project-type: freestyle
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}'
457 maven-version: '{mvn33}'
458 goals: '{mvn-goals} -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
461 settings: '{mvn-settings}'
463 global-settings: 'odl-global-settings'
464 global-settings-type: cfp
467 - email-notification:
468 email-prefix: '[{project-name}]'
471 - opendaylight-infra-shiplogs:
472 maven-version: '{mvn33}'
475 name: '{project-name}-sonar'
478 project-type: freestyle
485 artifactDaysToKeep: '1'
486 artifactNumToKeep: '1'
489 - opendaylight-infra-parameters:
492 refspec: 'refs/heads/{branch}'
493 artifacts: '{archive-artifacts}'
501 - opendaylight-infra-wrappers:
502 build-timeout: '{build-timeout}'
506 - gerrit-trigger-patch-sonar:
510 - jacoco-nojava-workaround
511 - provide-maven-settings:
512 global-settings-file: 'odl-global-settings'
513 settings-file: '{mvn-settings}'
515 maven-version: '{mvn33}'
516 goals: '{mvn-goals} -V -B -Djenkins -Dsonar -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
519 settings: '{mvn-settings}'
521 global-settings: 'odl-global-settings'
522 global-settings-type: cfp
524 maven-version: '{mvn33}'
525 # We should switch to the recommended configuration of sonar once
526 # JJB adds support for configurating the Sonar wrapper:
527 # http://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+Jenkins
528 goals: 'sonar:sonar -V -B -Djenkins -Dsonar -Dsonar.host.url=https://sonar.opendaylight.org -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
531 settings: '{mvn-settings}'
533 global-settings: 'odl-global-settings'
534 global-settings-type: cfp
537 - email-notification:
538 email-prefix: '[{project-name}]'
541 - opendaylight-infra-shiplogs:
542 maven-version: '{mvn33}'
545 name: '{project-name}-validate-autorelease-{stream}'
546 disabled: '{obj:disable_autorelease}'
548 project-type: freestyle
557 - opendaylight-infra-parameters:
560 refspec: 'refs/heads/{branch}'
561 artifacts: '{archive-artifacts}'
562 - autorelease-release-tag:
563 release-tag: 'validate'
564 - autorelease-release-branch:
565 release-branch: '{branch}'
568 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
569 description: "Autorelease clone URL"
574 credentials-id: 'opendaylight-jenkins-ssh'
584 - opendaylight-infra-wrappers:
585 build-timeout: '{build-timeout}'
589 server-name: 'OpenDaylight'
591 - patchset-created-event:
592 exclude-drafts: 'true'
593 exclude-trivial-rebase: 'false'
594 exclude-no-code-change: 'true'
595 - draft-published-event
596 - comment-added-contains-event:
597 comment-contains-value: 'recheck'
598 - comment-added-contains-event:
599 comment-contains-value: 'reverify'
600 - comment-added-contains-event:
601 comment-contains-value: 'revalidate'
603 - project-compare-type: 'ANT'
604 project-pattern: '{project}'
606 - branch-compare-type: 'ANT'
607 branch-pattern: '**/{branch}'
613 - jacoco-nojava-workaround
614 - autorelease-checkout-gerrit-patch
615 - autorelease-generate-release-patches
617 maven-version: '{mvn33}'
618 pom: validate-pom.xml
619 goals: 'clean install dependency:tree -V -B -T1.5C -Pq -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
622 settings: 'autorelease-settings'
624 global-settings: 'odl-global-settings'
625 global-settings-type: cfp
627 maven-version: '{mvn33}'
629 goals: 'clean validate -V -B -Pq -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
631 - '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
632 settings: 'autorelease-settings'
634 global-settings: 'odl-global-settings'
635 global-settings-type: cfp
636 - autorelease-sys-stats
639 - email-notification:
640 email-prefix: '[autorelease] [{project-name}]'
641 - opendaylight-infra-shiplogs:
642 maven-version: '{mvn33}'
645 name: '{project-name}-verify-{stream}-{maven}-{jdks}'
647 # Job template for ODL verify jobs
649 # The purpose of this job template is to setup a ODL verify job
651 # Required Variables:
652 # stream: release stream (eg. stable-lithium or beryllium)
653 # branch: git branch (eg. stable/lithium or master)
655 project-type: freestyle
664 - opendaylight-infra-parameters:
667 refspec: 'refs/heads/{branch}'
668 artifacts: '{archive-artifacts}'
671 - gerrit-trigger-scm:
672 refspec: '$GERRIT_REFSPEC'
673 choosing-strategy: 'gerrit'
676 - opendaylight-infra-wrappers:
677 build-timeout: '{build-timeout}'
680 - gerrit-trigger-patch-submitted:
685 - jacoco-nojava-workaround
686 - provide-maven-settings:
687 global-settings-file: 'odl-global-settings'
688 settings-file: '{mvn-settings}'
690 maven-version: '{mvn-version}'
691 goals: '{mvn-goals} -V -B -Djenkins -Dstream={stream} -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
694 settings: '{mvn-settings}'
696 global-settings: 'odl-global-settings'
697 global-settings-type: cfp
701 - email-notification:
702 email-prefix: '[{project-name}]'
704 - opendaylight-infra-shiplogs:
705 maven-version: '{mvn-version}'