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 <<: *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.
224 <<: *tox_builder_verify
226 # Python (pep8) specific, project should migrate to {project-name}-verify-tox-{stream}
229 name: '{project-name}-verify-python-{stream}'
231 # Job template for python verify jobs
233 # The purpose of this job template is to run tox for projects using this
236 # Required Variables:
237 # stream: release stream (eg. stable-lithium or beryllium)
238 # branch: git branch (eg. stable/lithium or master)
239 # toxdir: directory containing the project's tox.ini relative to
240 # the workspace. Empty works if tox.ini is at project root.
242 <<: *tox_builder_verify
245 name: '{project-name}-merge-rtd-{stream}'
246 # Template for ReadTheDocs triggering
248 project-type: freestyle
253 - opendaylight-infra-parameters:
254 os-cloud: '{os-cloud}'
257 refspec: 'refs/heads/{branch}'
258 artifacts: '{archive-artifacts}'
261 - opendaylight-infra-wrappers:
262 build-timeout: '{build-timeout}'
265 - gerrit-trigger-patch-merged:
266 server-name: '{server-name}'
272 curl -X POST https://readthedocs.org/build/{rtdproject}
275 - email-notification:
276 email-recipients: '{email-recipients}'
277 email-prefix: '[{project}]'
278 - opendaylight-infra-shiplogs:
279 maven-version: 'mvn33'
284 name: '{project-name}-verify-node-{stream}'
286 # Job template for python verify jobs
288 # The purpose of this job template is to run node tests for projects using
289 # this template. It uses python virtualenv to install nodeenv and create a
290 # virtualenv for nodejs.
292 # Required Variables:
293 # stream: release stream (eg. boron or carbon)
294 # branch: git branch (eg. stable/boron or master)
295 # nodedir: directory of nodejs project to run node test against
296 # nodever: version of node to install in virtualenv
298 project-type: freestyle
303 - opendaylight-infra-properties:
304 build-days-to-keep: 7
307 - opendaylight-infra-parameters:
308 os-cloud: '{os-cloud}'
311 refspec: 'refs/heads/{branch}'
312 artifacts: '{archive-artifacts}'
316 credentials-id: 'opendaylight-jenkins-ssh'
319 refspec: '$GERRIT_REFSPEC'
321 - 'origin/$GERRIT_BRANCH'
323 choosing-strategy: 'gerrit'
326 - opendaylight-infra-wrappers:
327 build-timeout: '{build-timeout}'
330 - gerrit-trigger-patch-submitted:
331 server: '{server-name}'
334 files: '{nodedir}/**'
340 virtualenv $WORKSPACE/venv-python
341 source $WORKSPACE/venv-python/bin/activate
342 pip install --upgrade pip
343 pip install --upgrade tox argparse nodeenv
347 nodeenv --node={nodever} --prebuilt $WORKSPACE/venv-node
348 source $WORKSPACE/venv-node/bin/activate
349 cd $WORKSPACE/repo/{nodedir}
354 - email-notification:
355 email-recipients: '{email-recipients}'
356 email-prefix: '[{project}]'
357 - opendaylight-infra-shiplogs:
358 maven-version: 'mvn33'