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-recipients: '{email-recipients}'
59 email-prefix: '[{project-name}]'
60 - opendaylight-infra-shiplogs:
61 maven-version: 'mvn33'
64 name: '{project-name}-distribution-{stream}'
67 # stream: release stream (eg. boron or carbon)
68 # branch: git branch (eg. stable/boron or master)
70 # Need to keep jobs that deploy to Nexus at end of build as Maven
71 # projects. Maybe reconsider this once upstream moves deploy to a
73 # https://issues.apache.org/jira/browse/MNG-5666
79 daysToKeep: '{build-days-to-keep}'
80 numToKeep: '{build-num-to-keep}'
81 artifactDaysToKeep: '{build-artifact-days-to-keep}'
82 artifactNumToKeep: '{build-artifact-num-to-keep}'
85 - opendaylight-infra-parameters:
86 project: 'integration/distribution'
88 refspec: 'refs/heads/{branch}'
89 artifacts: '{archive-artifacts} **/dependency_tree.txt **/target/surefire-reports/*-output.txt'
97 - opendaylight-infra-wrappers:
98 build-timeout: '{build-timeout}'
102 jobs: '{project}-merge-{stream}'
106 - provide-maven-settings:
107 global-settings-file: 'odl-global-settings'
108 settings-file: '{mvn-settings}'
113 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'
114 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
115 settings: 'integration-distribution-settings'
117 global-settings: 'odl-global-settings'
118 global-settings-type: cfp
121 - email-notification:
122 email-recipients: '{email-recipients}'
123 email-prefix: '[{project}]'
127 deploy-unstable: false
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}'
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 # Distro-check jobs typically run within 10 - 30 minutes
170 # with 45 minutes being the occassional edge case.
171 # enforce a 60 minute limit to ensure stuck jobs get
177 server-name: '{server-name}'
179 - patchset-created-event:
180 exclude-drafts: 'true'
181 exclude-trivial-rebase: 'false'
182 exclude-no-code-change: 'true'
183 - draft-published-event
184 - comment-added-contains-event:
185 comment-contains-value: 'redistcheck'
186 - comment-added-contains-event:
187 comment-contains-value: 'recheck'
189 - project-compare-type: 'ANT'
190 project-pattern: '{project}'
192 - branch-compare-type: 'ANT'
193 branch-pattern: '**/{branch}'
202 maven-version: 'mvn33'
203 pom: '$GERRIT_PROJECT/pom.xml'
204 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}'
206 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
207 settings: '{mvn-settings}'
209 global-settings: 'odl-global-settings'
210 global-settings-type: cfp
212 maven-version: 'mvn33'
213 pom: 'distribution/pom.xml'
214 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'
216 - '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
217 settings: '{mvn-settings}'
219 global-settings: 'odl-global-settings'
220 global-settings-type: cfp
221 - integration-distribution-check
224 - email-notification:
225 email-recipients: '{email-recipients}'
226 email-prefix: '[{project-name}]'
231 mkdir -p $WORKSPACE/archives
232 cp karaf*.log $WORKSPACE/archives
233 script-only-if-succeeded: False
234 script-only-if-failed: False
235 mark-unstable-if-failed: True
238 - opendaylight-infra-shiplogs:
239 maven-version: 'mvn33'
242 name: '{project-name}-integration-{stream}'
244 # Job template for ODL integration verify jobs
246 # This is similar to a normal verify job, but it runs
247 # when a project that's a dependency of your project
248 # is successfully built.
250 # Required Variables:
251 # stream: release stream (eg. boron or carbon)
252 # branch: git branch (eg. stable/boron or master)
254 project-type: freestyle
259 daysToKeep: '{build-days-to-keep}'
260 numToKeep: '{build-num-to-keep}'
261 artifactDaysToKeep: '{build-artifact-days-to-keep}'
262 artifactNumToKeep: '{build-artifact-num-to-keep}'
265 - opendaylight-infra-parameters:
268 refspec: 'refs/heads/{branch}'
269 artifacts: '{archive-artifacts}'
277 - opendaylight-infra-wrappers:
278 build-timeout: '{build-timeout}'
282 jobs: '{dependencies}'
286 - jacoco-nojava-workaround
287 - provide-maven-settings:
288 global-settings-file: 'odl-global-settings'
289 settings-file: '{mvn-settings}'
291 maven-version: 'mvn33'
292 goals: '{mvn-goals} -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
295 settings: '{mvn-settings}'
297 global-settings: 'odl-global-settings'
298 global-settings-type: cfp
301 - email-notification:
302 email-recipients: '{email-recipients}'
303 email-prefix: '{email-upstream}'
306 - opendaylight-infra-shiplogs:
307 maven-version: 'mvn33'
310 name: '{project-name}-merge-{stream}'
312 # Job template for ODL merge jobs
314 # The purpose of this job template is to setup a ODL merge job
315 # and deploy artifacts to Nexus.
317 # Required Variables:
318 # stream: release stream (eg. boron or carbon)
319 # branch: git branch (eg. stable/boron or master)
321 # Need to keep jobs that deploy to Nexus at end of build as Maven
322 # projects. Maybe reconsider this once upstream moves deploy to a
323 # separate lifecycle:
324 # https://issues.apache.org/jira/browse/MNG-5666
332 artifactDaysToKeep: '{build-artifact-days-to-keep}'
333 artifactNumToKeep: '{build-artifact-num-to-keep}'
336 - opendaylight-infra-parameters:
339 refspec: 'refs/heads/{branch}'
340 artifacts: '{archive-artifacts}'
343 - gerrit-trigger-scm:
345 choosing-strategy: 'default'
348 - opendaylight-infra-wrappers:
349 build-timeout: '{build-timeout}'
353 - gerrit-trigger-patch-merged:
354 server-name: '{server-name}'
359 - jacoco-nojava-workaround
360 - provide-maven-settings:
361 global-settings-file: 'odl-global-settings'
362 settings-file: '{mvn-settings}'
366 goals: '{mvn-goals} -V -B -Djenkins -Dmerge -Dstream={stream} -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
367 maven-opts: '{mvn-opts}'
368 settings: '{mvn-settings}'
370 global-settings: 'odl-global-settings'
371 global-settings-type: cfp
372 post-step-run-condition: UNSTABLE
376 condition-kind: file-exists
377 condition-filename: deploy-site.xml
378 condition-basedir: workspace
380 # The strategy here is intentional to run Maven site:deploy twice
381 # once using regular pom.xml to produce a staged-site which is
382 # then used by deploy-site.xml to push to Nexus. This is a
383 # workaround to Maven Site's default linking code which creates
384 # incorrect URLs for sites due to auto-detection assuming your
385 # project is configured in a certain way which ODL is not.
388 maven-version: 'mvn33'
390 goals: 'site:deploy -V -B -Dstream={stream}'
393 settings: '{mvn-settings}'
395 global-settings: 'odl-global-settings'
396 global-settings-type: cfp
398 maven-version: 'mvn33'
400 goals: 'site:deploy -V -B -Dstream={stream}'
403 settings: '{mvn-settings}'
405 global-settings: 'odl-global-settings'
406 global-settings-type: cfp
412 - email-notification:
413 email-recipients: '{email-recipients}'
414 email-prefix: '[{project-name}]'
418 deploy-unstable: false
420 - opendaylight-infra-shiplogs:
421 maven-version: 'mvn33'
424 name: '{project-name}-periodic-{stream}'
426 # Job template for periodic builders
428 # The purpose of this job template is to setup a periodic
431 # Required Variables:
432 # stream: release stream (eg. boron or carbon)
433 # branch: git branch (eg. stable/boron or master)
435 project-type: freestyle
443 - opendaylight-infra-parameters:
446 refspec: 'refs/heads/{branch}'
447 artifacts: '{archive-artifacts}'
455 - opendaylight-infra-wrappers:
456 build-timeout: '{build-timeout}'
462 - jacoco-nojava-workaround
463 - provide-maven-settings:
464 global-settings-file: 'odl-global-settings'
465 settings-file: '{mvn-settings}'
467 maven-version: 'mvn33'
468 goals: '{mvn-goals} -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
471 settings: '{mvn-settings}'
473 global-settings: 'odl-global-settings'
474 global-settings-type: cfp
477 - email-notification:
478 email-recipients: '{email-recipients}'
479 email-prefix: '[{project-name}]'
482 - opendaylight-infra-shiplogs:
483 maven-version: 'mvn33'
486 name: '{project-name}-sonar'
489 project-type: freestyle
496 artifactDaysToKeep: '1'
497 artifactNumToKeep: '1'
500 - opendaylight-infra-parameters:
503 refspec: 'refs/heads/{branch}'
504 artifacts: '{archive-artifacts}'
512 - opendaylight-infra-wrappers:
513 build-timeout: '{build-timeout}'
517 - gerrit-trigger-patch-sonar:
518 server-name: '{server-name}'
522 - jacoco-nojava-workaround
523 - provide-maven-settings:
524 global-settings-file: 'odl-global-settings'
525 settings-file: '{mvn-settings}'
527 maven-version: 'mvn33'
528 goals: '{mvn-goals} -V -B -Djenkins -Dsonar -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
531 settings: '{mvn-settings}'
533 global-settings: 'odl-global-settings'
534 global-settings-type: cfp
536 maven-version: 'mvn33'
537 # We should switch to the recommended configuration of sonar once
538 # JJB adds support for configurating the Sonar wrapper:
539 # http://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+Jenkins
540 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'
543 settings: '{mvn-settings}'
545 global-settings: 'odl-global-settings'
546 global-settings-type: cfp
549 - email-notification:
550 email-recipients: '{email-recipients}'
551 email-prefix: '[{project-name}]'
554 - opendaylight-infra-shiplogs:
555 maven-version: 'mvn33'
558 name: '{project-name}-validate-autorelease-{stream}'
561 project-type: freestyle
570 - opendaylight-infra-parameters:
573 refspec: 'refs/heads/{branch}'
574 artifacts: '{archive-artifacts}'
575 - autorelease-release-tag:
576 release-tag: 'validate'
577 - autorelease-release-branch:
578 release-branch: '{branch}'
581 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
582 description: "Autorelease clone URL"
587 credentials-id: 'opendaylight-jenkins-ssh'
597 - opendaylight-infra-wrappers:
598 build-timeout: '{build-timeout}'
602 server-name: '{server-name}'
604 - patchset-created-event:
605 exclude-drafts: 'true'
606 exclude-trivial-rebase: 'false'
607 exclude-no-code-change: 'true'
608 - draft-published-event
609 - comment-added-contains-event:
610 comment-contains-value: 'recheck'
611 - comment-added-contains-event:
612 comment-contains-value: 'revalidate'
614 - project-compare-type: 'ANT'
615 project-pattern: '{project}'
617 - branch-compare-type: 'ANT'
618 branch-pattern: '**/{branch}'
624 - jacoco-nojava-workaround
625 - autorelease-checkout-gerrit-patch
626 - autorelease-generate-release-patches
628 maven-version: 'mvn33'
629 pom: validate-pom.xml
630 goals: 'clean install dependency:tree -V -B -T1.5C -Pq -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
633 settings: 'autorelease-settings'
635 global-settings: 'odl-global-settings'
636 global-settings-type: cfp
638 maven-version: 'mvn33'
640 goals: 'clean validate -V -B -Pq -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
642 - '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
643 settings: 'autorelease-settings'
645 global-settings: 'odl-global-settings'
646 global-settings-type: cfp
647 - autorelease-sys-stats
650 - email-notification:
651 email-recipients: '{email-recipients}'
652 email-prefix: '[autorelease] [{project-name}]'
653 - opendaylight-infra-shiplogs:
654 maven-version: 'mvn33'
657 name: '{project-name}-verify-{stream}-{maven}-{jdks}'
659 # Job template for ODL verify jobs
661 # The purpose of this job template is to setup a ODL verify job
663 # Required Variables:
664 # stream: release stream (eg. boron or carbon)
665 # branch: git branch (eg. stable/boron or master)
667 project-type: freestyle
676 - opendaylight-infra-parameters:
679 refspec: 'refs/heads/{branch}'
680 artifacts: '{archive-artifacts}'
683 - gerrit-trigger-scm:
684 refspec: '$GERRIT_REFSPEC'
685 choosing-strategy: 'gerrit'
688 - opendaylight-infra-wrappers:
689 build-timeout: '{build-timeout}'
692 - gerrit-trigger-patch-submitted:
693 server-name: '{server-name}'
698 - jacoco-nojava-workaround
699 - provide-maven-settings:
700 global-settings-file: 'odl-global-settings'
701 settings-file: '{mvn-settings}'
703 maven-version: '{mvn-version}'
704 goals: '{mvn-goals} -V -B -Djenkins -Dstream={stream} -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
707 settings: '{mvn-settings}'
709 global-settings: 'odl-global-settings'
710 global-settings-type: cfp
714 - email-notification:
715 email-recipients: '{email-recipients}'
716 email-prefix: '[{project-name}]'
718 - opendaylight-infra-shiplogs:
719 maven-version: '{mvn-version}'