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)
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} -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
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
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'
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}'
516 maven-name: '{mvn33}'
517 goals: '{mvn-goals} -V -B -Djenkins -Dsonar -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
518 maven-opts: '{mvn-opts}'
519 settings: '{mvn-settings}'
521 global-settings: 'odl-global-settings'
522 global-settings-type: cfp
530 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
531 - email-notification:
532 email-prefix: '[{project-name}]'
534 - opendaylight-infra-shiplogs:
535 maven-version: '{mvn33}'
538 name: '{project-name}-validate-autorelease-{stream}'
539 disabled: '{obj:disable_autorelease}'
541 project-type: freestyle
550 - opendaylight-infra-parameters:
553 refspec: 'refs/heads/{branch}'
554 artifacts: '{archive-artifacts}'
555 - autorelease-release-tag:
556 release-tag: 'validate'
557 - autorelease-release-branch:
558 release-branch: '{branch}'
561 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
562 description: "Autorelease clone URL"
567 credentials-id: 'opendaylight-jenkins-ssh'
577 - opendaylight-infra-wrappers:
578 build-timeout: '{build-timeout}'
582 server-name: 'OpenDaylight'
584 - patchset-created-event:
585 exclude-drafts: 'true'
586 exclude-trivial-rebase: 'false'
587 exclude-no-code-change: 'true'
588 - draft-published-event
589 - comment-added-contains-event:
590 comment-contains-value: 'recheck'
591 - comment-added-contains-event:
592 comment-contains-value: 'reverify'
593 - comment-added-contains-event:
594 comment-contains-value: 'revalidate'
596 - project-compare-type: 'ANT'
597 project-pattern: '{project}'
599 - branch-compare-type: 'ANT'
600 branch-pattern: '**/{branch}'
606 - jacoco-nojava-workaround
607 - autorelease-checkout-gerrit-patch
608 - autorelease-generate-release-patches
610 maven-version: '{mvn33}'
611 pom: validate-pom.xml
612 goals: 'clean install dependency:tree -V -B -T1.5C -Pq -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
615 settings: 'autorelease-settings'
617 global-settings: 'odl-global-settings'
618 global-settings-type: cfp
620 maven-version: '{mvn33}'
622 goals: 'clean validate -V -B -Pq -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
624 - '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
625 settings: 'autorelease-settings'
627 global-settings: 'odl-global-settings'
628 global-settings-type: cfp
629 - autorelease-sys-stats
632 - email-notification:
633 email-prefix: '[autorelease] [{project-name}]'
634 - opendaylight-infra-shiplogs:
635 maven-version: '{mvn33}'
638 name: '{project-name}-verify-{stream}-{maven}-{jdks}'
640 # Job template for ODL verify jobs
642 # The purpose of this job template is to setup a ODL verify job
644 # Required Variables:
645 # stream: release stream (eg. stable-lithium or beryllium)
646 # branch: git branch (eg. stable/lithium or master)
648 project-type: freestyle
657 - opendaylight-infra-parameters:
660 refspec: 'refs/heads/{branch}'
661 artifacts: '{archive-artifacts}'
664 - gerrit-trigger-scm:
665 refspec: '$GERRIT_REFSPEC'
666 choosing-strategy: 'gerrit'
669 - opendaylight-infra-wrappers:
670 build-timeout: '{build-timeout}'
673 - gerrit-trigger-patch-submitted:
678 - jacoco-nojava-workaround
679 - provide-maven-settings:
680 global-settings-file: 'odl-global-settings'
681 settings-file: '{mvn-settings}'
683 maven-version: '{mvn-version}'
684 goals: '{mvn-goals} -V -B -Djenkins -Dstream={stream} -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
687 settings: '{mvn-settings}'
689 global-settings: 'odl-global-settings'
690 global-settings-type: cfp
694 - email-notification:
695 email-prefix: '[{project-name}]'
697 - opendaylight-infra-shiplogs:
698 maven-version: '{mvn-version}'