2 name: '{name}-release-java'
4 # Job template for producing a release candidate by creating a staging repo
19 stage-id: '{stage-id}'
23 credentials-id: '{ssh-credentials}'
33 - ssh-agent-credentials:
38 - wipe-org-opendaylight-repo
39 - jacoco-nojava-workaround
40 - provide-maven-settings:
41 global-settings-file: 'odl-global-settings'
42 settings-file: 'autorelease-settings'
47 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'
48 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
49 settings: 'autorelease-settings'
50 global-settings: 'odl-global-settings'
51 post-step-run-condition: UNSTABLE
54 - releng-stage-release
60 email-prefix: '[releng]'
64 name: '{name}-publish-p2repo'
66 # Job template for publishing a p2 repo given a URL to a zipped p2repo.
78 - wipe-org-opendaylight-repo
79 - jacoco-nojava-workaround
80 - releng-fetch-p2zip-if-necessary:
81 maven-version: '{mvn33}'
82 settings: '{project-settings}'
83 global-settings: 'odl-global-settings'
84 - releng-generate-p2pom
89 goals: 'clean deploy -V -B -Dmaven.repo.local=/tmp/r'
90 settings: '{project-settings}'
91 global-settings: 'odl-global-settings'
92 post-step-run-condition: UNSTABLE
95 - releng-update-p2composite-metadata:
96 maven-version: '{mvn33}'
97 settings: '{project-settings}'
98 global-settings: 'odl-global-settings'
101 - email-notification:
102 email-prefix: '[releng]'
107 name: '{name}-verify-python-{stream}'
109 # Job template for python verify jobs
111 # The purpose of this job template is to run tox for projects using this
114 # Required Variables:
115 # stream: release stream (eg. stable-lithium or beryllium)
116 # branch: git branch (eg. stable/lithium or master)
117 # toxdir: directory containing the project's tox.ini relative to
120 project-type: freestyle
127 artifactDaysToKeep: '-1'
128 artifactNumToKeep: '-1'
136 refspec: 'refs/heads/{branch}'
140 credentials-id: '{ssh-credentials}'
143 refspec: '$GERRIT_REFSPEC'
145 - 'origin/$GERRIT_BRANCH'
147 choosing-strategy: 'gerrit'
151 - ssh-agent-credentials:
153 - '{ssh-credentials}'
157 server-name: 'OpenDaylight'
159 - patchset-created-event:
160 exclude-drafts: 'true'
161 exclude-trivial-rebase: 'false'
162 exclude-no-code-change: 'true'
163 - draft-published-event
164 - comment-added-contains-event:
165 comment-contains-value: 'recheck'
166 - comment-added-contains-event:
167 comment-contains-value: 'reverify'
169 - project-compare-type: 'ANT'
170 project-pattern: '{project}'
172 - branch-compare-type: 'ANT'
173 branch-pattern: '**/{branch}'
176 pattern: '{toxdir}/**'
180 virtualenv $WORKSPACE/venv-tox
181 source $WORKSPACE/venv-tox/bin/activate
182 pip install --upgrade pip
183 pip install --upgrade tox argparse
185 cd $WORKSPACE/repo/{toxdir}
189 - email-notification:
190 email-prefix: '[{project}]'
193 name: '{name}-merge-rtd-{stream}'
194 # Template for ReadTheDocs triggering
196 project-type: freestyle
206 refspec: 'refs/heads/{branch}'
210 - ssh-agent-credentials:
212 - '{ssh-credentials}'
215 - gerrit-trigger-patch-merged:
221 curl -X POST https://readthedocs.org/build/{rtdproject}
224 - email-notification:
225 email-prefix: '[{project}]'
230 name: '{name}-verify-node-{stream}'
232 # Job template for python verify jobs
234 # The purpose of this job template is to run node tests for projects using
235 # this template. It uses python virtualenv to install nodeenv and create a
236 # virtualenv for nodejs.
238 # Required Variables:
239 # stream: release stream (eg. stable-lithium or beryllium)
240 # branch: git branch (eg. stable/lithium or master)
241 # nodedir: directory of nodejs project to run node test against
242 # nodever: version of node to install in virtualenv
244 project-type: freestyle
251 artifactDaysToKeep: '-1'
252 artifactNumToKeep: '-1'
260 refspec: 'refs/heads/{branch}'
264 credentials-id: '{ssh-credentials}'
267 refspec: '$GERRIT_REFSPEC'
269 - 'origin/$GERRIT_BRANCH'
271 choosing-strategy: 'gerrit'
275 - ssh-agent-credentials:
277 - '{ssh-credentials}'
281 server-name: 'OpenDaylight'
283 - patchset-created-event:
284 exclude-drafts: 'true'
285 exclude-trivial-rebase: 'false'
286 exclude-no-code-change: 'true'
287 - draft-published-event
288 - comment-added-contains-event:
289 comment-contains-value: 'recheck'
290 - comment-added-contains-event:
291 comment-contains-value: 'reverify'
293 - project-compare-type: 'ANT'
294 project-pattern: '{project}'
296 - branch-compare-type: 'ANT'
297 branch-pattern: '**/{branch}'
300 pattern: '{nodedir}/**'
306 virtualenv $WORKSPACE/venv-python
307 source $WORKSPACE/venv-python/bin/activate
308 pip install --upgrade pip
309 pip install --upgrade tox argparse nodeenv
313 nodeenv --node={nodever} --prebuilt $WORKSPACE/venv-node
314 source $WORKSPACE/venv-node/bin/activate
315 cd $WORKSPACE/repo/{nodedir}
320 - email-notification:
321 email-prefix: '[{project}]'