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)
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
122 - opendaylight-infra-shiplogs:
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
229 - opendaylight-infra-shiplogs:
230 maven-version: '{mvn33}'
233 name: '{project-name}-integration-{stream}'
235 # Job template for ODL integration verify jobs
237 # This is similar to a normal verify job, but it runs
238 # when a project that's a dependency of your project
239 # is successfully built.
241 # Required Variables:
242 # stream: release stream (eg. stable-lithium or beryllium)
243 # branch: git branch (eg. stable/lithium or master)
245 project-type: freestyle
250 daysToKeep: '{build-days-to-keep}'
251 numToKeep: '{build-num-to-keep}'
252 artifactDaysToKeep: '{build-artifact-days-to-keep}'
253 artifactNumToKeep: '{build-artifact-num-to-keep}'
256 - opendaylight-infra-parameters:
259 refspec: 'refs/heads/{branch}'
260 artifacts: '{archive-artifacts}'
268 - opendaylight-infra-wrappers:
269 build-timeout: '{build-timeout}'
273 jobs: '{dependencies}'
277 - jacoco-nojava-workaround
278 - provide-maven-settings:
279 global-settings-file: 'odl-global-settings'
280 settings-file: '{mvn-settings}'
282 maven-version: '{mvn33}'
283 goals: '{mvn-goals} -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
286 settings: '{mvn-settings}'
288 global-settings: 'odl-global-settings'
289 global-settings-type: cfp
292 - email-notification:
293 email-prefix: '{email-upstream}'
296 - opendaylight-infra-shiplogs:
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
404 - opendaylight-infra-shiplogs:
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)
419 project-type: freestyle
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}'
451 maven-version: '{mvn33}'
452 goals: '{mvn-goals} -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
455 settings: '{mvn-settings}'
457 global-settings: 'odl-global-settings'
458 global-settings-type: cfp
461 - email-notification:
462 email-prefix: '[{project-name}]'
465 - opendaylight-infra-shiplogs:
466 maven-version: '{mvn33}'
469 name: '{project-name}-sonar'
479 artifactDaysToKeep: '1'
480 artifactNumToKeep: '1'
483 - opendaylight-infra-parameters:
486 refspec: 'refs/heads/{branch}'
487 artifacts: '{archive-artifacts}'
495 - opendaylight-infra-wrappers:
496 build-timeout: '{build-timeout}'
500 - gerrit-trigger-patch-sonar:
504 - jacoco-nojava-workaround
505 - provide-maven-settings:
506 global-settings-file: 'odl-global-settings'
507 settings-file: '{mvn-settings}'
510 maven-name: '{mvn33}'
511 goals: '{mvn-goals} -V -B -Djenkins -Dsonar -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
512 maven-opts: '{mvn-opts}'
513 settings: '{mvn-settings}'
515 global-settings: 'odl-global-settings'
516 global-settings-type: cfp
524 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
525 - email-notification:
526 email-prefix: '[{project-name}]'
528 - opendaylight-infra-shiplogs:
529 maven-version: '{mvn33}'
532 name: '{project-name}-validate-autorelease-{stream}'
533 disabled: '{obj:disable_autorelease}'
535 project-type: freestyle
544 - opendaylight-infra-parameters:
547 refspec: 'refs/heads/{branch}'
548 artifacts: '{archive-artifacts}'
549 - autorelease-release-tag:
550 release-tag: 'validate'
551 - autorelease-release-branch:
552 release-branch: '{branch}'
555 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
556 description: "Autorelease clone URL"
561 credentials-id: 'opendaylight-jenkins-ssh'
571 - opendaylight-infra-wrappers:
572 build-timeout: '{build-timeout}'
576 server-name: 'OpenDaylight'
578 - patchset-created-event:
579 exclude-drafts: 'true'
580 exclude-trivial-rebase: 'false'
581 exclude-no-code-change: 'true'
582 - draft-published-event
583 - comment-added-contains-event:
584 comment-contains-value: 'recheck'
585 - comment-added-contains-event:
586 comment-contains-value: 'reverify'
587 - comment-added-contains-event:
588 comment-contains-value: 'revalidate'
590 - project-compare-type: 'ANT'
591 project-pattern: '{project}'
593 - branch-compare-type: 'ANT'
594 branch-pattern: '**/{branch}'
600 - jacoco-nojava-workaround
601 - autorelease-checkout-gerrit-patch
602 - autorelease-generate-release-patches
604 maven-version: '{mvn33}'
605 pom: validate-pom.xml
606 goals: 'clean install dependency:tree -V -B -T1.5C -Pq -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
609 settings: 'autorelease-settings'
611 global-settings: 'odl-global-settings'
612 global-settings-type: cfp
614 maven-version: '{mvn33}'
616 goals: 'clean validate -V -B -Pq -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
618 - '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
619 settings: 'autorelease-settings'
621 global-settings: 'odl-global-settings'
622 global-settings-type: cfp
623 - autorelease-sys-stats
626 - email-notification:
627 email-prefix: '[autorelease] [{project-name}]'
628 - opendaylight-infra-shiplogs:
629 maven-version: '{mvn33}'
632 name: '{project-name}-verify-{stream}-{maven}-{jdks}'
634 # Job template for ODL verify jobs
636 # The purpose of this job template is to setup a ODL verify job
638 # Required Variables:
639 # stream: release stream (eg. stable-lithium or beryllium)
640 # branch: git branch (eg. stable/lithium or master)
642 project-type: freestyle
651 - opendaylight-infra-parameters:
654 refspec: 'refs/heads/{branch}'
655 artifacts: '{archive-artifacts}'
658 - gerrit-trigger-scm:
659 refspec: '$GERRIT_REFSPEC'
660 choosing-strategy: 'gerrit'
663 - opendaylight-infra-wrappers:
664 build-timeout: '{build-timeout}'
667 - gerrit-trigger-patch-submitted:
672 - jacoco-nojava-workaround
673 - provide-maven-settings:
674 global-settings-file: 'odl-global-settings'
675 settings-file: '{mvn-settings}'
677 maven-version: '{mvn-version}'
678 goals: '{mvn-goals} -V -B -Djenkins -Dstream={stream} -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
681 settings: '{mvn-settings}'
683 global-settings: 'odl-global-settings'
684 global-settings-type: cfp
688 - email-notification:
689 email-prefix: '[{project-name}]'
691 - opendaylight-infra-shiplogs:
692 maven-version: '{mvn-version}'