3 name: '{project-name}-release-java'
5 # Job template for producing a release candidate by creating a staging repo
8 project-type: freestyle
13 - opendaylight-infra-properties:
14 build-days-to-keep: 30
17 - opendaylight-infra-parameters:
18 os-cloud: '{os-cloud}'
21 refspec: 'refs/heads/{branch}'
22 artifacts: '{archive-artifacts}'
25 stage-id: '{stage-id}'
29 credentials-id: 'opendaylight-jenkins-ssh'
38 - opendaylight-infra-wrappers:
39 build-timeout: '{build-timeout}'
42 - wipe-org-opendaylight-repo
43 - jacoco-nojava-workaround
44 - provide-maven-settings:
45 global-settings-file: 'odl-global-settings'
46 settings-file: 'autorelease-settings'
48 maven-version: 'mvn33'
52 -Dmaven.repo.local=/tmp/r
53 -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r
55 -DaltDeploymentRepository=staging::default::file:hide/from/pom/files/stage
57 - '-Xmx1024m -XX:MaxPermSize=256m'
58 settings: 'autorelease-settings'
60 global-settings: 'odl-global-settings'
61 global-settings-type: cfp
62 - releng-stage-release
66 email-recipients: '{email-recipients}'
67 email-prefix: '[releng]'
68 - opendaylight-infra-shiplogs:
69 maven-version: 'mvn33'
73 name: '{project-name}-publish-p2repo'
75 # Job template for publishing a p2 repo given a URL to a zipped p2repo.
77 project-type: freestyle
82 - opendaylight-infra-parameters:
83 os-cloud: '{os-cloud}'
86 refspec: 'refs/heads/{branch}'
87 artifacts: '{archive-artifacts}'
91 - opendaylight-infra-wrappers:
92 build-timeout: '{build-timeout}'
95 - wipe-org-opendaylight-repo
96 - jacoco-nojava-workaround
97 - releng-fetch-p2zip-if-necessary:
98 maven-version: 'mvn33'
99 settings: '{mvn-settings}'
100 global-settings: 'odl-global-settings'
101 - releng-generate-p2pom
103 maven-version: 'mvn33'
105 goals: 'clean deploy -V -B -Dmaven.repo.local=/tmp/r'
106 settings: '{mvn-settings}'
108 global-settings: 'odl-global-settings'
109 global-settings-type: cfp
110 - releng-update-p2composite-metadata:
111 maven-version: 'mvn33'
112 settings: '{mvn-settings}'
113 global-settings: 'odl-global-settings'
116 - email-notification:
117 email-recipients: '{email-recipients}'
118 email-prefix: '[releng]'
119 - opendaylight-infra-shiplogs:
120 maven-version: 'mvn33'
122 # Generic tox-based verify action
124 - tox_builder_verify: &tox_builder_verify
125 name: tox_builder_verify
127 # Required Variables:
128 # branch: git branch (eg. stable/boron or master)
129 # toxdir: directory containing the project's tox.ini relative to
130 # the workspace. Empty works if tox.ini is at project root.
131 # Note that stream value is not needed.
133 project-type: freestyle
138 - opendaylight-infra-properties:
139 build-days-to-keep: 7
142 - opendaylight-infra-parameters:
143 os-cloud: '{os-cloud}'
146 refspec: 'refs/heads/{branch}'
147 artifacts: '{archive-artifacts}'
151 credentials-id: 'opendaylight-jenkins-ssh'
154 refspec: '$GERRIT_REFSPEC'
156 - 'origin/$GERRIT_BRANCH'
158 choosing-strategy: 'gerrit'
161 - opendaylight-infra-wrappers:
162 build-timeout: '{build-timeout}'
165 - gerrit-trigger-patch-submitted:
166 server: '{server-name}'
173 virtualenv $WORKSPACE/venv-tox
174 source $WORKSPACE/venv-tox/bin/activate
175 pip install --upgrade pip
176 pip install --upgrade tox argparse
178 cd $WORKSPACE/repo/{toxdir}
182 - email-notification:
183 email-recipients: '{email-recipients}'
184 email-prefix: '[{project}]'
185 - opendaylight-infra-shiplogs:
186 maven-version: 'mvn33'
189 name: '{project-name}-verify-tox-{stream}'
191 # Job template for verify jobs executing tox envlist
193 # The purpose of this job template is to run tox for projects using this
196 # Required Variables:
197 # stream: release stream (eg. stable-lithium or beryllium)
198 # branch: git branch (eg. stable/lithium or master)
199 # toxdir: directory containing the project's tox.ini relative to
200 # the workspace. Empty works if tox.ini is at project root.
202 <<: *tox_builder_verify
204 # Specification for projects outside release cycle, to avoid referring a stream.
205 # This is useful mailny for integration-test-jobs, which defines streams for Integration/Distribution,
206 # but the tox job is related to Integration/Test only.
209 name: '{project-name}-verify-tox-master'
211 # Job template for verify jobs executing tox envlist
213 # The purpose of this job template is to run tox for projects using this
216 # Required Variables:
217 # toxdir: directory containing the project's tox.ini relative to
218 # the workspace. Empty works if tox.ini is at project root.
222 <<: *tox_builder_verify
224 # Python (pep8) specific, project should migrate to {project-name}-verify-tox-{stream}
227 name: '{project-name}-verify-python-{stream}'
229 # Job template for python verify jobs
231 # The purpose of this job template is to run tox for projects using this
234 # Required Variables:
235 # stream: release stream (eg. stable-lithium or beryllium)
236 # branch: git branch (eg. stable/lithium or master)
237 # toxdir: directory containing the project's tox.ini relative to
238 # the workspace. Empty works if tox.ini is at project root.
240 <<: *tox_builder_verify
243 name: '{project-name}-merge-rtd-{stream}'
244 # Template for ReadTheDocs triggering
246 project-type: freestyle
251 - opendaylight-infra-parameters:
252 os-cloud: '{os-cloud}'
255 refspec: 'refs/heads/{branch}'
256 artifacts: '{archive-artifacts}'
259 - opendaylight-infra-wrappers:
260 build-timeout: '{build-timeout}'
263 - gerrit-trigger-patch-merged:
264 server-name: '{server-name}'
270 curl -X POST https://readthedocs.org/build/{rtdproject}
273 - email-notification:
274 email-recipients: '{email-recipients}'
275 email-prefix: '[{project}]'
276 - opendaylight-infra-shiplogs:
277 maven-version: 'mvn33'
282 name: '{project-name}-verify-node-{stream}'
284 # Job template for python verify jobs
286 # The purpose of this job template is to run node tests for projects using
287 # this template. It uses python virtualenv to install nodeenv and create a
288 # virtualenv for nodejs.
290 # Required Variables:
291 # stream: release stream (eg. boron or carbon)
292 # branch: git branch (eg. stable/boron or master)
293 # nodedir: directory of nodejs project to run node test against
294 # nodever: version of node to install in virtualenv
296 project-type: freestyle
301 - opendaylight-infra-properties:
302 build-days-to-keep: 7
305 - opendaylight-infra-parameters:
306 os-cloud: '{os-cloud}'
309 refspec: 'refs/heads/{branch}'
310 artifacts: '{archive-artifacts}'
314 credentials-id: 'opendaylight-jenkins-ssh'
317 refspec: '$GERRIT_REFSPEC'
319 - 'origin/$GERRIT_BRANCH'
321 choosing-strategy: 'gerrit'
324 - opendaylight-infra-wrappers:
325 build-timeout: '{build-timeout}'
328 - gerrit-trigger-patch-submitted:
329 server: '{server-name}'
332 files: '{nodedir}/**'
338 virtualenv $WORKSPACE/venv-python
339 source $WORKSPACE/venv-python/bin/activate
340 pip install --upgrade pip
341 pip install --upgrade tox argparse nodeenv
345 nodeenv --node={nodever} --prebuilt $WORKSPACE/venv-node
346 source $WORKSPACE/venv-node/bin/activate
347 cd $WORKSPACE/repo/{nodedir}
352 - email-notification:
353 email-recipients: '{email-recipients}'
354 email-prefix: '[{project}]'
355 - opendaylight-infra-shiplogs:
356 maven-version: 'mvn33'