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:
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
62 email-prefix: '[releng]'
66 name: '{name}-publish-p2repo'
68 # Job template for publishing a p2 repo given a URL to a zipped p2repo.
80 - wipe-org-opendaylight-repo
81 - jacoco-nojava-workaround
82 - releng-fetch-p2zip-if-necessary:
83 maven-version: '{mvn33}'
84 settings: '{project-settings}'
85 global-settings: 'odl-global-settings'
86 - releng-generate-p2pom
91 goals: 'clean deploy -V -B -Dmaven.repo.local=/tmp/r'
92 settings: '{project-settings}'
93 global-settings: 'odl-global-settings'
94 post-step-run-condition: UNSTABLE
97 - releng-update-p2composite-metadata:
98 maven-version: '{mvn33}'
99 settings: '{project-settings}'
100 global-settings: 'odl-global-settings'
103 - email-notification:
104 email-prefix: '[releng]'
109 name: '{name}-verify-python-{stream}'
111 # Job template for python verify jobs
113 # The purpose of this job template is to run tox for projects using this
116 # Required Variables:
117 # stream: release stream (eg. stable-lithium or beryllium)
118 # branch: git branch (eg. stable/lithium or master)
119 # toxdir: directory containing the project's tox.ini relative to
122 project-type: freestyle
129 artifactDaysToKeep: '-1'
130 artifactNumToKeep: '-1'
138 refspec: 'refs/heads/{branch}'
142 credentials-id: '{ssh-credentials}'
145 refspec: '$GERRIT_REFSPEC'
147 - 'origin/$GERRIT_BRANCH'
149 choosing-strategy: 'gerrit'
153 - ssh-agent-credentials:
155 - '{ssh-credentials}'
161 server-name: 'OpenDaylight'
163 - patchset-created-event:
164 exclude-drafts: 'true'
165 exclude-trivial-rebase: 'false'
166 exclude-no-code-change: 'true'
167 - draft-published-event
168 - comment-added-contains-event:
169 comment-contains-value: 'recheck'
170 - comment-added-contains-event:
171 comment-contains-value: 'reverify'
173 - project-compare-type: 'ANT'
174 project-pattern: '{project}'
176 - branch-compare-type: 'ANT'
177 branch-pattern: '**/{branch}'
180 pattern: '{toxdir}/**'
184 virtualenv $WORKSPACE/venv-tox
185 source $WORKSPACE/venv-tox/bin/activate
186 pip install --upgrade pip
187 pip install --upgrade tox argparse
189 cd $WORKSPACE/repo/{toxdir}
193 - email-notification:
194 email-prefix: '[{project}]'
197 name: '{name}-merge-rtd-{stream}'
198 # Template for ReadTheDocs triggering
200 project-type: freestyle
210 refspec: 'refs/heads/{branch}'
214 - ssh-agent-credentials:
216 - '{ssh-credentials}'
221 - gerrit-trigger-patch-merged:
227 curl -X POST https://readthedocs.org/build/{rtdproject}
230 - email-notification:
231 email-prefix: '[{project}]'
236 name: '{name}-verify-node-{stream}'
238 # Job template for python verify jobs
240 # The purpose of this job template is to run node tests for projects using
241 # this template. It uses python virtualenv to install nodeenv and create a
242 # virtualenv for nodejs.
244 # Required Variables:
245 # stream: release stream (eg. stable-lithium or beryllium)
246 # branch: git branch (eg. stable/lithium or master)
247 # nodedir: directory of nodejs project to run node test against
248 # nodever: version of node to install in virtualenv
250 project-type: freestyle
257 artifactDaysToKeep: '-1'
258 artifactNumToKeep: '-1'
266 refspec: 'refs/heads/{branch}'
270 credentials-id: '{ssh-credentials}'
273 refspec: '$GERRIT_REFSPEC'
275 - 'origin/$GERRIT_BRANCH'
277 choosing-strategy: 'gerrit'
281 - ssh-agent-credentials:
283 - '{ssh-credentials}'
289 server-name: 'OpenDaylight'
291 - patchset-created-event:
292 exclude-drafts: 'true'
293 exclude-trivial-rebase: 'false'
294 exclude-no-code-change: 'true'
295 - draft-published-event
296 - comment-added-contains-event:
297 comment-contains-value: 'recheck'
298 - comment-added-contains-event:
299 comment-contains-value: 'reverify'
301 - project-compare-type: 'ANT'
302 project-pattern: '{project}'
304 - branch-compare-type: 'ANT'
305 branch-pattern: '**/{branch}'
308 pattern: '{nodedir}/**'
314 virtualenv $WORKSPACE/venv-python
315 source $WORKSPACE/venv-python/bin/activate
316 pip install --upgrade pip
317 pip install --upgrade tox argparse nodeenv
321 nodeenv --node={nodever} --prebuilt $WORKSPACE/venv-node
322 source $WORKSPACE/venv-node/bin/activate
323 cd $WORKSPACE/repo/{nodedir}
328 - email-notification:
329 email-prefix: '[{project}]'