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: 'true'
181 - draft-published-event
182 - comment-added-contains-event:
183 comment-contains-value: 'redistcheck'
184 - comment-added-contains-event:
185 comment-contains-value: 'recheck'
187 - project-compare-type: 'ANT'
188 project-pattern: '{project}'
190 - branch-compare-type: 'ANT'
191 branch-pattern: '**/{branch}'
200 maven-version: 'mvn33'
201 pom: '$GERRIT_PROJECT/pom.xml'
202 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}'
204 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
205 settings: '{mvn-settings}'
207 global-settings: 'odl-global-settings'
208 global-settings-type: cfp
210 maven-version: 'mvn33'
211 pom: 'distribution/pom.xml'
212 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'
214 - '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
215 settings: '{mvn-settings}'
217 global-settings: 'odl-global-settings'
218 global-settings-type: cfp
219 - integration-distribution-check
222 - email-notification:
223 email-prefix: '[{project-name}]'
228 mkdir -p $WORKSPACE/archives
229 cp karaf*.log $WORKSPACE/archives
230 script-only-if-succeeded: False
231 script-only-if-failed: False
232 mark-unstable-if-failed: True
235 - opendaylight-infra-shiplogs:
236 maven-version: 'mvn33'
239 name: '{project-name}-integration-{stream}'
241 # Job template for ODL integration verify jobs
243 # This is similar to a normal verify job, but it runs
244 # when a project that's a dependency of your project
245 # is successfully built.
247 # Required Variables:
248 # stream: release stream (eg. boron or carbon)
249 # branch: git branch (eg. stable/boron or master)
251 project-type: freestyle
256 daysToKeep: '{build-days-to-keep}'
257 numToKeep: '{build-num-to-keep}'
258 artifactDaysToKeep: '{build-artifact-days-to-keep}'
259 artifactNumToKeep: '{build-artifact-num-to-keep}'
262 - opendaylight-infra-parameters:
265 refspec: 'refs/heads/{branch}'
266 artifacts: '{archive-artifacts}'
274 - opendaylight-infra-wrappers:
275 build-timeout: '{build-timeout}'
279 jobs: '{dependencies}'
283 - jacoco-nojava-workaround
284 - provide-maven-settings:
285 global-settings-file: 'odl-global-settings'
286 settings-file: '{mvn-settings}'
288 maven-version: 'mvn33'
289 goals: '{mvn-goals} -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
292 settings: '{mvn-settings}'
294 global-settings: 'odl-global-settings'
295 global-settings-type: cfp
298 - email-notification:
299 email-prefix: '{email-upstream}'
302 - opendaylight-infra-shiplogs:
303 maven-version: 'mvn33'
306 name: '{project-name}-merge-{stream}'
308 # Job template for ODL merge jobs
310 # The purpose of this job template is to setup a ODL merge job
311 # and deploy artifacts to Nexus.
313 # Required Variables:
314 # stream: release stream (eg. boron or carbon)
315 # branch: git branch (eg. stable/boron or master)
317 # Need to keep jobs that deploy to Nexus at end of build as Maven
318 # projects. Maybe reconsider this once upstream moves deploy to a
319 # separate lifecycle:
320 # https://issues.apache.org/jira/browse/MNG-5666
328 artifactDaysToKeep: '{build-artifact-days-to-keep}'
329 artifactNumToKeep: '{build-artifact-num-to-keep}'
332 - opendaylight-infra-parameters:
335 refspec: 'refs/heads/{branch}'
336 artifacts: '{archive-artifacts}'
339 - gerrit-trigger-scm:
341 choosing-strategy: 'default'
344 - opendaylight-infra-wrappers:
345 build-timeout: '{build-timeout}'
349 - gerrit-trigger-patch-merged:
354 - jacoco-nojava-workaround
355 - provide-maven-settings:
356 global-settings-file: 'odl-global-settings'
357 settings-file: '{mvn-settings}'
361 goals: '{mvn-goals} -V -B -Djenkins -Dmerge -Dstream={stream} -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
362 maven-opts: '{mvn-opts}'
363 settings: '{mvn-settings}'
365 global-settings: 'odl-global-settings'
366 global-settings-type: cfp
367 post-step-run-condition: UNSTABLE
371 condition-kind: file-exists
372 condition-filename: deploy-site.xml
373 condition-basedir: workspace
375 # The strategy here is intentional to run Maven site:deploy twice
376 # once using regular pom.xml to produce a staged-site which is
377 # then used by deploy-site.xml to push to Nexus. This is a
378 # workaround to Maven Site's default linking code which creates
379 # incorrect URLs for sites due to auto-detection assuming your
380 # project is configured in a certain way which ODL is not.
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
393 maven-version: 'mvn33'
395 goals: 'site:deploy -V -B -Dstream={stream}'
398 settings: '{mvn-settings}'
400 global-settings: 'odl-global-settings'
401 global-settings-type: cfp
407 - email-notification:
408 email-prefix: '[{project-name}]'
412 deploy-unstable: false
414 - opendaylight-infra-shiplogs:
415 maven-version: 'mvn33'
418 name: '{project-name}-periodic-{stream}'
420 # Job template for periodic builders
422 # The purpose of this job template is to setup a periodic
425 # Required Variables:
426 # stream: release stream (eg. boron or carbon)
427 # branch: git branch (eg. stable/boron or master)
429 project-type: freestyle
437 - opendaylight-infra-parameters:
440 refspec: 'refs/heads/{branch}'
441 artifacts: '{archive-artifacts}'
449 - opendaylight-infra-wrappers:
450 build-timeout: '{build-timeout}'
456 - jacoco-nojava-workaround
457 - provide-maven-settings:
458 global-settings-file: 'odl-global-settings'
459 settings-file: '{mvn-settings}'
461 maven-version: 'mvn33'
462 goals: '{mvn-goals} -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
465 settings: '{mvn-settings}'
467 global-settings: 'odl-global-settings'
468 global-settings-type: cfp
471 - email-notification:
472 email-prefix: '[{project-name}]'
475 - opendaylight-infra-shiplogs:
476 maven-version: 'mvn33'
479 name: '{project-name}-sonar'
482 project-type: freestyle
489 artifactDaysToKeep: '1'
490 artifactNumToKeep: '1'
493 - opendaylight-infra-parameters:
496 refspec: 'refs/heads/{branch}'
497 artifacts: '{archive-artifacts}'
505 - opendaylight-infra-wrappers:
506 build-timeout: '{build-timeout}'
510 - gerrit-trigger-patch-sonar:
514 - jacoco-nojava-workaround
515 - provide-maven-settings:
516 global-settings-file: 'odl-global-settings'
517 settings-file: '{mvn-settings}'
519 maven-version: 'mvn33'
520 goals: '{mvn-goals} -V -B -Djenkins -Dsonar -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
523 settings: '{mvn-settings}'
525 global-settings: 'odl-global-settings'
526 global-settings-type: cfp
528 maven-version: 'mvn33'
529 # We should switch to the recommended configuration of sonar once
530 # JJB adds support for configurating the Sonar wrapper:
531 # http://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+Jenkins
532 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'
535 settings: '{mvn-settings}'
537 global-settings: 'odl-global-settings'
538 global-settings-type: cfp
541 - email-notification:
542 email-prefix: '[{project-name}]'
545 - opendaylight-infra-shiplogs:
546 maven-version: 'mvn33'
549 name: '{project-name}-validate-autorelease-{stream}'
550 disabled: '{obj:disable_autorelease}'
552 project-type: freestyle
561 - opendaylight-infra-parameters:
564 refspec: 'refs/heads/{branch}'
565 artifacts: '{archive-artifacts}'
566 - autorelease-release-tag:
567 release-tag: 'validate'
568 - autorelease-release-branch:
569 release-branch: '{branch}'
572 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
573 description: "Autorelease clone URL"
578 credentials-id: 'opendaylight-jenkins-ssh'
588 - opendaylight-infra-wrappers:
589 build-timeout: '{build-timeout}'
593 server-name: 'OpenDaylight'
595 - patchset-created-event:
596 exclude-drafts: 'true'
597 exclude-trivial-rebase: 'false'
598 exclude-no-code-change: 'true'
599 - draft-published-event
600 - comment-added-contains-event:
601 comment-contains-value: 'recheck'
602 - comment-added-contains-event:
603 comment-contains-value: 'revalidate'
605 - project-compare-type: 'ANT'
606 project-pattern: '{project}'
608 - branch-compare-type: 'ANT'
609 branch-pattern: '**/{branch}'
615 - jacoco-nojava-workaround
616 - autorelease-checkout-gerrit-patch
617 - autorelease-generate-release-patches
619 maven-version: 'mvn33'
620 pom: validate-pom.xml
621 goals: 'clean install dependency:tree -V -B -T1.5C -Pq -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
624 settings: 'autorelease-settings'
626 global-settings: 'odl-global-settings'
627 global-settings-type: cfp
629 maven-version: 'mvn33'
631 goals: 'clean validate -V -B -Pq -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
633 - '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
634 settings: 'autorelease-settings'
636 global-settings: 'odl-global-settings'
637 global-settings-type: cfp
638 - autorelease-sys-stats
641 - email-notification:
642 email-prefix: '[autorelease] [{project-name}]'
643 - opendaylight-infra-shiplogs:
644 maven-version: 'mvn33'
647 name: '{project-name}-verify-{stream}-{maven}-{jdks}'
649 # Job template for ODL verify jobs
651 # The purpose of this job template is to setup a ODL verify job
653 # Required Variables:
654 # stream: release stream (eg. boron or carbon)
655 # branch: git branch (eg. stable/boron or master)
657 project-type: freestyle
666 - opendaylight-infra-parameters:
669 refspec: 'refs/heads/{branch}'
670 artifacts: '{archive-artifacts}'
673 - gerrit-trigger-scm:
674 refspec: '$GERRIT_REFSPEC'
675 choosing-strategy: 'gerrit'
678 - opendaylight-infra-wrappers:
679 build-timeout: '{build-timeout}'
682 - gerrit-trigger-patch-submitted:
687 - jacoco-nojava-workaround
688 - provide-maven-settings:
689 global-settings-file: 'odl-global-settings'
690 settings-file: '{mvn-settings}'
692 maven-version: '{mvn-version}'
693 goals: '{mvn-goals} -V -B -Djenkins -Dstream={stream} -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
696 settings: '{mvn-settings}'
698 global-settings: 'odl-global-settings'
699 global-settings-type: cfp
703 - email-notification:
704 email-prefix: '[{project-name}]'
706 - opendaylight-infra-shiplogs:
707 maven-version: '{mvn-version}'