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 **/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}'
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 **/target/surefire-reports/*-output.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'
472 project-type: freestyle
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}'
509 maven-version: '{mvn33}'
510 goals: '{mvn-goals} -V -B -Djenkins -Dsonar -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
513 settings: '{mvn-settings}'
515 global-settings: 'odl-global-settings'
516 global-settings-type: cfp
518 maven-version: '{mvn33}'
519 # We should switch to the recommended configuration of sonar once
520 # JJB adds support for configurating the Sonar wrapper:
521 # http://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+Jenkins
522 goals: 'sonar:sonar -V -B -Djenkins -Dsonar -Dsonar.host.url=https://sonar.opendaylight.org -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
525 settings: '{mvn-settings}'
527 global-settings: 'odl-global-settings'
528 global-settings-type: cfp
531 - email-notification:
532 email-prefix: '[{project-name}]'
535 - opendaylight-infra-shiplogs:
536 maven-version: '{mvn33}'
539 name: '{project-name}-validate-autorelease-{stream}'
540 disabled: '{obj:disable_autorelease}'
542 project-type: freestyle
551 - opendaylight-infra-parameters:
554 refspec: 'refs/heads/{branch}'
555 artifacts: '{archive-artifacts}'
556 - autorelease-release-tag:
557 release-tag: 'validate'
558 - autorelease-release-branch:
559 release-branch: '{branch}'
562 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
563 description: "Autorelease clone URL"
568 credentials-id: 'opendaylight-jenkins-ssh'
578 - opendaylight-infra-wrappers:
579 build-timeout: '{build-timeout}'
583 server-name: 'OpenDaylight'
585 - patchset-created-event:
586 exclude-drafts: 'true'
587 exclude-trivial-rebase: 'false'
588 exclude-no-code-change: 'true'
589 - draft-published-event
590 - comment-added-contains-event:
591 comment-contains-value: 'recheck'
592 - comment-added-contains-event:
593 comment-contains-value: 'reverify'
594 - comment-added-contains-event:
595 comment-contains-value: 'revalidate'
597 - project-compare-type: 'ANT'
598 project-pattern: '{project}'
600 - branch-compare-type: 'ANT'
601 branch-pattern: '**/{branch}'
607 - jacoco-nojava-workaround
608 - autorelease-checkout-gerrit-patch
609 - autorelease-generate-release-patches
611 maven-version: '{mvn33}'
612 pom: validate-pom.xml
613 goals: 'clean install dependency:tree -V -B -T1.5C -Pq -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
616 settings: 'autorelease-settings'
618 global-settings: 'odl-global-settings'
619 global-settings-type: cfp
621 maven-version: '{mvn33}'
623 goals: 'clean validate -V -B -Pq -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
625 - '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
626 settings: 'autorelease-settings'
628 global-settings: 'odl-global-settings'
629 global-settings-type: cfp
630 - autorelease-sys-stats
633 - email-notification:
634 email-prefix: '[autorelease] [{project-name}]'
635 - opendaylight-infra-shiplogs:
636 maven-version: '{mvn33}'
639 name: '{project-name}-verify-{stream}-{maven}-{jdks}'
641 # Job template for ODL verify jobs
643 # The purpose of this job template is to setup a ODL verify job
645 # Required Variables:
646 # stream: release stream (eg. stable-lithium or beryllium)
647 # branch: git branch (eg. stable/lithium or master)
649 project-type: freestyle
658 - opendaylight-infra-parameters:
661 refspec: 'refs/heads/{branch}'
662 artifacts: '{archive-artifacts}'
665 - gerrit-trigger-scm:
666 refspec: '$GERRIT_REFSPEC'
667 choosing-strategy: 'gerrit'
670 - opendaylight-infra-wrappers:
671 build-timeout: '{build-timeout}'
674 - gerrit-trigger-patch-submitted:
679 - jacoco-nojava-workaround
680 - provide-maven-settings:
681 global-settings-file: 'odl-global-settings'
682 settings-file: '{mvn-settings}'
684 maven-version: '{mvn-version}'
685 goals: '{mvn-goals} -V -B -Djenkins -Dstream={stream} -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
688 settings: '{mvn-settings}'
690 global-settings: 'odl-global-settings'
691 global-settings-type: cfp
695 - email-notification:
696 email-prefix: '[{project-name}]'
698 - opendaylight-infra-shiplogs:
699 maven-version: '{mvn-version}'