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: '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: 'global-settings'
61 global-settings-type: cfp
62 - releng-stage-release
66 email-recipients: '{email-recipients}'
67 email-prefix: '[releng]'
72 name: '{project-name}-publish-p2repo'
74 # Job template for publishing a p2 repo given a URL to a zipped p2repo.
76 project-type: freestyle
81 - opendaylight-infra-parameters:
82 os-cloud: '{os-cloud}'
85 refspec: 'refs/heads/{branch}'
86 artifacts: '{archive-artifacts}'
90 - opendaylight-infra-wrappers:
91 build-timeout: '{build-timeout}'
94 - wipe-org-opendaylight-repo
95 - jacoco-nojava-workaround
96 - releng-fetch-p2zip-if-necessary:
97 maven-version: 'mvn33'
98 settings: '{mvn-settings}'
99 global-settings: 'global-settings'
100 - releng-generate-p2pom
102 maven-version: 'mvn33'
104 goals: 'clean deploy -V -B -Dmaven.repo.local=/tmp/r'
105 settings: '{mvn-settings}'
107 global-settings: 'global-settings'
108 global-settings-type: cfp
109 - releng-update-p2composite-metadata:
110 maven-version: 'mvn33'
111 settings: '{mvn-settings}'
112 global-settings: 'global-settings'
115 - email-notification:
116 email-recipients: '{email-recipients}'
117 email-prefix: '[releng]'
120 # Generic tox-based verify action
122 - tox_builder_verify: &tox_builder_verify
123 name: tox_builder_verify
125 # Required Variables:
126 # branch: git branch (eg. stable/boron or master)
127 # toxdir: directory containing the project's tox.ini relative to
128 # the workspace. Empty works if tox.ini is at project root.
129 # Note that stream value is not needed.
131 project-type: freestyle
136 - opendaylight-infra-properties:
137 build-days-to-keep: 7
140 - opendaylight-infra-parameters:
141 os-cloud: '{os-cloud}'
144 refspec: 'refs/heads/{branch}'
145 artifacts: '{archive-artifacts}'
149 credentials-id: 'opendaylight-jenkins-ssh'
152 refspec: '$GERRIT_REFSPEC'
154 - 'origin/$GERRIT_BRANCH'
156 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 PYTHON="$WORKSPACE/venv-tox/bin/python"
176 $PYTHON -m pip install --upgrade pip
177 $PYTHON -m pip install --upgrade tox argparse
178 $PYTHON -m pip freeze
179 cd $WORKSPACE/repo/{toxdir}
183 - email-notification:
184 email-recipients: '{email-recipients}'
185 email-prefix: '[{project}]'
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 build-node: centos7-java-builder-2c-4g
204 <<: *tox_builder_verify
206 # Specification for projects outside release cycle, to avoid referring a stream.
207 # This is useful mailny for integration-test-jobs, which defines streams for Integration/Distribution,
208 # but the tox job is related to Integration/Test only.
211 name: '{project-name}-verify-tox-master'
213 # Job template for verify jobs executing tox envlist
215 # The purpose of this job template is to run tox for projects using this
218 # Required Variables:
219 # toxdir: directory containing the project's tox.ini relative to
220 # the workspace. Empty works if tox.ini is at project root.
222 build-node: centos7-java-builder-2c-4g
225 <<: *tox_builder_verify
227 # Python (pep8) specific, project should migrate to {project-name}-verify-tox-{stream}
230 name: '{project-name}-verify-python-{stream}'
232 # Job template for python verify jobs
234 # The purpose of this job template is to run tox for projects using this
237 # Required Variables:
238 # stream: release stream (eg. stable-lithium or beryllium)
239 # branch: git branch (eg. stable/lithium or master)
240 # toxdir: directory containing the project's tox.ini relative to
241 # the workspace. Empty works if tox.ini is at project root.
243 build-node: centos7-java-builder-2c-4g
245 <<: *tox_builder_verify
248 name: '{project-name}-merge-rtd-{stream}'
249 # Template for ReadTheDocs triggering
251 project-type: freestyle
256 - opendaylight-infra-parameters:
257 os-cloud: '{os-cloud}'
260 refspec: 'refs/heads/{branch}'
261 artifacts: '{archive-artifacts}'
264 - opendaylight-infra-wrappers:
265 build-timeout: '{build-timeout}'
268 - gerrit-trigger-patch-merged:
269 server-name: '{server-name}'
275 curl -X POST https://readthedocs.org/build/{rtdproject}
278 - email-notification:
279 email-recipients: '{email-recipients}'
280 email-prefix: '[{project}]'
286 name: '{project-name}-verify-node-{stream}'
288 # Job template for python verify jobs
290 # The purpose of this job template is to run node tests for projects using
291 # this template. It uses python virtualenv to install nodeenv and create a
292 # virtualenv for nodejs.
294 # Required Variables:
295 # stream: release stream (eg. boron or carbon)
296 # branch: git branch (eg. stable/boron or master)
297 # nodedir: directory of nodejs project to run node test against
298 # nodever: version of node to install in virtualenv
300 project-type: freestyle
305 - opendaylight-infra-properties:
306 build-days-to-keep: 7
309 - opendaylight-infra-parameters:
310 os-cloud: '{os-cloud}'
313 refspec: 'refs/heads/{branch}'
314 artifacts: '{archive-artifacts}'
318 credentials-id: 'opendaylight-jenkins-ssh'
321 refspec: '$GERRIT_REFSPEC'
323 - 'origin/$GERRIT_BRANCH'
325 choosing-strategy: 'gerrit'
328 - opendaylight-infra-wrappers:
329 build-timeout: '{build-timeout}'
332 - gerrit-trigger-patch-submitted:
333 server: '{server-name}'
336 files: '{nodedir}/**'
342 virtualenv $WORKSPACE/venv-python
343 source $WORKSPACE/venv-python/bin/activate
344 PYTHON="$WORKSPACE/venv-python/bin/python"
345 $PYTHON -m pip install --upgrade pip
346 $PYTHON -m pip install --upgrade tox argparse nodeenv
347 $PYTHON -m pip freeze
350 nodeenv --node={nodever} --prebuilt $WORKSPACE/venv-node
351 source $WORKSPACE/venv-node/bin/activate
352 cd $WORKSPACE/repo/{nodedir}
357 - email-notification:
358 email-recipients: '{email-recipients}'
359 email-prefix: '[{project}]'