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)
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}'
281 maven-name: '{mvn33}'
282 goals: '{mvn-goals} -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
283 maven-opts: '{mvn-opts}'
284 settings: '{mvn-settings}'
286 global-settings: 'odl-global-settings'
287 global-settings-type: cfp
293 - email-notification:
294 email-prefix: '{email-upstream}'
297 maven-version: '{mvn33}'
300 name: '{project-name}-merge-{stream}'
302 # Job template for ODL merge jobs
304 # The purpose of this job template is to setup a ODL merge job
305 # and deploy artifacts to Nexus.
307 # Required Variables:
308 # stream: release stream (eg. stable-lithium or beryllium)
309 # branch: git branch (eg. stable/lithium or master)
318 artifactDaysToKeep: '{build-artifact-days-to-keep}'
319 artifactNumToKeep: '{build-artifact-num-to-keep}'
322 - opendaylight-infra-parameters:
325 refspec: 'refs/heads/{branch}'
326 artifacts: '{archive-artifacts}'
329 - gerrit-trigger-scm:
331 choosing-strategy: 'default'
334 - opendaylight-infra-wrappers:
335 build-timeout: '{build-timeout}'
339 - gerrit-trigger-patch-merged:
344 - jacoco-nojava-workaround
345 - provide-maven-settings:
346 global-settings-file: 'odl-global-settings'
347 settings-file: '{mvn-settings}'
350 maven-name: '{mvn33}'
351 goals: '{mvn-goals} -V -B -Djenkins -Dmerge -Dstream={stream} -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
352 maven-opts: '{mvn-opts}'
353 settings: '{mvn-settings}'
355 global-settings: 'odl-global-settings'
356 global-settings-type: cfp
357 post-step-run-condition: UNSTABLE
361 condition-kind: file-exists
362 condition-filename: deploy-site.xml
363 condition-basedir: workspace
365 # The strategy here is intentional to run Maven site:deploy twice
366 # once using regular pom.xml to produce a staged-site which is
367 # then used by deploy-site.xml to push to Nexus. This is a
368 # workaround to Maven Site's default linking code which creates
369 # incorrect URLs for sites due to auto-detection assuming your
370 # project is configured in a certain way which ODL is not.
373 maven-version: '{mvn33}'
375 goals: 'site:deploy -V -B -Dstream={stream}'
378 settings: '{mvn-settings}'
380 global-settings: 'odl-global-settings'
381 global-settings-type: cfp
383 maven-version: '{mvn33}'
385 goals: 'site:deploy -V -B -Dstream={stream}'
388 settings: '{mvn-settings}'
390 global-settings: 'odl-global-settings'
391 global-settings-type: cfp
397 - email-notification:
398 email-prefix: '[{project-name}]'
402 deploy-unstable: false
405 maven-version: '{mvn33}'
408 name: '{project-name}-periodic-{stream}'
410 # Job template for periodic builders
412 # The purpose of this job template is to setup a periodic
415 # Required Variables:
416 # stream: release stream (eg. stable-lithium or beryllium)
417 # branch: git branch (eg. stable/lithium or master)
427 - opendaylight-infra-parameters:
430 refspec: 'refs/heads/{branch}'
431 artifacts: '{archive-artifacts}'
439 - opendaylight-infra-wrappers:
440 build-timeout: '{build-timeout}'
446 - jacoco-nojava-workaround
447 - provide-maven-settings:
448 global-settings-file: 'odl-global-settings'
449 settings-file: '{mvn-settings}'
452 maven-name: '{mvn33}'
453 goals: '{mvn-goals} -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
454 maven-opts: '{mvn-opts}'
455 settings: '{mvn-settings}'
457 global-settings: 'odl-global-settings'
458 global-settings-type: cfp
464 - email-notification:
465 email-prefix: '[{project-name}]'
468 maven-version: '{mvn33}'
471 name: '{project-name}-sonar'
481 artifactDaysToKeep: '1'
482 artifactNumToKeep: '1'
485 - opendaylight-infra-parameters:
488 refspec: 'refs/heads/{branch}'
489 artifacts: '{archive-artifacts}'
497 - opendaylight-infra-wrappers:
498 build-timeout: '{build-timeout}'
502 - gerrit-trigger-patch-sonar:
506 - jacoco-nojava-workaround
507 - provide-maven-settings:
508 global-settings-file: 'odl-global-settings'
509 settings-file: '{mvn-settings}'
512 maven-name: '{mvn33}'
513 goals: '{mvn-goals} -V -B -Djenkins -Dsonar -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
514 maven-opts: '{mvn-opts}'
515 settings: '{mvn-settings}'
517 global-settings: 'odl-global-settings'
518 global-settings-type: cfp
526 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
527 - email-notification:
528 email-prefix: '[{project-name}]'
531 maven-version: '{mvn33}'
534 name: '{project-name}-validate-autorelease-{stream}'
535 disabled: '{obj:disable_autorelease}'
537 project-type: freestyle
546 - opendaylight-infra-parameters:
549 refspec: 'refs/heads/{branch}'
550 artifacts: '{archive-artifacts}'
551 - autorelease-release-tag:
552 release-tag: 'validate'
553 - autorelease-release-branch:
554 release-branch: '{branch}'
557 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
558 description: "Autorelease clone URL"
563 credentials-id: 'opendaylight-jenkins-ssh'
573 - opendaylight-infra-wrappers:
574 build-timeout: '{build-timeout}'
578 server-name: 'OpenDaylight'
580 - patchset-created-event:
581 exclude-drafts: 'true'
582 exclude-trivial-rebase: 'false'
583 exclude-no-code-change: 'true'
584 - draft-published-event
585 - comment-added-contains-event:
586 comment-contains-value: 'recheck'
587 - comment-added-contains-event:
588 comment-contains-value: 'reverify'
589 - comment-added-contains-event:
590 comment-contains-value: 'revalidate'
592 - project-compare-type: 'ANT'
593 project-pattern: '{project}'
595 - branch-compare-type: 'ANT'
596 branch-pattern: '**/{branch}'
602 - jacoco-nojava-workaround
603 - autorelease-checkout-gerrit-patch
604 - autorelease-generate-release-patches
606 maven-version: '{mvn33}'
607 pom: validate-pom.xml
608 goals: 'clean install dependency:tree -V -B -T1.5C -Pq -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
611 settings: 'autorelease-settings'
613 global-settings: 'odl-global-settings'
614 global-settings-type: cfp
616 maven-version: '{mvn33}'
618 goals: 'clean validate -V -B -Pq -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
620 - '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
621 settings: 'autorelease-settings'
623 global-settings: 'odl-global-settings'
624 global-settings-type: cfp
625 - autorelease-sys-stats
628 - email-notification:
629 email-prefix: '[autorelease] [{project-name}]'
631 maven-version: '{mvn33}'
634 name: '{project-name}-verify-{stream}-{maven}-{jdks}'
636 # Job template for ODL verify jobs
638 # The purpose of this job template is to setup a ODL verify job
640 # Required Variables:
641 # stream: release stream (eg. stable-lithium or beryllium)
642 # branch: git branch (eg. stable/lithium or master)
644 project-type: freestyle
653 - opendaylight-infra-parameters:
656 refspec: 'refs/heads/{branch}'
657 artifacts: '{archive-artifacts}'
660 - gerrit-trigger-scm:
661 refspec: '$GERRIT_REFSPEC'
662 choosing-strategy: 'gerrit'
665 - opendaylight-infra-wrappers:
666 build-timeout: '{build-timeout}'
669 - gerrit-trigger-patch-submitted:
674 - jacoco-nojava-workaround
675 - provide-maven-settings:
676 global-settings-file: 'odl-global-settings'
677 settings-file: '{mvn-settings}'
679 maven-version: '{mvn-version}'
680 goals: '{mvn-goals} -V -B -Djenkins -Dstream={stream} -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
683 settings: '{mvn-settings}'
685 global-settings: 'odl-global-settings'
686 global-settings-type: cfp
690 - email-notification:
691 email-prefix: '[{project-name}]'
694 maven-version: '{mvn-version}'