2 name: '{project-name}-release-java'
6 # Job template for producing a release candidate by creating a staging repo
16 - opendaylight-infra-parameters:
19 refspec: 'refs/heads/{branch}'
20 artifacts: '{archive-artifacts}'
23 stage-id: '{stage-id}'
27 credentials-id: 'opendaylight-jenkins-ssh'
36 - opendaylight-infra-wrappers:
37 build-timeout: '{build-timeout}'
40 - wipe-org-opendaylight-repo
41 - jacoco-nojava-workaround
42 - provide-maven-settings:
43 global-settings-file: 'odl-global-settings'
44 settings-file: 'autorelease-settings'
49 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'
50 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
51 settings: 'autorelease-settings'
52 global-settings: 'odl-global-settings'
53 post-step-run-condition: UNSTABLE
56 - releng-stage-release
60 email-prefix: '[releng]'
62 maven-version: '{mvn33}'
66 name: '{project-name}-publish-p2repo'
70 # 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: '{project-settings}'
93 global-settings: 'odl-global-settings'
94 - releng-generate-p2pom
99 goals: 'clean deploy -V -B -Dmaven.repo.local=/tmp/r'
100 settings: '{project-settings}'
101 global-settings: 'odl-global-settings'
102 post-step-run-condition: UNSTABLE
105 - releng-update-p2composite-metadata:
106 maven-version: '{mvn33}'
107 settings: '{project-settings}'
108 global-settings: 'odl-global-settings'
111 - email-notification:
112 email-prefix: '[releng]'
114 maven-version: '{mvn33}'
119 name: '{project-name}-verify-python-{stream}'
123 # Job template for python verify jobs
125 # The purpose of this job template is to run tox for projects using this
128 # Required Variables:
129 # stream: release stream (eg. stable-lithium or beryllium)
130 # branch: git branch (eg. stable/lithium or master)
131 # toxdir: directory containing the project's tox.ini relative to
132 # the workspace. Empty works if tox.ini is at project root.
134 project-type: freestyle
140 artifactDaysToKeep: '-1'
141 artifactNumToKeep: '-1'
144 - opendaylight-infra-parameters:
147 refspec: 'refs/heads/{branch}'
148 artifacts: '{archive-artifacts}'
152 credentials-id: 'opendaylight-jenkins-ssh'
155 refspec: '$GERRIT_REFSPEC'
157 - 'origin/$GERRIT_BRANCH'
159 choosing-strategy: 'gerrit'
162 - opendaylight-infra-wrappers:
163 build-timeout: '{build-timeout}'
167 server-name: 'OpenDaylight'
169 - patchset-created-event:
170 exclude-drafts: 'true'
171 exclude-trivial-rebase: 'false'
172 exclude-no-code-change: 'true'
173 - draft-published-event
174 - comment-added-contains-event:
175 comment-contains-value: 'recheck'
176 - comment-added-contains-event:
177 comment-contains-value: 'reverify'
179 - project-compare-type: 'ANT'
180 project-pattern: '{project}'
182 - branch-compare-type: 'ANT'
183 branch-pattern: '**/{branch}'
186 pattern: '{toxdir}/**'
190 virtualenv $WORKSPACE/venv-tox
191 source $WORKSPACE/venv-tox/bin/activate
192 pip install --upgrade pip
193 pip install --upgrade tox argparse
195 cd $WORKSPACE/repo/{toxdir}
199 - email-notification:
200 email-prefix: '[{project}]'
202 maven-version: '{mvn33}'
205 name: '{project-name}-merge-rtd-{stream}'
209 # Template for ReadTheDocs triggering
211 project-type: freestyle
215 - opendaylight-infra-parameters:
218 refspec: 'refs/heads/{branch}'
219 artifacts: '{archive-artifacts}'
222 - opendaylight-infra-wrappers:
223 build-timeout: '{build-timeout}'
226 - gerrit-trigger-patch-merged:
232 curl -X POST https://readthedocs.org/build/{rtdproject}
235 - email-notification:
236 email-prefix: '[{project}]'
238 maven-version: '{mvn33}'
243 name: '{project-name}-verify-node-{stream}'
247 # Job template for python verify jobs
249 # The purpose of this job template is to run node tests for projects using
250 # this template. It uses python virtualenv to install nodeenv and create a
251 # virtualenv for nodejs.
253 # Required Variables:
254 # stream: release stream (eg. stable-lithium or beryllium)
255 # branch: git branch (eg. stable/lithium or master)
256 # nodedir: directory of nodejs project to run node test against
257 # nodever: version of node to install in virtualenv
259 project-type: freestyle
265 artifactDaysToKeep: '-1'
266 artifactNumToKeep: '-1'
269 - opendaylight-infra-parameters:
272 refspec: 'refs/heads/{branch}'
273 artifacts: '{archive-artifacts}'
277 credentials-id: 'opendaylight-jenkins-ssh'
280 refspec: '$GERRIT_REFSPEC'
282 - 'origin/$GERRIT_BRANCH'
284 choosing-strategy: 'gerrit'
287 - opendaylight-infra-wrappers:
288 build-timeout: '{build-timeout}'
292 server-name: 'OpenDaylight'
294 - patchset-created-event:
295 exclude-drafts: 'true'
296 exclude-trivial-rebase: 'false'
297 exclude-no-code-change: 'true'
298 - draft-published-event
299 - comment-added-contains-event:
300 comment-contains-value: 'recheck'
301 - comment-added-contains-event:
302 comment-contains-value: 'reverify'
304 - project-compare-type: 'ANT'
305 project-pattern: '{project}'
307 - branch-compare-type: 'ANT'
308 branch-pattern: '**/{branch}'
311 pattern: '{nodedir}/**'
317 virtualenv $WORKSPACE/venv-python
318 source $WORKSPACE/venv-python/bin/activate
319 pip install --upgrade pip
320 pip install --upgrade tox argparse nodeenv
324 nodeenv --node={nodever} --prebuilt $WORKSPACE/venv-node
325 source $WORKSPACE/venv-node/bin/activate
326 cd $WORKSPACE/repo/{nodedir}
331 - email-notification:
332 email-prefix: '[{project}]'
334 maven-version: '{mvn33}'