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}]'
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)
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'
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}'
106 maven-name: '{mvn33}'
108 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 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
110 settings: 'integration-distribution-settings'
112 global-settings: 'odl-global-settings'
113 global-settings-type: cfp
116 - email-notification:
117 email-prefix: '[{project}]'
121 deploy-unstable: false
123 maven-version: '{mvn33}'
126 # Template: {name}-distribution-check-{stream}
127 # Goal: Build a patch and make sure the distribution can deploy with this change
128 # Operation: This job template builds a patch, creates a distribution containing
129 # the patch, and triggers the distribution deploy test
131 name: '{project-name}-distribution-check-{stream}'
132 disabled: '{obj:disable_distribution_check}'
134 project-type: freestyle
140 daysToKeep: '{build-days-to-keep}'
141 numToKeep: '{build-num-to-keep}'
142 artifactDaysToKeep: '{build-artifact-days-to-keep}'
143 artifactNumToKeep: '{build-artifact-num-to-keep}'
146 - opendaylight-infra-parameters:
149 refspec: 'refs/heads/{branch}'
150 artifacts: '{archive-artifacts} **/dependency_tree.txt'
151 - integration-distribution-git-url
154 - integration-gerrit-scm:
155 basedir: '$GERRIT_PROJECT'
156 refspec: '$GERRIT_REFSPEC'
158 - integration-distribution-scm:
162 - opendaylight-infra-wrappers:
163 build-timeout: '{build-timeout}'
167 server-name: 'OpenDaylight'
169 - patchset-created-event:
170 exclude-drafts: 'true'
171 exclude-trivial-rebase: 'false'
172 exclude-no-code-change: 'true'
173 - draft-published-event
174 - comment-added-contains-event:
175 comment-contains-value: 'test-distribution'
176 - comment-added-contains-event:
177 comment-contains-value: 'reverify'
178 - comment-added-contains-event:
179 comment-contains-value: 'recheck'
181 - project-compare-type: 'ANT'
182 project-pattern: '{project}'
184 - branch-compare-type: 'ANT'
185 branch-pattern: '**/{branch}'
194 maven-version: '{mvn33}'
195 pom: '$GERRIT_PROJECT/pom.xml'
196 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}'
198 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
199 settings: '{mvn-settings}'
201 global-settings: 'odl-global-settings'
202 global-settings-type: cfp
204 maven-version: '{mvn33}'
205 pom: 'distribution/pom.xml'
206 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'
208 - '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
209 settings: '{mvn-settings}'
211 global-settings: 'odl-global-settings'
212 global-settings-type: cfp
213 - integration-distribution-check
216 - email-notification:
217 email-prefix: '[{project-name}]'
222 mkdir -p $WORKSPACE/archives
223 cp karaf*.log $WORKSPACE/archives
224 script-only-if-succeeded: False
225 script-only-if-failed: False
226 mark-unstable-if-failed: True
228 maven-version: '{mvn33}'
231 name: '{project-name}-integration-{stream}'
233 # Job template for ODL integration verify jobs
235 # This is similar to a normal verify job, but it runs
236 # when a project that's a dependency of your project
237 # is successfully built.
239 # Required Variables:
240 # stream: release stream (eg. stable-lithium or beryllium)
241 # branch: git branch (eg. stable/lithium or master)
243 project-type: freestyle
248 daysToKeep: '{build-days-to-keep}'
249 numToKeep: '{build-num-to-keep}'
250 artifactDaysToKeep: '{build-artifact-days-to-keep}'
251 artifactNumToKeep: '{build-artifact-num-to-keep}'
254 - opendaylight-infra-parameters:
257 refspec: 'refs/heads/{branch}'
258 artifacts: '{archive-artifacts}'
266 - opendaylight-infra-wrappers:
267 build-timeout: '{build-timeout}'
271 jobs: '{dependencies}'
275 - jacoco-nojava-workaround
276 - provide-maven-settings:
277 global-settings-file: 'odl-global-settings'
278 settings-file: '{mvn-settings}'
280 maven-version: '{mvn33}'
281 goals: '{mvn-goals} -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
284 settings: '{mvn-settings}'
286 global-settings: 'odl-global-settings'
287 global-settings-type: cfp
290 - email-notification:
291 email-prefix: '{email-upstream}'
295 maven-version: '{mvn33}'
298 name: '{project-name}-merge-{stream}'
300 # Job template for ODL merge jobs
302 # The purpose of this job template is to setup a ODL merge job
303 # and deploy artifacts to Nexus.
305 # Required Variables:
306 # stream: release stream (eg. stable-lithium or beryllium)
307 # branch: git branch (eg. stable/lithium or master)
316 artifactDaysToKeep: '{build-artifact-days-to-keep}'
317 artifactNumToKeep: '{build-artifact-num-to-keep}'
320 - opendaylight-infra-parameters:
323 refspec: 'refs/heads/{branch}'
324 artifacts: '{archive-artifacts}'
327 - gerrit-trigger-scm:
329 choosing-strategy: 'default'
332 - opendaylight-infra-wrappers:
333 build-timeout: '{build-timeout}'
337 - gerrit-trigger-patch-merged:
342 - jacoco-nojava-workaround
343 - provide-maven-settings:
344 global-settings-file: 'odl-global-settings'
345 settings-file: '{mvn-settings}'
348 maven-name: '{mvn33}'
349 goals: '{mvn-goals} -V -B -Djenkins -Dmerge -Dstream={stream} -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
350 maven-opts: '{mvn-opts}'
351 settings: '{mvn-settings}'
353 global-settings: 'odl-global-settings'
354 global-settings-type: cfp
355 post-step-run-condition: UNSTABLE
359 condition-kind: file-exists
360 condition-filename: deploy-site.xml
361 condition-basedir: workspace
363 # The strategy here is intentional to run Maven site:deploy twice
364 # once using regular pom.xml to produce a staged-site which is
365 # then used by deploy-site.xml to push to Nexus. This is a
366 # workaround to Maven Site's default linking code which creates
367 # incorrect URLs for sites due to auto-detection assuming your
368 # project is configured in a certain way which ODL is not.
371 maven-version: '{mvn33}'
373 goals: 'site:deploy -V -B -Dstream={stream}'
376 settings: '{mvn-settings}'
378 global-settings: 'odl-global-settings'
379 global-settings-type: cfp
381 maven-version: '{mvn33}'
383 goals: 'site:deploy -V -B -Dstream={stream}'
386 settings: '{mvn-settings}'
388 global-settings: 'odl-global-settings'
389 global-settings-type: cfp
395 - email-notification:
396 email-prefix: '[{project-name}]'
400 deploy-unstable: false
403 maven-version: '{mvn33}'
406 name: '{project-name}-periodic-{stream}'
408 # Job template for periodic builders
410 # The purpose of this job template is to setup a periodic
413 # Required Variables:
414 # stream: release stream (eg. stable-lithium or beryllium)
415 # branch: git branch (eg. stable/lithium or master)
417 project-type: freestyle
425 - opendaylight-infra-parameters:
428 refspec: 'refs/heads/{branch}'
429 artifacts: '{archive-artifacts}'
437 - opendaylight-infra-wrappers:
438 build-timeout: '{build-timeout}'
444 - jacoco-nojava-workaround
445 - provide-maven-settings:
446 global-settings-file: 'odl-global-settings'
447 settings-file: '{mvn-settings}'
449 maven-version: '{mvn33}'
450 goals: '{mvn-goals} -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
453 settings: '{mvn-settings}'
455 global-settings: 'odl-global-settings'
456 global-settings-type: cfp
459 - email-notification:
460 email-prefix: '[{project-name}]'
464 maven-version: '{mvn33}'
467 name: '{project-name}-sonar'
477 artifactDaysToKeep: '1'
478 artifactNumToKeep: '1'
481 - opendaylight-infra-parameters:
484 refspec: 'refs/heads/{branch}'
485 artifacts: '{archive-artifacts}'
493 - opendaylight-infra-wrappers:
494 build-timeout: '{build-timeout}'
498 - gerrit-trigger-patch-sonar:
502 - jacoco-nojava-workaround
503 - provide-maven-settings:
504 global-settings-file: 'odl-global-settings'
505 settings-file: '{mvn-settings}'
508 maven-name: '{mvn33}'
509 goals: '{mvn-goals} -V -B -Djenkins -Dsonar -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
510 maven-opts: '{mvn-opts}'
511 settings: '{mvn-settings}'
513 global-settings: 'odl-global-settings'
514 global-settings-type: cfp
522 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
523 - email-notification:
524 email-prefix: '[{project-name}]'
527 maven-version: '{mvn33}'
530 name: '{project-name}-validate-autorelease-{stream}'
531 disabled: '{obj:disable_autorelease}'
533 project-type: freestyle
542 - opendaylight-infra-parameters:
545 refspec: 'refs/heads/{branch}'
546 artifacts: '{archive-artifacts}'
547 - autorelease-release-tag:
548 release-tag: 'validate'
549 - autorelease-release-branch:
550 release-branch: '{branch}'
553 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
554 description: "Autorelease clone URL"
559 credentials-id: 'opendaylight-jenkins-ssh'
569 - opendaylight-infra-wrappers:
570 build-timeout: '{build-timeout}'
574 server-name: 'OpenDaylight'
576 - patchset-created-event:
577 exclude-drafts: 'true'
578 exclude-trivial-rebase: 'false'
579 exclude-no-code-change: 'true'
580 - draft-published-event
581 - comment-added-contains-event:
582 comment-contains-value: 'recheck'
583 - comment-added-contains-event:
584 comment-contains-value: 'reverify'
585 - comment-added-contains-event:
586 comment-contains-value: 'revalidate'
588 - project-compare-type: 'ANT'
589 project-pattern: '{project}'
591 - branch-compare-type: 'ANT'
592 branch-pattern: '**/{branch}'
598 - jacoco-nojava-workaround
599 - autorelease-checkout-gerrit-patch
600 - autorelease-generate-release-patches
602 maven-version: '{mvn33}'
603 pom: validate-pom.xml
604 goals: 'clean install dependency:tree -V -B -T1.5C -Pq -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
607 settings: 'autorelease-settings'
609 global-settings: 'odl-global-settings'
610 global-settings-type: cfp
612 maven-version: '{mvn33}'
614 goals: 'clean validate -V -B -Pq -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
616 - '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
617 settings: 'autorelease-settings'
619 global-settings: 'odl-global-settings'
620 global-settings-type: cfp
621 - autorelease-sys-stats
624 - email-notification:
625 email-prefix: '[autorelease] [{project-name}]'
627 maven-version: '{mvn33}'
630 name: '{project-name}-verify-{stream}-{maven}-{jdks}'
632 # Job template for ODL verify jobs
634 # The purpose of this job template is to setup a ODL verify job
636 # Required Variables:
637 # stream: release stream (eg. stable-lithium or beryllium)
638 # branch: git branch (eg. stable/lithium or master)
640 project-type: freestyle
649 - opendaylight-infra-parameters:
652 refspec: 'refs/heads/{branch}'
653 artifacts: '{archive-artifacts}'
656 - gerrit-trigger-scm:
657 refspec: '$GERRIT_REFSPEC'
658 choosing-strategy: 'gerrit'
661 - opendaylight-infra-wrappers:
662 build-timeout: '{build-timeout}'
665 - gerrit-trigger-patch-submitted:
670 - jacoco-nojava-workaround
671 - provide-maven-settings:
672 global-settings-file: 'odl-global-settings'
673 settings-file: '{mvn-settings}'
675 maven-version: '{mvn-version}'
676 goals: '{mvn-goals} -V -B -Djenkins -Dstream={stream} -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
679 settings: '{mvn-settings}'
681 global-settings: 'odl-global-settings'
682 global-settings-type: cfp
686 - email-notification:
687 email-prefix: '[{project-name}]'
690 maven-version: '{mvn-version}'