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]'
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: 'odl-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: 'odl-global-settings'
108 global-settings-type: cfp
109 - releng-update-p2composite-metadata:
110 maven-version: 'mvn33'
111 settings: '{mvn-settings}'
112 global-settings: 'odl-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 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}]'
188 name: '{project-name}-verify-tox-{stream}'
190 # Job template for verify jobs executing tox envlist
192 # The purpose of this job template is to run tox for projects using this
195 # Required Variables:
196 # stream: release stream (eg. stable-lithium or beryllium)
197 # branch: git branch (eg. stable/lithium or master)
198 # toxdir: directory containing the project's tox.ini relative to
199 # the workspace. Empty works if tox.ini is at project root.
201 build-node: centos7-java-builder-2c-4g
203 <<: *tox_builder_verify
205 # Specification for projects outside release cycle, to avoid referring a stream.
206 # This is useful mailny for integration-test-jobs, which defines streams for Integration/Distribution,
207 # but the tox job is related to Integration/Test only.
210 name: '{project-name}-verify-tox-master'
212 # Job template for verify jobs executing tox envlist
214 # The purpose of this job template is to run tox for projects using this
217 # Required Variables:
218 # toxdir: directory containing the project's tox.ini relative to
219 # the workspace. Empty works if tox.ini is at project root.
221 build-node: centos7-java-builder-2c-4g
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 build-node: centos7-java-builder-2c-4g
244 <<: *tox_builder_verify
247 name: '{project-name}-merge-rtd-{stream}'
248 # Template for ReadTheDocs triggering
250 project-type: freestyle
255 - opendaylight-infra-parameters:
256 os-cloud: '{os-cloud}'
259 refspec: 'refs/heads/{branch}'
260 artifacts: '{archive-artifacts}'
263 - opendaylight-infra-wrappers:
264 build-timeout: '{build-timeout}'
267 - gerrit-trigger-patch-merged:
268 server-name: '{server-name}'
274 curl -X POST https://readthedocs.org/build/{rtdproject}
277 - email-notification:
278 email-recipients: '{email-recipients}'
279 email-prefix: '[{project}]'
285 name: '{project-name}-verify-node-{stream}'
287 # Job template for python verify jobs
289 # The purpose of this job template is to run node tests for projects using
290 # this template. It uses python virtualenv to install nodeenv and create a
291 # virtualenv for nodejs.
293 # Required Variables:
294 # stream: release stream (eg. boron or carbon)
295 # branch: git branch (eg. stable/boron or master)
296 # nodedir: directory of nodejs project to run node test against
297 # nodever: version of node to install in virtualenv
299 project-type: freestyle
304 - opendaylight-infra-properties:
305 build-days-to-keep: 7
308 - opendaylight-infra-parameters:
309 os-cloud: '{os-cloud}'
312 refspec: 'refs/heads/{branch}'
313 artifacts: '{archive-artifacts}'
317 credentials-id: 'opendaylight-jenkins-ssh'
320 refspec: '$GERRIT_REFSPEC'
322 - 'origin/$GERRIT_BRANCH'
324 choosing-strategy: 'gerrit'
327 - opendaylight-infra-wrappers:
328 build-timeout: '{build-timeout}'
331 - gerrit-trigger-patch-submitted:
332 server: '{server-name}'
335 files: '{nodedir}/**'
341 virtualenv $WORKSPACE/venv-python
342 source $WORKSPACE/venv-python/bin/activate
343 pip install --upgrade pip
344 pip install --upgrade tox argparse nodeenv
348 nodeenv --node={nodever} --prebuilt $WORKSPACE/venv-node
349 source $WORKSPACE/venv-node/bin/activate
350 cd $WORKSPACE/repo/{nodedir}
355 - email-notification:
356 email-recipients: '{email-recipients}'
357 email-prefix: '[{project}]'