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 -Djenkins -DskipTests=true -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}'
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
205 maven-name: '{mvn33}'
206 root-pom: 'distribution/pom.xml'
207 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 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
209 settings: '{mvn-settings}'
211 global-settings: 'odl-global-settings'
212 global-settings-type: cfp
213 ignore-upstream-changes: true
214 post-step-run-condition: 'SUCCESS'
217 - integration-distribution-check
220 - email-notification:
221 email-prefix: '[{project-name}]'
226 mkdir -p $WORKSPACE/archives
227 cp karaf*.log $WORKSPACE/archives
228 script-only-if-succeeded: False
229 script-only-if-failed: False
230 mark-unstable-if-failed: True
232 maven-version: '{mvn33}'
235 name: '{project-name}-integration-{stream}'
237 # Job template for ODL integration verify jobs
239 # This is similar to a normal verify job, but it runs
240 # when a project that's a dependency of your project
241 # is successfully built.
243 # Required Variables:
244 # stream: release stream (eg. stable-lithium or beryllium)
245 # branch: git branch (eg. stable/lithium or master)
252 daysToKeep: '{build-days-to-keep}'
253 numToKeep: '{build-num-to-keep}'
254 artifactDaysToKeep: '{build-artifact-days-to-keep}'
255 artifactNumToKeep: '{build-artifact-num-to-keep}'
258 - opendaylight-infra-parameters:
261 refspec: 'refs/heads/{branch}'
262 artifacts: '{archive-artifacts}'
270 - opendaylight-infra-wrappers:
271 build-timeout: '{build-timeout}'
275 jobs: '{dependencies}'
279 - jacoco-nojava-workaround
280 - provide-maven-settings:
281 global-settings-file: 'odl-global-settings'
282 settings-file: '{mvn-settings}'
285 maven-name: '{mvn33}'
286 goals: '{mvn-goals} -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
287 maven-opts: '{mvn-opts}'
288 settings: '{mvn-settings}'
290 global-settings: 'odl-global-settings'
291 global-settings-type: cfp
297 - email-notification:
298 email-prefix: '{email-upstream}'
301 maven-version: '{mvn33}'
304 name: '{project-name}-merge-{stream}'
306 # Job template for ODL merge jobs
308 # The purpose of this job template is to setup a ODL merge job
309 # and deploy artifacts to Nexus.
311 # Required Variables:
312 # stream: release stream (eg. stable-lithium or beryllium)
313 # branch: git branch (eg. stable/lithium or master)
322 artifactDaysToKeep: '{build-artifact-days-to-keep}'
323 artifactNumToKeep: '{build-artifact-num-to-keep}'
326 - opendaylight-infra-parameters:
329 refspec: 'refs/heads/{branch}'
330 artifacts: '{archive-artifacts}'
333 - gerrit-trigger-scm:
335 choosing-strategy: 'default'
338 - opendaylight-infra-wrappers:
339 build-timeout: '{build-timeout}'
343 - gerrit-trigger-patch-merged:
348 - jacoco-nojava-workaround
349 - provide-maven-settings:
350 global-settings-file: 'odl-global-settings'
351 settings-file: '{mvn-settings}'
354 maven-name: '{mvn33}'
355 goals: '{mvn-goals} -V -B -Djenkins -Dmerge -Dstream={stream} -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
356 maven-opts: '{mvn-opts}'
357 settings: '{mvn-settings}'
359 global-settings: 'odl-global-settings'
360 global-settings-type: cfp
361 post-step-run-condition: UNSTABLE
365 condition-kind: file-exists
366 condition-filename: deploy-site.xml
367 condition-basedir: workspace
369 # The strategy here is intentional to run Maven site:deploy twice
370 # once using regular pom.xml to produce a staged-site which is
371 # then used by deploy-site.xml to push to Nexus. This is a
372 # workaround to Maven Site's default linking code which creates
373 # incorrect URLs for sites due to auto-detection assuming your
374 # project is configured in a certain way which ODL is not.
377 maven-version: '{mvn33}'
379 goals: 'site:deploy -V -B -Dstream={stream}'
382 settings: '{mvn-settings}'
384 global-settings: 'odl-global-settings'
385 global-settings-type: cfp
387 maven-version: '{mvn33}'
389 goals: 'site:deploy -V -B -Dstream={stream}'
392 settings: '{mvn-settings}'
394 global-settings: 'odl-global-settings'
395 global-settings-type: cfp
401 - email-notification:
402 email-prefix: '[{project-name}]'
406 deploy-unstable: false
409 maven-version: '{mvn33}'
412 name: '{project-name}-periodic-{stream}'
414 # Job template for periodic builders
416 # The purpose of this job template is to setup a periodic
419 # Required Variables:
420 # stream: release stream (eg. stable-lithium or beryllium)
421 # branch: git branch (eg. stable/lithium or master)
431 - opendaylight-infra-parameters:
434 refspec: 'refs/heads/{branch}'
435 artifacts: '{archive-artifacts}'
443 - opendaylight-infra-wrappers:
444 build-timeout: '{build-timeout}'
450 - jacoco-nojava-workaround
451 - provide-maven-settings:
452 global-settings-file: 'odl-global-settings'
453 settings-file: '{mvn-settings}'
456 maven-name: '{mvn33}'
457 goals: '{mvn-goals} -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
458 maven-opts: '{mvn-opts}'
459 settings: '{mvn-settings}'
461 global-settings: 'odl-global-settings'
462 global-settings-type: cfp
468 - email-notification:
469 email-prefix: '[{project-name}]'
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}]'
535 maven-version: '{mvn33}'
538 name: '{project-name}-validate-autorelease-{stream}'
539 disabled: '{obj:disable_autorelease}'
547 daysToKeep: '{build-days-to-keep}'
548 numToKeep: '{build-num-to-keep}'
549 artifactDaysToKeep: '{build-artifact-days-to-keep}'
550 artifactNumToKeep: '{build-artifact-num-to-keep}'
553 - opendaylight-infra-parameters:
556 refspec: 'refs/heads/{branch}'
557 artifacts: '{archive-artifacts}'
558 - autorelease-release-tag:
559 release-tag: 'validate'
560 - autorelease-release-branch:
561 release-branch: '{branch}'
564 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
565 description: "Autorelease clone URL"
570 credentials-id: 'opendaylight-jenkins-ssh'
580 - opendaylight-infra-wrappers:
581 build-timeout: '{build-timeout}'
585 server-name: 'OpenDaylight'
587 - patchset-created-event:
588 exclude-drafts: 'true'
589 exclude-trivial-rebase: 'false'
590 exclude-no-code-change: 'true'
591 - draft-published-event
592 - comment-added-contains-event:
593 comment-contains-value: 'recheck'
594 - comment-added-contains-event:
595 comment-contains-value: 'reverify'
596 - comment-added-contains-event:
597 comment-contains-value: 'revalidate'
599 - project-compare-type: 'ANT'
600 project-pattern: '{project}'
602 - branch-compare-type: 'ANT'
603 branch-pattern: '**/{branch}'
609 - jacoco-nojava-workaround
610 - autorelease-checkout-gerrit-patch
611 - autorelease-generate-release-patches
613 maven-version: '{mvn33}'
614 pom: validate-pom.xml
615 goals: 'clean install dependency:tree -V -B -T1.5C -Pq -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
618 settings: 'autorelease-settings'
620 global-settings: 'odl-global-settings'
621 global-settings-type: cfp
624 maven-name: '{mvn33}'
626 goals: 'clean validate -V -B -Pq -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
627 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
628 settings: 'autorelease-settings'
630 global-settings: 'odl-global-settings'
631 global-settings-type: cfp
632 automatic-archiving: false
633 post-step-run-condition: UNSTABLE
636 - autorelease-sys-stats
639 - email-notification:
640 email-prefix: '[autorelease] [{project-name}]'
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}]'
705 maven-version: '{mvn-version}'