2 name: '{project-name}-release-java'
4 # Job template for producing a release candidate by creating a staging repo
15 - opendaylight-infra-parameters:
18 refspec: 'refs/heads/{branch}'
19 artifacts: '{archive-artifacts}'
22 stage-id: '{stage-id}'
26 credentials-id: 'opendaylight-jenkins-ssh'
35 - opendaylight-infra-wrappers:
36 build-timeout: '{build-timeout}'
39 - wipe-org-opendaylight-repo
40 - jacoco-nojava-workaround
41 - provide-maven-settings:
42 global-settings-file: 'odl-global-settings'
43 settings-file: 'autorelease-settings'
48 goals: 'clean deploy -V -B -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -DaltDeploymentRepository=staging::default::file:hide/from/pom/files/stage'
49 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
50 settings: 'autorelease-settings'
52 global-settings: 'odl-global-settings'
53 global-settings-type: cfp
54 post-step-run-condition: UNSTABLE
57 - releng-stage-release
61 email-prefix: '[releng]'
62 - opendaylight-infra-shiplogs:
63 maven-version: '{mvn33}'
67 name: '{project-name}-publish-p2repo'
69 # Job template for publishing a p2 repo given a URL to a zipped p2repo.
76 - opendaylight-infra-parameters:
79 refspec: 'refs/heads/{branch}'
80 artifacts: '{archive-artifacts}'
84 - opendaylight-infra-wrappers:
85 build-timeout: '{build-timeout}'
88 - wipe-org-opendaylight-repo
89 - jacoco-nojava-workaround
90 - releng-fetch-p2zip-if-necessary:
91 maven-version: '{mvn33}'
92 settings: '{mvn-settings}'
93 global-settings: 'odl-global-settings'
94 - releng-generate-p2pom
99 goals: 'clean deploy -V -B -Dmaven.repo.local=/tmp/r'
100 settings: '{mvn-settings}'
101 global-settings: 'odl-global-settings'
102 post-step-run-condition: UNSTABLE
105 - releng-update-p2composite-metadata:
106 maven-version: '{mvn33}'
107 settings: '{mvn-settings}'
108 global-settings: 'odl-global-settings'
111 - email-notification:
112 email-prefix: '[releng]'
113 - opendaylight-infra-shiplogs:
114 maven-version: '{mvn33}'
119 name: '{project-name}-verify-python-{stream}'
121 # Job template for python verify jobs
123 # The purpose of this job template is to run tox for projects using this
126 # Required Variables:
127 # stream: release stream (eg. stable-lithium or beryllium)
128 # branch: git branch (eg. stable/lithium 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.
132 project-type: freestyle
139 artifactDaysToKeep: '-1'
140 artifactNumToKeep: '-1'
143 - opendaylight-infra-parameters:
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'
161 - opendaylight-infra-wrappers:
162 build-timeout: '{build-timeout}'
166 server-name: 'OpenDaylight'
168 - patchset-created-event:
169 exclude-drafts: 'true'
170 exclude-trivial-rebase: 'false'
171 exclude-no-code-change: 'true'
172 - draft-published-event
173 - comment-added-contains-event:
174 comment-contains-value: 'recheck'
175 - comment-added-contains-event:
176 comment-contains-value: 'reverify'
178 - project-compare-type: 'ANT'
179 project-pattern: '{project}'
181 - branch-compare-type: 'ANT'
182 branch-pattern: '**/{branch}'
185 pattern: '{toxdir}/**'
189 virtualenv $WORKSPACE/venv-tox
190 source $WORKSPACE/venv-tox/bin/activate
191 pip install --upgrade pip
192 pip install --upgrade tox argparse
194 cd $WORKSPACE/repo/{toxdir}
198 - email-notification:
199 email-prefix: '[{project}]'
200 - opendaylight-infra-shiplogs:
201 maven-version: '{mvn33}'
204 name: '{project-name}-merge-rtd-{stream}'
205 # Template for ReadTheDocs triggering
207 project-type: freestyle
212 - opendaylight-infra-parameters:
215 refspec: 'refs/heads/{branch}'
216 artifacts: '{archive-artifacts}'
219 - opendaylight-infra-wrappers:
220 build-timeout: '{build-timeout}'
223 - gerrit-trigger-patch-merged:
229 curl -X POST https://readthedocs.org/build/{rtdproject}
232 - email-notification:
233 email-prefix: '[{project}]'
234 - opendaylight-infra-shiplogs:
235 maven-version: '{mvn33}'
240 name: '{project-name}-verify-node-{stream}'
242 # Job template for python verify jobs
244 # The purpose of this job template is to run node tests for projects using
245 # this template. It uses python virtualenv to install nodeenv and create a
246 # virtualenv for nodejs.
248 # Required Variables:
249 # stream: release stream (eg. stable-lithium or beryllium)
250 # branch: git branch (eg. stable/lithium or master)
251 # nodedir: directory of nodejs project to run node test against
252 # nodever: version of node to install in virtualenv
254 project-type: freestyle
261 artifactDaysToKeep: '-1'
262 artifactNumToKeep: '-1'
265 - opendaylight-infra-parameters:
268 refspec: 'refs/heads/{branch}'
269 artifacts: '{archive-artifacts}'
273 credentials-id: 'opendaylight-jenkins-ssh'
276 refspec: '$GERRIT_REFSPEC'
278 - 'origin/$GERRIT_BRANCH'
280 choosing-strategy: 'gerrit'
283 - opendaylight-infra-wrappers:
284 build-timeout: '{build-timeout}'
288 server-name: 'OpenDaylight'
290 - patchset-created-event:
291 exclude-drafts: 'true'
292 exclude-trivial-rebase: 'false'
293 exclude-no-code-change: 'true'
294 - draft-published-event
295 - comment-added-contains-event:
296 comment-contains-value: 'recheck'
297 - comment-added-contains-event:
298 comment-contains-value: 'reverify'
300 - project-compare-type: 'ANT'
301 project-pattern: '{project}'
303 - branch-compare-type: 'ANT'
304 branch-pattern: '**/{branch}'
307 pattern: '{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-prefix: '[{project}]'
329 - opendaylight-infra-shiplogs:
330 maven-version: '{mvn33}'