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 # stream: release stream (eg. boron or carbon)
127 # branch: git branch (eg. stable/boron or master)
128 # toxdir: directory containing the project's tox.ini relative to
129 # the workspace. Empty works if tox.ini is at project root.
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 # Python (pep8) specific, project should migrate to {project-name}-verify-tox-{stream}
204 name: '{project-name}-verify-python-{stream}'
206 # Job template for python verify jobs
208 # The purpose of this job template is to run tox for projects using this
211 # Required Variables:
212 # stream: release stream (eg. stable-lithium or beryllium)
213 # branch: git branch (eg. stable/lithium or master)
214 # toxdir: directory containing the project's tox.ini relative to
215 # the workspace. Empty works if tox.ini is at project root.
217 <<: *tox_builder_verify
220 name: '{project-name}-merge-rtd-{stream}'
221 # Template for ReadTheDocs triggering
223 project-type: freestyle
228 - opendaylight-infra-parameters:
231 refspec: 'refs/heads/{branch}'
232 artifacts: '{archive-artifacts}'
235 - opendaylight-infra-wrappers:
236 build-timeout: '{build-timeout}'
239 - gerrit-trigger-patch-merged:
240 server-name: '{server-name}'
246 curl -X POST https://readthedocs.org/build/{rtdproject}
249 - email-notification:
250 email-recipients: '{email-recipients}'
251 email-prefix: '[{project}]'
252 - opendaylight-infra-shiplogs:
253 maven-version: 'mvn33'
258 name: '{project-name}-verify-node-{stream}'
260 # Job template for python verify jobs
262 # The purpose of this job template is to run node tests for projects using
263 # this template. It uses python virtualenv to install nodeenv and create a
264 # virtualenv for nodejs.
266 # Required Variables:
267 # stream: release stream (eg. boron or carbon)
268 # branch: git branch (eg. stable/boron or master)
269 # nodedir: directory of nodejs project to run node test against
270 # nodever: version of node to install in virtualenv
272 project-type: freestyle
277 - opendaylight-infra-properties:
278 build-days-to-keep: 7
281 - opendaylight-infra-parameters:
284 refspec: 'refs/heads/{branch}'
285 artifacts: '{archive-artifacts}'
289 credentials-id: 'opendaylight-jenkins-ssh'
292 refspec: '$GERRIT_REFSPEC'
294 - 'origin/$GERRIT_BRANCH'
296 choosing-strategy: 'gerrit'
299 - opendaylight-infra-wrappers:
300 build-timeout: '{build-timeout}'
303 - gerrit-trigger-patch-submitted:
304 server: '{server-name}'
307 files: '{nodedir}/**'
313 virtualenv $WORKSPACE/venv-python
314 source $WORKSPACE/venv-python/bin/activate
315 pip install --upgrade pip
316 pip install --upgrade tox argparse nodeenv
320 nodeenv --node={nodever} --prebuilt $WORKSPACE/venv-node
321 source $WORKSPACE/venv-node/bin/activate
322 cd $WORKSPACE/repo/{nodedir}
327 - email-notification:
328 email-recipients: '{email-recipients}'
329 email-prefix: '[{project}]'
330 - opendaylight-infra-shiplogs:
331 maven-version: 'mvn33'