2 name: '{project-name}-release-java'
4 # Job template for producing a release candidate by creating a staging repo
7 project-type: freestyle
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'
45 maven-version: '{mvn33}'
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'
49 - '-Xmx1024m -XX:MaxPermSize=256m'
50 settings: 'autorelease-settings'
52 global-settings: 'odl-global-settings'
53 global-settings-type: cfp
54 - releng-stage-release
58 email-prefix: '[releng]'
59 - opendaylight-infra-shiplogs:
60 maven-version: '{mvn33}'
64 name: '{project-name}-publish-p2repo'
66 # Job template for publishing a p2 repo given a URL to a zipped p2repo.
73 - opendaylight-infra-parameters:
76 refspec: 'refs/heads/{branch}'
77 artifacts: '{archive-artifacts}'
81 - opendaylight-infra-wrappers:
82 build-timeout: '{build-timeout}'
85 - wipe-org-opendaylight-repo
86 - jacoco-nojava-workaround
87 - releng-fetch-p2zip-if-necessary:
88 maven-version: '{mvn33}'
89 settings: '{mvn-settings}'
90 global-settings: 'odl-global-settings'
91 - releng-generate-p2pom
96 goals: 'clean deploy -V -B -Dmaven.repo.local=/tmp/r'
97 settings: '{mvn-settings}'
98 global-settings: 'odl-global-settings'
99 post-step-run-condition: UNSTABLE
102 - releng-update-p2composite-metadata:
103 maven-version: '{mvn33}'
104 settings: '{mvn-settings}'
105 global-settings: 'odl-global-settings'
108 - email-notification:
109 email-prefix: '[releng]'
110 - opendaylight-infra-shiplogs:
111 maven-version: '{mvn33}'
116 name: '{project-name}-verify-python-{stream}'
118 # Job template for python verify jobs
120 # The purpose of this job template is to run tox for projects using this
123 # Required Variables:
124 # stream: release stream (eg. stable-lithium or beryllium)
125 # branch: git branch (eg. stable/lithium or master)
126 # toxdir: directory containing the project's tox.ini relative to
127 # the workspace. Empty works if tox.ini is at project root.
129 project-type: freestyle
136 artifactDaysToKeep: '-1'
137 artifactNumToKeep: '-1'
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}'
163 server-name: 'OpenDaylight'
165 - patchset-created-event:
166 exclude-drafts: 'true'
167 exclude-trivial-rebase: 'false'
168 exclude-no-code-change: 'true'
169 - draft-published-event
170 - comment-added-contains-event:
171 comment-contains-value: 'recheck'
172 - comment-added-contains-event:
173 comment-contains-value: 'reverify'
175 - project-compare-type: 'ANT'
176 project-pattern: '{project}'
178 - branch-compare-type: 'ANT'
179 branch-pattern: '**/{branch}'
182 pattern: '{toxdir}/**'
186 virtualenv $WORKSPACE/venv-tox
187 source $WORKSPACE/venv-tox/bin/activate
188 pip install --upgrade pip
189 pip install --upgrade tox argparse
191 cd $WORKSPACE/repo/{toxdir}
195 - email-notification:
196 email-prefix: '[{project}]'
197 - opendaylight-infra-shiplogs:
198 maven-version: '{mvn33}'
201 name: '{project-name}-merge-rtd-{stream}'
202 # Template for ReadTheDocs triggering
204 project-type: freestyle
209 - opendaylight-infra-parameters:
212 refspec: 'refs/heads/{branch}'
213 artifacts: '{archive-artifacts}'
216 - opendaylight-infra-wrappers:
217 build-timeout: '{build-timeout}'
220 - gerrit-trigger-patch-merged:
226 curl -X POST https://readthedocs.org/build/{rtdproject}
229 - email-notification:
230 email-prefix: '[{project}]'
231 - opendaylight-infra-shiplogs:
232 maven-version: '{mvn33}'
237 name: '{project-name}-verify-node-{stream}'
239 # Job template for python verify jobs
241 # The purpose of this job template is to run node tests for projects using
242 # this template. It uses python virtualenv to install nodeenv and create a
243 # virtualenv for nodejs.
245 # Required Variables:
246 # stream: release stream (eg. stable-lithium or beryllium)
247 # branch: git branch (eg. stable/lithium or master)
248 # nodedir: directory of nodejs project to run node test against
249 # nodever: version of node to install in virtualenv
251 project-type: freestyle
258 artifactDaysToKeep: '-1'
259 artifactNumToKeep: '-1'
262 - opendaylight-infra-parameters:
265 refspec: 'refs/heads/{branch}'
266 artifacts: '{archive-artifacts}'
270 credentials-id: 'opendaylight-jenkins-ssh'
273 refspec: '$GERRIT_REFSPEC'
275 - 'origin/$GERRIT_BRANCH'
277 choosing-strategy: 'gerrit'
280 - opendaylight-infra-wrappers:
281 build-timeout: '{build-timeout}'
285 server-name: 'OpenDaylight'
287 - patchset-created-event:
288 exclude-drafts: 'true'
289 exclude-trivial-rebase: 'false'
290 exclude-no-code-change: 'true'
291 - draft-published-event
292 - comment-added-contains-event:
293 comment-contains-value: 'recheck'
294 - comment-added-contains-event:
295 comment-contains-value: 'reverify'
297 - project-compare-type: 'ANT'
298 project-pattern: '{project}'
300 - branch-compare-type: 'ANT'
301 branch-pattern: '**/{branch}'
304 pattern: '{nodedir}/**'
310 virtualenv $WORKSPACE/venv-python
311 source $WORKSPACE/venv-python/bin/activate
312 pip install --upgrade pip
313 pip install --upgrade tox argparse nodeenv
317 nodeenv --node={nodever} --prebuilt $WORKSPACE/venv-node
318 source $WORKSPACE/venv-node/bin/activate
319 cd $WORKSPACE/repo/{nodedir}
324 - email-notification:
325 email-prefix: '[{project}]'
326 - opendaylight-infra-shiplogs:
327 maven-version: '{mvn33}'