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: '{name}-clm-{stream}'
16 daysToKeep: '{build-days-to-keep}'
17 numToKeep: '{build-num-to-keep}'
29 - opendaylight-infra-wrappers:
30 build-timeout: '{build-timeout}'
36 - provide-maven-settings:
37 global-settings-file: 'odl-global-settings'
38 settings-file: '{mvn-settings}'
43 goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
44 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
45 settings: '{mvn-settings}'
47 global-settings: 'odl-global-settings'
48 global-settings-type: cfp
51 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
53 application-name: '{name}'
57 email-prefix: '[{name}]'
59 maven-version: '{mvn33}'
61 # Template: integration-patch-distribution-{stream}
62 # Goal: Build a patch and make sure the distribution can deploy with this change
63 # Operation: This job template builds a patch, creates a distribution containing
64 # the patch, and triggers the distribution deploy test
67 name: '{name}-distribution-check-{stream}'
68 disabled: '{obj:disable_distribution_check}'
76 daysToKeep: '{build-days-to-keep}'
77 numToKeep: '{build-num-to-keep}'
78 artifactDaysToKeep: '{build-artifact-days-to-keep}'
79 artifactNumToKeep: '{build-artifact-num-to-keep}'
85 refspec: 'refs/heads/{branch}'
88 - integration-distribution-git-url
91 - integration-gerrit-scm:
92 basedir: '$GERRIT_PROJECT'
93 refspec: '$GERRIT_REFSPEC'
95 - integration-distribution-scm:
99 - opendaylight-infra-wrappers:
100 build-timeout: '{build-timeout}'
104 server-name: 'OpenDaylight'
106 - patchset-created-event:
107 exclude-drafts: 'true'
108 exclude-trivial-rebase: 'false'
109 exclude-no-code-change: 'true'
110 - draft-published-event
111 - comment-added-contains-event:
112 comment-contains-value: 'test-distribution'
113 - comment-added-contains-event:
114 comment-contains-value: 'reverify'
115 - comment-added-contains-event:
116 comment-contains-value: 'recheck'
118 - project-compare-type: 'ANT'
119 project-pattern: '{name}'
121 - branch-compare-type: 'ANT'
122 branch-pattern: '**/{branch}'
131 maven-version: '{mvn33}'
132 pom: '$GERRIT_PROJECT/pom.xml'
133 goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}'
135 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
136 settings: '{mvn-settings}'
138 global-settings: 'odl-global-settings'
139 global-settings-type: cfp
142 maven-name: '{mvn33}'
143 root-pom: 'distribution/pom.xml'
144 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
145 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
146 settings: '{mvn-settings}'
148 global-settings: 'odl-global-settings'
149 global-settings-type: cfp
150 ignore-upstream-changes: true
151 post-step-run-condition: 'SUCCESS'
154 - integration-distribution-check
157 - email-notification:
158 email-prefix: '[{name}]'
163 mkdir -p $WORKSPACE/archives
164 cp karaf*.log $WORKSPACE/archives
165 script-only-if-succeeded: False
166 script-only-if-failed: False
167 mark-unstable-if-failed: True
169 maven-version: '{mvn33}'