2 name: '{project-name}-release-java'
4 # Job template for producing a release candidate by creating a staging repo
7 project-type: freestyle
15 - opendaylight-infra-parameters:
18 refspec: 'refs/heads/{branch}'
19 artifacts: '{archive-artifacts}'
22 stage-id: '{stage-id}'
26 credentials-id: 'opendaylight-jenkins-ssh'
35 - opendaylight-infra-wrappers:
36 build-timeout: '{build-timeout}'
39 - wipe-org-opendaylight-repo
40 - jacoco-nojava-workaround
41 - provide-maven-settings:
42 global-settings-file: 'odl-global-settings'
43 settings-file: 'autorelease-settings'
45 maven-version: '{mvn33}'
47 goals: 'clean deploy -V -B -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -DaltDeploymentRepository=staging::default::file:hide/from/pom/files/stage'
49 - '-Xmx1024m -XX:MaxPermSize=256m'
50 settings: 'autorelease-settings'
52 global-settings: 'odl-global-settings'
53 global-settings-type: cfp
54 - releng-stage-release
58 email-prefix: '[releng]'
59 - opendaylight-infra-shiplogs:
60 maven-version: '{mvn33}'
64 name: '{project-name}-publish-p2repo'
66 # Job template for publishing a p2 repo given a URL to a zipped p2repo.
68 project-type: freestyle
73 - opendaylight-infra-parameters:
76 refspec: 'refs/heads/{branch}'
77 artifacts: '{archive-artifacts}'
81 - opendaylight-infra-wrappers:
82 build-timeout: '{build-timeout}'
85 - wipe-org-opendaylight-repo
86 - jacoco-nojava-workaround
87 - releng-fetch-p2zip-if-necessary:
88 maven-version: '{mvn33}'
89 settings: '{mvn-settings}'
90 global-settings: 'odl-global-settings'
91 - releng-generate-p2pom
93 maven-version: '{mvn33}'
95 goals: 'clean deploy -V -B -Dmaven.repo.local=/tmp/r'
96 settings: '{mvn-settings}'
98 global-settings: 'odl-global-settings'
99 global-settings-type: cfp
100 - releng-update-p2composite-metadata:
101 maven-version: '{mvn33}'
102 settings: '{mvn-settings}'
103 global-settings: 'odl-global-settings'
106 - email-notification:
107 email-prefix: '[releng]'
108 - opendaylight-infra-shiplogs:
109 maven-version: '{mvn33}'
114 name: '{project-name}-verify-python-{stream}'
116 # Job template for python verify jobs
118 # The purpose of this job template is to run tox for projects using this
121 # Required Variables:
122 # stream: release stream (eg. boron or carbon)
123 # branch: git branch (eg. stable/boron or master)
124 # toxdir: directory containing the project's tox.ini relative to
125 # the workspace. Empty works if tox.ini is at project root.
127 project-type: freestyle
134 artifactDaysToKeep: '-1'
135 artifactNumToKeep: '-1'
138 - opendaylight-infra-parameters:
141 refspec: 'refs/heads/{branch}'
142 artifacts: '{archive-artifacts}'
146 credentials-id: 'opendaylight-jenkins-ssh'
149 refspec: '$GERRIT_REFSPEC'
151 - 'origin/$GERRIT_BRANCH'
153 choosing-strategy: 'gerrit'
156 - opendaylight-infra-wrappers:
157 build-timeout: '{build-timeout}'
161 server-name: 'OpenDaylight'
163 - patchset-created-event:
164 exclude-drafts: 'true'
165 exclude-trivial-rebase: 'false'
166 exclude-no-code-change: 'true'
167 - draft-published-event
168 - comment-added-contains-event:
169 comment-contains-value: 'recheck'
170 - comment-added-contains-event:
171 comment-contains-value: 'reverify'
173 - project-compare-type: 'ANT'
174 project-pattern: '{project}'
176 - branch-compare-type: 'ANT'
177 branch-pattern: '**/{branch}'
180 pattern: '{toxdir}/**'
184 virtualenv $WORKSPACE/venv-tox
185 source $WORKSPACE/venv-tox/bin/activate
186 pip install --upgrade pip
187 pip install --upgrade tox argparse
189 cd $WORKSPACE/repo/{toxdir}
193 - email-notification:
194 email-prefix: '[{project}]'
195 - opendaylight-infra-shiplogs:
196 maven-version: '{mvn33}'
199 name: '{project-name}-merge-rtd-{stream}'
200 # Template for ReadTheDocs triggering
202 project-type: freestyle
207 - opendaylight-infra-parameters:
210 refspec: 'refs/heads/{branch}'
211 artifacts: '{archive-artifacts}'
214 - opendaylight-infra-wrappers:
215 build-timeout: '{build-timeout}'
218 - gerrit-trigger-patch-merged:
224 curl -X POST https://readthedocs.org/build/{rtdproject}
227 - email-notification:
228 email-prefix: '[{project}]'
229 - opendaylight-infra-shiplogs:
230 maven-version: '{mvn33}'
235 name: '{project-name}-verify-node-{stream}'
237 # Job template for python verify jobs
239 # The purpose of this job template is to run node tests for projects using
240 # this template. It uses python virtualenv to install nodeenv and create a
241 # virtualenv for nodejs.
243 # Required Variables:
244 # stream: release stream (eg. boron or carbon)
245 # branch: git branch (eg. stable/boron or master)
246 # nodedir: directory of nodejs project to run node test against
247 # nodever: version of node to install in virtualenv
249 project-type: freestyle
256 artifactDaysToKeep: '-1'
257 artifactNumToKeep: '-1'
260 - opendaylight-infra-parameters:
263 refspec: 'refs/heads/{branch}'
264 artifacts: '{archive-artifacts}'
268 credentials-id: 'opendaylight-jenkins-ssh'
271 refspec: '$GERRIT_REFSPEC'
273 - 'origin/$GERRIT_BRANCH'
275 choosing-strategy: 'gerrit'
278 - opendaylight-infra-wrappers:
279 build-timeout: '{build-timeout}'
283 server-name: 'OpenDaylight'
285 - patchset-created-event:
286 exclude-drafts: 'true'
287 exclude-trivial-rebase: 'false'
288 exclude-no-code-change: 'true'
289 - draft-published-event
290 - comment-added-contains-event:
291 comment-contains-value: 'recheck'
292 - comment-added-contains-event:
293 comment-contains-value: 'reverify'
295 - project-compare-type: 'ANT'
296 project-pattern: '{project}'
298 - branch-compare-type: 'ANT'
299 branch-pattern: '**/{branch}'
302 pattern: '{nodedir}/**'
308 virtualenv $WORKSPACE/venv-python
309 source $WORKSPACE/venv-python/bin/activate
310 pip install --upgrade pip
311 pip install --upgrade tox argparse nodeenv
315 nodeenv --node={nodever} --prebuilt $WORKSPACE/venv-node
316 source $WORKSPACE/venv-node/bin/activate
317 cd $WORKSPACE/repo/{nodedir}
322 - email-notification:
323 email-prefix: '[{project}]'
324 - opendaylight-infra-shiplogs:
325 maven-version: '{mvn33}'