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. boron or carbon)
67 # branch: git branch (eg. stable/boron or master)
69 # Need to keep jobs that deploy to Nexus at end of build as Maven
70 # projects. Maybe reconsider this once upstream moves deploy to a
72 # https://issues.apache.org/jira/browse/MNG-5666
78 daysToKeep: '{build-days-to-keep}'
79 numToKeep: '{build-num-to-keep}'
80 artifactDaysToKeep: '{build-artifact-days-to-keep}'
81 artifactNumToKeep: '{build-artifact-num-to-keep}'
84 - opendaylight-infra-parameters:
85 project: 'integration/distribution'
87 refspec: 'refs/heads/{branch}'
88 artifacts: '{archive-artifacts} **/dependency_tree.txt **/target/surefire-reports/*-output.txt'
96 - opendaylight-infra-wrappers:
97 build-timeout: '{build-timeout}'
101 jobs: '{project}-merge-{stream}'
105 - provide-maven-settings:
106 global-settings-file: 'odl-global-settings'
107 settings-file: '{mvn-settings}'
112 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'
113 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
114 settings: 'integration-distribution-settings'
116 global-settings: 'odl-global-settings'
117 global-settings-type: cfp
120 - email-notification:
121 email-prefix: '[{project}]'
125 deploy-unstable: false
126 - opendaylight-infra-shiplogs:
127 maven-version: 'mvn33'
130 # Template: {name}-distribution-check-{stream}
131 # Goal: Build a patch and make sure the distribution can deploy with this change
132 # Operation: This job template builds a patch, creates a distribution containing
133 # the patch, and triggers the distribution deploy test
135 name: '{project-name}-distribution-check-{stream}'
136 disabled: '{obj:disable_distribution_check}'
138 project-type: freestyle
144 daysToKeep: '{build-days-to-keep}'
145 numToKeep: '{build-num-to-keep}'
146 artifactDaysToKeep: '{build-artifact-days-to-keep}'
147 artifactNumToKeep: '{build-artifact-num-to-keep}'
150 - opendaylight-infra-parameters:
153 refspec: 'refs/heads/{branch}'
154 artifacts: '{archive-artifacts} **/dependency_tree.txt **/target/surefire-reports/*-output.txt'
155 - integration-distribution-git-url
158 - integration-gerrit-scm:
159 basedir: '$GERRIT_PROJECT'
160 refspec: '$GERRIT_REFSPEC'
162 - integration-distribution-scm:
166 - opendaylight-infra-wrappers:
167 # Distro-check jobs typically run within 10 - 30 minutes
168 # with 45 minutes being the occassional edge case.
169 # enforce a 60 minute limit to ensure stuck jobs get
175 server-name: 'OpenDaylight'
177 - patchset-created-event:
178 exclude-drafts: 'true'
179 exclude-trivial-rebase: 'false'
180 exclude-no-code-change: 'false'
181 - draft-published-event
182 - comment-added-contains-event:
183 comment-contains-value: 'test-distribution'
184 - comment-added-contains-event:
185 comment-contains-value: 'reverify'
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-prefix: '[{project-name}]'
230 mkdir -p $WORKSPACE/archives
231 cp karaf*.log $WORKSPACE/archives
232 script-only-if-succeeded: False
233 script-only-if-failed: False
234 mark-unstable-if-failed: True
237 - opendaylight-infra-shiplogs:
238 maven-version: 'mvn33'
241 name: '{project-name}-integration-{stream}'
243 # Job template for ODL integration verify jobs
245 # This is similar to a normal verify job, but it runs
246 # when a project that's a dependency of your project
247 # is successfully built.
249 # Required Variables:
250 # stream: release stream (eg. boron or carbon)
251 # branch: git branch (eg. stable/boron or master)
253 project-type: freestyle
258 daysToKeep: '{build-days-to-keep}'
259 numToKeep: '{build-num-to-keep}'
260 artifactDaysToKeep: '{build-artifact-days-to-keep}'
261 artifactNumToKeep: '{build-artifact-num-to-keep}'
264 - opendaylight-infra-parameters:
267 refspec: 'refs/heads/{branch}'
268 artifacts: '{archive-artifacts}'
276 - opendaylight-infra-wrappers:
277 build-timeout: '{build-timeout}'
281 jobs: '{dependencies}'
285 - jacoco-nojava-workaround
286 - provide-maven-settings:
287 global-settings-file: 'odl-global-settings'
288 settings-file: '{mvn-settings}'
290 maven-version: 'mvn33'
291 goals: '{mvn-goals} -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
294 settings: '{mvn-settings}'
296 global-settings: 'odl-global-settings'
297 global-settings-type: cfp
300 - email-notification:
301 email-prefix: '{email-upstream}'
304 - opendaylight-infra-shiplogs:
305 maven-version: 'mvn33'
308 name: '{project-name}-merge-{stream}'
310 # Job template for ODL merge jobs
312 # The purpose of this job template is to setup a ODL merge job
313 # and deploy artifacts to Nexus.
315 # Required Variables:
316 # stream: release stream (eg. boron or carbon)
317 # branch: git branch (eg. stable/boron or master)
319 # Need to keep jobs that deploy to Nexus at end of build as Maven
320 # projects. Maybe reconsider this once upstream moves deploy to a
321 # separate lifecycle:
322 # https://issues.apache.org/jira/browse/MNG-5666
330 artifactDaysToKeep: '{build-artifact-days-to-keep}'
331 artifactNumToKeep: '{build-artifact-num-to-keep}'
334 - opendaylight-infra-parameters:
337 refspec: 'refs/heads/{branch}'
338 artifacts: '{archive-artifacts}'
341 - gerrit-trigger-scm:
343 choosing-strategy: 'default'
346 - opendaylight-infra-wrappers:
347 build-timeout: '{build-timeout}'
351 - gerrit-trigger-patch-merged:
356 - jacoco-nojava-workaround
357 - provide-maven-settings:
358 global-settings-file: 'odl-global-settings'
359 settings-file: '{mvn-settings}'
363 goals: '{mvn-goals} -V -B -Djenkins -Dmerge -Dstream={stream} -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
364 maven-opts: '{mvn-opts}'
365 settings: '{mvn-settings}'
367 global-settings: 'odl-global-settings'
368 global-settings-type: cfp
369 post-step-run-condition: UNSTABLE
373 condition-kind: file-exists
374 condition-filename: deploy-site.xml
375 condition-basedir: workspace
377 # The strategy here is intentional to run Maven site:deploy twice
378 # once using regular pom.xml to produce a staged-site which is
379 # then used by deploy-site.xml to push to Nexus. This is a
380 # workaround to Maven Site's default linking code which creates
381 # incorrect URLs for sites due to auto-detection assuming your
382 # project is configured in a certain way which ODL is not.
385 maven-version: 'mvn33'
387 goals: 'site:deploy -V -B -Dstream={stream}'
390 settings: '{mvn-settings}'
392 global-settings: 'odl-global-settings'
393 global-settings-type: cfp
395 maven-version: 'mvn33'
397 goals: 'site:deploy -V -B -Dstream={stream}'
400 settings: '{mvn-settings}'
402 global-settings: 'odl-global-settings'
403 global-settings-type: cfp
409 - email-notification:
410 email-prefix: '[{project-name}]'
414 deploy-unstable: false
416 - opendaylight-infra-shiplogs:
417 maven-version: 'mvn33'
420 name: '{project-name}-periodic-{stream}'
422 # Job template for periodic builders
424 # The purpose of this job template is to setup a periodic
427 # Required Variables:
428 # stream: release stream (eg. boron or carbon)
429 # branch: git branch (eg. stable/boron or master)
431 project-type: freestyle
439 - opendaylight-infra-parameters:
442 refspec: 'refs/heads/{branch}'
443 artifacts: '{archive-artifacts}'
451 - opendaylight-infra-wrappers:
452 build-timeout: '{build-timeout}'
458 - jacoco-nojava-workaround
459 - provide-maven-settings:
460 global-settings-file: 'odl-global-settings'
461 settings-file: '{mvn-settings}'
463 maven-version: 'mvn33'
464 goals: '{mvn-goals} -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
467 settings: '{mvn-settings}'
469 global-settings: 'odl-global-settings'
470 global-settings-type: cfp
473 - email-notification:
474 email-prefix: '[{project-name}]'
477 - opendaylight-infra-shiplogs:
478 maven-version: 'mvn33'
481 name: '{project-name}-sonar'
484 project-type: freestyle
491 artifactDaysToKeep: '1'
492 artifactNumToKeep: '1'
495 - opendaylight-infra-parameters:
498 refspec: 'refs/heads/{branch}'
499 artifacts: '{archive-artifacts}'
507 - opendaylight-infra-wrappers:
508 build-timeout: '{build-timeout}'
512 - gerrit-trigger-patch-sonar:
516 - jacoco-nojava-workaround
517 - provide-maven-settings:
518 global-settings-file: 'odl-global-settings'
519 settings-file: '{mvn-settings}'
521 maven-version: 'mvn33'
522 goals: '{mvn-goals} -V -B -Djenkins -Dsonar -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
530 maven-version: 'mvn33'
531 # We should switch to the recommended configuration of sonar once
532 # JJB adds support for configurating the Sonar wrapper:
533 # http://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+Jenkins
534 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'
537 settings: '{mvn-settings}'
539 global-settings: 'odl-global-settings'
540 global-settings-type: cfp
543 - email-notification:
544 email-prefix: '[{project-name}]'
547 - opendaylight-infra-shiplogs:
548 maven-version: 'mvn33'
551 name: '{project-name}-validate-autorelease-{stream}'
552 disabled: '{obj:disable_autorelease}'
554 project-type: freestyle
563 - opendaylight-infra-parameters:
566 refspec: 'refs/heads/{branch}'
567 artifacts: '{archive-artifacts}'
568 - autorelease-release-tag:
569 release-tag: 'validate'
570 - autorelease-release-branch:
571 release-branch: '{branch}'
574 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
575 description: "Autorelease clone URL"
580 credentials-id: 'opendaylight-jenkins-ssh'
590 - opendaylight-infra-wrappers:
591 build-timeout: '{build-timeout}'
595 server-name: 'OpenDaylight'
597 - patchset-created-event:
598 exclude-drafts: 'true'
599 exclude-trivial-rebase: 'false'
600 exclude-no-code-change: 'true'
601 - draft-published-event
602 - comment-added-contains-event:
603 comment-contains-value: 'recheck'
604 - comment-added-contains-event:
605 comment-contains-value: 'reverify'
606 - comment-added-contains-event:
607 comment-contains-value: 'revalidate'
609 - project-compare-type: 'ANT'
610 project-pattern: '{project}'
612 - branch-compare-type: 'ANT'
613 branch-pattern: '**/{branch}'
619 - jacoco-nojava-workaround
620 - autorelease-checkout-gerrit-patch
621 - autorelease-generate-release-patches
623 maven-version: 'mvn33'
624 pom: validate-pom.xml
625 goals: 'clean install dependency:tree -V -B -T1.5C -Pq -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
628 settings: 'autorelease-settings'
630 global-settings: 'odl-global-settings'
631 global-settings-type: cfp
633 maven-version: 'mvn33'
635 goals: 'clean validate -V -B -Pq -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
637 - '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
638 settings: 'autorelease-settings'
640 global-settings: 'odl-global-settings'
641 global-settings-type: cfp
642 - autorelease-sys-stats
645 - email-notification:
646 email-prefix: '[autorelease] [{project-name}]'
647 - opendaylight-infra-shiplogs:
648 maven-version: 'mvn33'
651 name: '{project-name}-verify-{stream}-{maven}-{jdks}'
653 # Job template for ODL verify jobs
655 # The purpose of this job template is to setup a ODL verify job
657 # Required Variables:
658 # stream: release stream (eg. boron or carbon)
659 # branch: git branch (eg. stable/boron or master)
661 project-type: freestyle
670 - opendaylight-infra-parameters:
673 refspec: 'refs/heads/{branch}'
674 artifacts: '{archive-artifacts}'
677 - gerrit-trigger-scm:
678 refspec: '$GERRIT_REFSPEC'
679 choosing-strategy: 'gerrit'
682 - opendaylight-infra-wrappers:
683 build-timeout: '{build-timeout}'
686 - gerrit-trigger-patch-submitted:
691 - jacoco-nojava-workaround
692 - provide-maven-settings:
693 global-settings-file: 'odl-global-settings'
694 settings-file: '{mvn-settings}'
696 maven-version: '{mvn-version}'
697 goals: '{mvn-goals} -V -B -Djenkins -Dstream={stream} -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
700 settings: '{mvn-settings}'
702 global-settings: 'odl-global-settings'
703 global-settings-type: cfp
707 - email-notification:
708 email-prefix: '[{project-name}]'
710 - opendaylight-infra-shiplogs:
711 maven-version: '{mvn-version}'