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:
20 refspec: 'refs/heads/{branch}'
21 artifacts: '{archive-artifacts}'
24 stage-id: '{stage-id}'
28 credentials-id: 'opendaylight-jenkins-ssh'
37 - opendaylight-infra-wrappers:
38 build-timeout: '{build-timeout}'
41 - wipe-org-opendaylight-repo
42 - jacoco-nojava-workaround
43 - provide-maven-settings:
44 global-settings-file: 'odl-global-settings'
45 settings-file: 'autorelease-settings'
47 maven-version: 'mvn33'
51 -Dmaven.repo.local=/tmp/r
52 -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r
54 -DaltDeploymentRepository=staging::default::file:hide/from/pom/files/stage
56 - '-Xmx1024m -XX:MaxPermSize=256m'
57 settings: 'autorelease-settings'
59 global-settings: 'odl-global-settings'
60 global-settings-type: cfp
61 - releng-stage-release
65 email-recipients: '{email-recipients}'
66 email-prefix: '[releng]'
67 - opendaylight-infra-shiplogs:
68 maven-version: 'mvn33'
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:
84 refspec: 'refs/heads/{branch}'
85 artifacts: '{archive-artifacts}'
89 - opendaylight-infra-wrappers:
90 build-timeout: '{build-timeout}'
93 - wipe-org-opendaylight-repo
94 - jacoco-nojava-workaround
95 - releng-fetch-p2zip-if-necessary:
96 maven-version: 'mvn33'
97 settings: '{mvn-settings}'
98 global-settings: 'odl-global-settings'
99 - releng-generate-p2pom
101 maven-version: 'mvn33'
103 goals: 'clean deploy -V -B -Dmaven.repo.local=/tmp/r'
104 settings: '{mvn-settings}'
106 global-settings: 'odl-global-settings'
107 global-settings-type: cfp
108 - releng-update-p2composite-metadata:
109 maven-version: 'mvn33'
110 settings: '{mvn-settings}'
111 global-settings: 'odl-global-settings'
114 - email-notification:
115 email-recipients: '{email-recipients}'
116 email-prefix: '[releng]'
117 - opendaylight-infra-shiplogs:
118 maven-version: 'mvn33'
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:
143 refspec: 'refs/heads/{branch}'
144 artifacts: '{archive-artifacts}'
148 credentials-id: 'opendaylight-jenkins-ssh'
151 refspec: '$GERRIT_REFSPEC'
153 - 'origin/$GERRIT_BRANCH'
155 choosing-strategy: 'gerrit'
158 - opendaylight-infra-wrappers:
159 build-timeout: '{build-timeout}'
162 - gerrit-trigger-patch-submitted:
163 server: '{server-name}'
170 virtualenv $WORKSPACE/venv-tox
171 source $WORKSPACE/venv-tox/bin/activate
172 pip install --upgrade pip
173 pip install --upgrade tox argparse
175 cd $WORKSPACE/repo/{toxdir}
179 - email-notification:
180 email-recipients: '{email-recipients}'
181 email-prefix: '[{project}]'
182 - opendaylight-infra-shiplogs:
183 maven-version: 'mvn33'
186 name: '{project-name}-verify-tox-{stream}'
188 # Job template for verify jobs executing tox envlist
190 # The purpose of this job template is to run tox for projects using this
193 # Required Variables:
194 # stream: release stream (eg. stable-lithium or beryllium)
195 # branch: git branch (eg. stable/lithium or master)
196 # toxdir: directory containing the project's tox.ini relative to
197 # the workspace. Empty works if tox.ini is at project root.
199 <<: *tox_builder_verify
201 # Specification for projects outside release cycle, to avoid referring a stream.
202 # This is useful mailny for integration-test-jobs, which defines streams for Integration/Distribution,
203 # but the tox job is related to Integration/Test only.
206 name: '{project-name}-verify-tox-master'
208 # Job template for verify jobs executing tox envlist
210 # The purpose of this job template is to run tox for projects using this
213 # Required Variables:
214 # toxdir: directory containing the project's tox.ini relative to
215 # the workspace. Empty works if tox.ini is at project root.
219 <<: *tox_builder_verify
221 # Python (pep8) specific, project should migrate to {project-name}-verify-tox-{stream}
224 name: '{project-name}-verify-python-{stream}'
226 # Job template for python verify jobs
228 # The purpose of this job template is to run tox for projects using this
231 # Required Variables:
232 # stream: release stream (eg. stable-lithium or beryllium)
233 # branch: git branch (eg. stable/lithium or master)
234 # toxdir: directory containing the project's tox.ini relative to
235 # the workspace. Empty works if tox.ini is at project root.
237 <<: *tox_builder_verify
240 name: '{project-name}-merge-rtd-{stream}'
241 # Template for ReadTheDocs triggering
243 project-type: freestyle
248 - opendaylight-infra-parameters:
251 refspec: 'refs/heads/{branch}'
252 artifacts: '{archive-artifacts}'
255 - opendaylight-infra-wrappers:
256 build-timeout: '{build-timeout}'
259 - gerrit-trigger-patch-merged:
260 server-name: '{server-name}'
266 curl -X POST https://readthedocs.org/build/{rtdproject}
269 - email-notification:
270 email-recipients: '{email-recipients}'
271 email-prefix: '[{project}]'
272 - opendaylight-infra-shiplogs:
273 maven-version: 'mvn33'
278 name: '{project-name}-verify-node-{stream}'
280 # Job template for python verify jobs
282 # The purpose of this job template is to run node tests for projects using
283 # this template. It uses python virtualenv to install nodeenv and create a
284 # virtualenv for nodejs.
286 # Required Variables:
287 # stream: release stream (eg. boron or carbon)
288 # branch: git branch (eg. stable/boron or master)
289 # nodedir: directory of nodejs project to run node test against
290 # nodever: version of node to install in virtualenv
292 project-type: freestyle
297 - opendaylight-infra-properties:
298 build-days-to-keep: 7
301 - opendaylight-infra-parameters:
304 refspec: 'refs/heads/{branch}'
305 artifacts: '{archive-artifacts}'
309 credentials-id: 'opendaylight-jenkins-ssh'
312 refspec: '$GERRIT_REFSPEC'
314 - 'origin/$GERRIT_BRANCH'
316 choosing-strategy: 'gerrit'
319 - opendaylight-infra-wrappers:
320 build-timeout: '{build-timeout}'
323 - gerrit-trigger-patch-submitted:
324 server: '{server-name}'
327 files: '{nodedir}/**'
333 virtualenv $WORKSPACE/venv-python
334 source $WORKSPACE/venv-python/bin/activate
335 pip install --upgrade pip
336 pip install --upgrade tox argparse nodeenv
340 nodeenv --node={nodever} --prebuilt $WORKSPACE/venv-node
341 source $WORKSPACE/venv-node/bin/activate
342 cd $WORKSPACE/repo/{nodedir}
347 - email-notification:
348 email-recipients: '{email-recipients}'
349 email-prefix: '[{project}]'
350 - opendaylight-infra-shiplogs:
351 maven-version: 'mvn33'