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
176 - gerrit-trigger-patch-submitted:
177 server: '{server-name}'
184 maven-version: 'mvn33'
185 pom: '$GERRIT_PROJECT/pom.xml'
186 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}'
188 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
189 settings: '{mvn-settings}'
191 global-settings: 'odl-global-settings'
192 global-settings-type: cfp
194 maven-version: 'mvn33'
195 pom: 'distribution/pom.xml'
196 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'
198 - '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
199 settings: '{mvn-settings}'
201 global-settings: 'odl-global-settings'
202 global-settings-type: cfp
203 - integration-distribution-check
206 - email-notification:
207 email-recipients: '{email-recipients}'
208 email-prefix: '[{project-name}]'
213 mkdir -p $WORKSPACE/archives
214 cp karaf*.log $WORKSPACE/archives
215 script-only-if-succeeded: False
216 script-only-if-failed: False
217 mark-unstable-if-failed: True
220 - opendaylight-infra-shiplogs:
221 maven-version: 'mvn33'
224 name: '{project-name}-integration-{stream}'
226 # Job template for ODL integration verify jobs
228 # This is similar to a normal verify job, but it runs
229 # when a project that's a dependency of your project
230 # is successfully built.
232 # Required Variables:
233 # stream: release stream (eg. boron or carbon)
234 # branch: git branch (eg. stable/boron or master)
236 project-type: freestyle
241 daysToKeep: '{build-days-to-keep}'
242 numToKeep: '{build-num-to-keep}'
243 artifactDaysToKeep: '{build-artifact-days-to-keep}'
244 artifactNumToKeep: '{build-artifact-num-to-keep}'
247 - opendaylight-infra-parameters:
250 refspec: 'refs/heads/{branch}'
251 artifacts: '{archive-artifacts}'
259 - opendaylight-infra-wrappers:
260 build-timeout: '{build-timeout}'
264 jobs: '{dependencies}'
268 - jacoco-nojava-workaround
269 - provide-maven-settings:
270 global-settings-file: 'odl-global-settings'
271 settings-file: '{mvn-settings}'
273 maven-version: 'mvn33'
274 goals: '{mvn-goals} -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
277 settings: '{mvn-settings}'
279 global-settings: 'odl-global-settings'
280 global-settings-type: cfp
283 - email-notification:
284 email-recipients: '{email-recipients}'
285 email-prefix: '{email-upstream}'
288 - opendaylight-infra-shiplogs:
289 maven-version: 'mvn33'
292 name: '{project-name}-merge-{stream}'
294 # Job template for ODL merge jobs
296 # The purpose of this job template is to setup a ODL merge job
297 # and deploy artifacts to Nexus.
299 # Required Variables:
300 # stream: release stream (eg. boron or carbon)
301 # branch: git branch (eg. stable/boron or master)
303 # Need to keep jobs that deploy to Nexus at end of build as Maven
304 # projects. Maybe reconsider this once upstream moves deploy to a
305 # separate lifecycle:
306 # https://issues.apache.org/jira/browse/MNG-5666
314 artifactDaysToKeep: '{build-artifact-days-to-keep}'
315 artifactNumToKeep: '{build-artifact-num-to-keep}'
318 - opendaylight-infra-parameters:
321 refspec: 'refs/heads/{branch}'
322 artifacts: '{archive-artifacts}'
325 - gerrit-trigger-scm:
327 choosing-strategy: 'default'
330 - opendaylight-infra-wrappers:
331 build-timeout: '{build-timeout}'
335 - gerrit-trigger-patch-merged:
336 server-name: '{server-name}'
341 - jacoco-nojava-workaround
342 - provide-maven-settings:
343 global-settings-file: 'odl-global-settings'
344 settings-file: '{mvn-settings}'
348 goals: '{mvn-goals} -V -B -Djenkins -Dmerge -Dstream={stream} -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
349 maven-opts: '{mvn-opts}'
350 settings: '{mvn-settings}'
352 global-settings: 'odl-global-settings'
353 global-settings-type: cfp
354 post-step-run-condition: UNSTABLE
358 condition-kind: file-exists
359 condition-filename: deploy-site.xml
360 condition-basedir: workspace
362 # The strategy here is intentional to run Maven site:deploy twice
363 # once using regular pom.xml to produce a staged-site which is
364 # then used by deploy-site.xml to push to Nexus. This is a
365 # workaround to Maven Site's default linking code which creates
366 # incorrect URLs for sites due to auto-detection assuming your
367 # project is configured in a certain way which ODL is not.
370 maven-version: 'mvn33'
372 goals: 'site:deploy -V -B -Dstream={stream}'
375 settings: '{mvn-settings}'
377 global-settings: 'odl-global-settings'
378 global-settings-type: cfp
380 maven-version: 'mvn33'
382 goals: 'site:deploy -V -B -Dstream={stream}'
385 settings: '{mvn-settings}'
387 global-settings: 'odl-global-settings'
388 global-settings-type: cfp
394 - email-notification:
395 email-recipients: '{email-recipients}'
396 email-prefix: '[{project-name}]'
400 deploy-unstable: false
402 - opendaylight-infra-shiplogs:
403 maven-version: 'mvn33'
406 name: '{project-name}-periodic-{stream}'
408 # Job template for periodic builders
410 # The purpose of this job template is to setup a periodic
413 # Required Variables:
414 # stream: release stream (eg. boron or carbon)
415 # branch: git branch (eg. stable/boron or master)
417 project-type: freestyle
425 - opendaylight-infra-parameters:
428 refspec: 'refs/heads/{branch}'
429 artifacts: '{archive-artifacts}'
437 - opendaylight-infra-wrappers:
438 build-timeout: '{build-timeout}'
444 - jacoco-nojava-workaround
445 - provide-maven-settings:
446 global-settings-file: 'odl-global-settings'
447 settings-file: '{mvn-settings}'
449 maven-version: 'mvn33'
450 goals: '{mvn-goals} -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
453 settings: '{mvn-settings}'
455 global-settings: 'odl-global-settings'
456 global-settings-type: cfp
459 - email-notification:
460 email-recipients: '{email-recipients}'
461 email-prefix: '[{project-name}]'
464 - opendaylight-infra-shiplogs:
465 maven-version: 'mvn33'
468 name: '{project-name}-sonar'
471 project-type: freestyle
478 artifactDaysToKeep: '1'
479 artifactNumToKeep: '1'
482 - opendaylight-infra-parameters:
485 refspec: 'refs/heads/{branch}'
486 artifacts: '{archive-artifacts}'
494 - opendaylight-infra-wrappers:
495 build-timeout: '{build-timeout}'
499 - gerrit-trigger-patch-sonar:
500 server-name: '{server-name}'
502 # FIXME: Make sure this does not alter Gerrit votes, then update docs.
505 - jacoco-nojava-workaround
506 - provide-maven-settings:
507 global-settings-file: 'odl-global-settings'
508 settings-file: '{mvn-settings}'
510 maven-version: 'mvn33'
511 goals: '{mvn-goals} -V -B -Djenkins -Dsonar -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
514 settings: '{mvn-settings}'
516 global-settings: 'odl-global-settings'
517 global-settings-type: cfp
519 maven-version: 'mvn33'
520 # We should switch to the recommended configuration of sonar once
521 # JJB adds support for configurating the Sonar wrapper:
522 # http://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+Jenkins
523 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'
526 settings: '{mvn-settings}'
528 global-settings: 'odl-global-settings'
529 global-settings-type: cfp
532 - email-notification:
533 email-recipients: '{email-recipients}'
534 email-prefix: '[{project-name}]'
537 - opendaylight-infra-shiplogs:
538 maven-version: 'mvn33'
541 name: '{project-name}-validate-autorelease-{stream}'
544 project-type: freestyle
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}'
584 - gerrit-trigger-patch-submitted:
585 server: '{server-name}'
591 - jacoco-nojava-workaround
592 - autorelease-checkout-gerrit-patch
593 - autorelease-generate-release-patches
595 maven-version: 'mvn33'
596 pom: validate-pom.xml
597 goals: 'clean install dependency:tree -V -B -T1.5C -Pq -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
600 settings: 'autorelease-settings'
602 global-settings: 'odl-global-settings'
603 global-settings-type: cfp
605 maven-version: 'mvn33'
607 goals: 'clean validate -V -B -Pq -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
609 - '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
610 settings: 'autorelease-settings'
612 global-settings: 'odl-global-settings'
613 global-settings-type: cfp
614 - autorelease-sys-stats
617 - email-notification:
618 email-recipients: '{email-recipients}'
619 email-prefix: '[autorelease] [{project-name}]'
620 - opendaylight-infra-shiplogs:
621 maven-version: 'mvn33'
624 name: '{project-name}-verify-{stream}-{maven}-{jdks}'
626 # Job template for ODL verify jobs
628 # The purpose of this job template is to setup a ODL verify job
630 # Required Variables:
631 # stream: release stream (eg. boron or carbon)
632 # branch: git branch (eg. stable/boron or master)
634 project-type: freestyle
643 - opendaylight-infra-parameters:
646 refspec: 'refs/heads/{branch}'
647 artifacts: '{archive-artifacts}'
650 - gerrit-trigger-scm:
651 refspec: '$GERRIT_REFSPEC'
652 choosing-strategy: 'gerrit'
655 - opendaylight-infra-wrappers:
656 build-timeout: '{build-timeout}'
659 - gerrit-trigger-patch-submitted:
660 server: '{server-name}'
666 - jacoco-nojava-workaround
667 - provide-maven-settings:
668 global-settings-file: 'odl-global-settings'
669 settings-file: '{mvn-settings}'
671 maven-version: '{mvn-version}'
672 goals: '{mvn-goals} -V -B -Djenkins -Dstream={stream} -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
675 settings: '{mvn-settings}'
677 global-settings: 'odl-global-settings'
678 global-settings-type: cfp
682 - email-notification:
683 email-recipients: '{email-recipients}'
684 email-prefix: '[{project-name}]'
686 - opendaylight-infra-shiplogs:
687 maven-version: '{mvn-version}'