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'
163 - opendaylight-infra-wrappers:
164 build-timeout: '{build-timeout}'
167 - gerrit-trigger-patch-submitted:
168 server: '{server-name}'
175 virtualenv $WORKSPACE/venv-tox
176 source $WORKSPACE/venv-tox/bin/activate
177 pip install --upgrade pip
178 pip install --upgrade tox argparse
180 cd $WORKSPACE/repo/{toxdir}
184 - email-notification:
185 email-recipients: '{email-recipients}'
186 email-prefix: '[{project}]'
187 - opendaylight-infra-shiplogs:
188 maven-version: 'mvn33'
191 name: '{project-name}-verify-tox-{stream}'
193 # Job template for verify jobs executing tox envlist
195 # The purpose of this job template is to run tox for projects using this
198 # Required Variables:
199 # stream: release stream (eg. stable-lithium or beryllium)
200 # branch: git branch (eg. stable/lithium or master)
201 # toxdir: directory containing the project's tox.ini relative to
202 # the workspace. Empty works if tox.ini is at project root.
204 build-node: centos7-java-builder-2c-4g
206 <<: *tox_builder_verify
208 # Specification for projects outside release cycle, to avoid referring a stream.
209 # This is useful mailny for integration-test-jobs, which defines streams for Integration/Distribution,
210 # but the tox job is related to Integration/Test only.
213 name: '{project-name}-verify-tox-master'
215 # Job template for verify jobs executing tox envlist
217 # The purpose of this job template is to run tox for projects using this
220 # Required Variables:
221 # toxdir: directory containing the project's tox.ini relative to
222 # the workspace. Empty works if tox.ini is at project root.
224 build-node: centos7-java-builder-2c-4g
227 <<: *tox_builder_verify
229 # Python (pep8) specific, project should migrate to {project-name}-verify-tox-{stream}
232 name: '{project-name}-verify-python-{stream}'
234 # Job template for python verify jobs
236 # The purpose of this job template is to run tox for projects using this
239 # Required Variables:
240 # stream: release stream (eg. stable-lithium or beryllium)
241 # branch: git branch (eg. stable/lithium or master)
242 # toxdir: directory containing the project's tox.ini relative to
243 # the workspace. Empty works if tox.ini is at project root.
245 build-node: centos7-java-builder-2c-4g
247 <<: *tox_builder_verify
250 name: '{project-name}-merge-rtd-{stream}'
251 # Template for ReadTheDocs triggering
253 project-type: freestyle
258 - opendaylight-infra-parameters:
259 os-cloud: '{os-cloud}'
262 refspec: 'refs/heads/{branch}'
263 artifacts: '{archive-artifacts}'
266 - opendaylight-infra-wrappers:
267 build-timeout: '{build-timeout}'
270 - gerrit-trigger-patch-merged:
271 server-name: '{server-name}'
277 curl -X POST https://readthedocs.org/build/{rtdproject}
280 - email-notification:
281 email-recipients: '{email-recipients}'
282 email-prefix: '[{project}]'
283 - opendaylight-infra-shiplogs:
284 maven-version: 'mvn33'
289 name: '{project-name}-verify-node-{stream}'
291 # Job template for python verify jobs
293 # The purpose of this job template is to run node tests for projects using
294 # this template. It uses python virtualenv to install nodeenv and create a
295 # virtualenv for nodejs.
297 # Required Variables:
298 # stream: release stream (eg. boron or carbon)
299 # branch: git branch (eg. stable/boron or master)
300 # nodedir: directory of nodejs project to run node test against
301 # nodever: version of node to install in virtualenv
303 project-type: freestyle
308 - opendaylight-infra-properties:
309 build-days-to-keep: 7
312 - opendaylight-infra-parameters:
313 os-cloud: '{os-cloud}'
316 refspec: 'refs/heads/{branch}'
317 artifacts: '{archive-artifacts}'
321 credentials-id: 'opendaylight-jenkins-ssh'
324 refspec: '$GERRIT_REFSPEC'
326 - 'origin/$GERRIT_BRANCH'
328 choosing-strategy: 'gerrit'
331 - opendaylight-infra-wrappers:
332 build-timeout: '{build-timeout}'
335 - gerrit-trigger-patch-submitted:
336 server: '{server-name}'
339 files: '{nodedir}/**'
345 virtualenv $WORKSPACE/venv-python
346 source $WORKSPACE/venv-python/bin/activate
347 pip install --upgrade pip
348 pip install --upgrade tox argparse nodeenv
352 nodeenv --node={nodever} --prebuilt $WORKSPACE/venv-node
353 source $WORKSPACE/venv-node/bin/activate
354 cd $WORKSPACE/repo/{nodedir}
359 - email-notification:
360 email-recipients: '{email-recipients}'
361 email-prefix: '[{project}]'
362 - opendaylight-infra-shiplogs:
363 maven-version: 'mvn33'