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: 'OpenDaylight'
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:
358 - jacoco-nojava-workaround
359 - provide-maven-settings:
360 global-settings-file: 'odl-global-settings'
361 settings-file: '{mvn-settings}'
365 goals: '{mvn-goals} -V -B -Djenkins -Dmerge -Dstream={stream} -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
366 maven-opts: '{mvn-opts}'
367 settings: '{mvn-settings}'
369 global-settings: 'odl-global-settings'
370 global-settings-type: cfp
371 post-step-run-condition: UNSTABLE
375 condition-kind: file-exists
376 condition-filename: deploy-site.xml
377 condition-basedir: workspace
379 # The strategy here is intentional to run Maven site:deploy twice
380 # once using regular pom.xml to produce a staged-site which is
381 # then used by deploy-site.xml to push to Nexus. This is a
382 # workaround to Maven Site's default linking code which creates
383 # incorrect URLs for sites due to auto-detection assuming your
384 # project is configured in a certain way which ODL is not.
387 maven-version: 'mvn33'
389 goals: 'site:deploy -V -B -Dstream={stream}'
392 settings: '{mvn-settings}'
394 global-settings: 'odl-global-settings'
395 global-settings-type: cfp
397 maven-version: 'mvn33'
399 goals: 'site:deploy -V -B -Dstream={stream}'
402 settings: '{mvn-settings}'
404 global-settings: 'odl-global-settings'
405 global-settings-type: cfp
411 - email-notification:
412 email-recipients: '{email-recipients}'
413 email-prefix: '[{project-name}]'
417 deploy-unstable: false
419 - opendaylight-infra-shiplogs:
420 maven-version: 'mvn33'
423 name: '{project-name}-periodic-{stream}'
425 # Job template for periodic builders
427 # The purpose of this job template is to setup a periodic
430 # Required Variables:
431 # stream: release stream (eg. boron or carbon)
432 # branch: git branch (eg. stable/boron or master)
434 project-type: freestyle
442 - opendaylight-infra-parameters:
445 refspec: 'refs/heads/{branch}'
446 artifacts: '{archive-artifacts}'
454 - opendaylight-infra-wrappers:
455 build-timeout: '{build-timeout}'
461 - jacoco-nojava-workaround
462 - provide-maven-settings:
463 global-settings-file: 'odl-global-settings'
464 settings-file: '{mvn-settings}'
466 maven-version: 'mvn33'
467 goals: '{mvn-goals} -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
470 settings: '{mvn-settings}'
472 global-settings: 'odl-global-settings'
473 global-settings-type: cfp
476 - email-notification:
477 email-recipients: '{email-recipients}'
478 email-prefix: '[{project-name}]'
481 - opendaylight-infra-shiplogs:
482 maven-version: 'mvn33'
485 name: '{project-name}-sonar'
488 project-type: freestyle
495 artifactDaysToKeep: '1'
496 artifactNumToKeep: '1'
499 - opendaylight-infra-parameters:
502 refspec: 'refs/heads/{branch}'
503 artifacts: '{archive-artifacts}'
511 - opendaylight-infra-wrappers:
512 build-timeout: '{build-timeout}'
516 - gerrit-trigger-patch-sonar:
520 - jacoco-nojava-workaround
521 - provide-maven-settings:
522 global-settings-file: 'odl-global-settings'
523 settings-file: '{mvn-settings}'
525 maven-version: 'mvn33'
526 goals: '{mvn-goals} -V -B -Djenkins -Dsonar -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
529 settings: '{mvn-settings}'
531 global-settings: 'odl-global-settings'
532 global-settings-type: cfp
534 maven-version: 'mvn33'
535 # We should switch to the recommended configuration of sonar once
536 # JJB adds support for configurating the Sonar wrapper:
537 # http://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+Jenkins
538 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'
541 settings: '{mvn-settings}'
543 global-settings: 'odl-global-settings'
544 global-settings-type: cfp
547 - email-notification:
548 email-recipients: '{email-recipients}'
549 email-prefix: '[{project-name}]'
552 - opendaylight-infra-shiplogs:
553 maven-version: 'mvn33'
556 name: '{project-name}-validate-autorelease-{stream}'
559 project-type: freestyle
568 - opendaylight-infra-parameters:
571 refspec: 'refs/heads/{branch}'
572 artifacts: '{archive-artifacts}'
573 - autorelease-release-tag:
574 release-tag: 'validate'
575 - autorelease-release-branch:
576 release-branch: '{branch}'
579 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
580 description: "Autorelease clone URL"
585 credentials-id: 'opendaylight-jenkins-ssh'
595 - opendaylight-infra-wrappers:
596 build-timeout: '{build-timeout}'
600 server-name: 'OpenDaylight'
602 - patchset-created-event:
603 exclude-drafts: 'true'
604 exclude-trivial-rebase: 'false'
605 exclude-no-code-change: 'true'
606 - draft-published-event
607 - comment-added-contains-event:
608 comment-contains-value: 'recheck'
609 - comment-added-contains-event:
610 comment-contains-value: 'revalidate'
612 - project-compare-type: 'ANT'
613 project-pattern: '{project}'
615 - branch-compare-type: 'ANT'
616 branch-pattern: '**/{branch}'
622 - jacoco-nojava-workaround
623 - autorelease-checkout-gerrit-patch
624 - autorelease-generate-release-patches
626 maven-version: 'mvn33'
627 pom: validate-pom.xml
628 goals: 'clean install dependency:tree -V -B -T1.5C -Pq -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
631 settings: 'autorelease-settings'
633 global-settings: 'odl-global-settings'
634 global-settings-type: cfp
636 maven-version: 'mvn33'
638 goals: 'clean validate -V -B -Pq -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
640 - '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
641 settings: 'autorelease-settings'
643 global-settings: 'odl-global-settings'
644 global-settings-type: cfp
645 - autorelease-sys-stats
648 - email-notification:
649 email-recipients: '{email-recipients}'
650 email-prefix: '[autorelease] [{project-name}]'
651 - opendaylight-infra-shiplogs:
652 maven-version: 'mvn33'
655 name: '{project-name}-verify-{stream}-{maven}-{jdks}'
657 # Job template for ODL verify jobs
659 # The purpose of this job template is to setup a ODL verify job
661 # Required Variables:
662 # stream: release stream (eg. boron or carbon)
663 # branch: git branch (eg. stable/boron or master)
665 project-type: freestyle
674 - opendaylight-infra-parameters:
677 refspec: 'refs/heads/{branch}'
678 artifacts: '{archive-artifacts}'
681 - gerrit-trigger-scm:
682 refspec: '$GERRIT_REFSPEC'
683 choosing-strategy: 'gerrit'
686 - opendaylight-infra-wrappers:
687 build-timeout: '{build-timeout}'
690 - gerrit-trigger-patch-submitted:
695 - jacoco-nojava-workaround
696 - provide-maven-settings:
697 global-settings-file: 'odl-global-settings'
698 settings-file: '{mvn-settings}'
700 maven-version: '{mvn-version}'
701 goals: '{mvn-goals} -V -B -Djenkins -Dstream={stream} -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
704 settings: '{mvn-settings}'
706 global-settings: 'odl-global-settings'
707 global-settings-type: cfp
711 - email-notification:
712 email-recipients: '{email-recipients}'
713 email-prefix: '[{project-name}]'
715 - opendaylight-infra-shiplogs:
716 maven-version: '{mvn-version}'