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'
51 global-settings: 'odl-global-settings'
52 post-step-run-condition: UNSTABLE
55 - releng-stage-release
61 email-prefix: '[releng]'
65 name: '{project-name}-publish-p2repo'
67 # Job template for publishing a p2 repo given a URL to a zipped p2repo.
74 - opendaylight-infra-parameters:
77 refspec: 'refs/heads/{branch}'
78 artifacts: '{archive-artifacts}'
82 - opendaylight-infra-wrappers:
83 build-timeout: '{build-timeout}'
86 - wipe-org-opendaylight-repo
87 - jacoco-nojava-workaround
88 - releng-fetch-p2zip-if-necessary:
89 maven-version: '{mvn33}'
90 settings: '{project-settings}'
91 global-settings: 'odl-global-settings'
92 - releng-generate-p2pom
97 goals: 'clean deploy -V -B -Dmaven.repo.local=/tmp/r'
98 settings: '{project-settings}'
99 global-settings: 'odl-global-settings'
100 post-step-run-condition: UNSTABLE
103 - releng-update-p2composite-metadata:
104 maven-version: '{mvn33}'
105 settings: '{project-settings}'
106 global-settings: 'odl-global-settings'
109 - email-notification:
110 email-prefix: '[releng]'
115 name: '{project-name}-verify-python-{stream}'
117 # Job template for python verify jobs
119 # The purpose of this job template is to run tox for projects using this
122 # Required Variables:
123 # stream: release stream (eg. stable-lithium or beryllium)
124 # branch: git branch (eg. stable/lithium or master)
125 # toxdir: directory containing the project's tox.ini relative to
128 project-type: freestyle
135 artifactDaysToKeep: '-1'
136 artifactNumToKeep: '-1'
139 - opendaylight-infra-parameters:
142 refspec: 'refs/heads/{branch}'
143 artifacts: '{archive-artifacts}'
147 credentials-id: 'opendaylight-jenkins-ssh'
150 refspec: '$GERRIT_REFSPEC'
152 - 'origin/$GERRIT_BRANCH'
154 choosing-strategy: 'gerrit'
157 - opendaylight-infra-wrappers:
158 build-timeout: '{build-timeout}'
162 server-name: 'OpenDaylight'
164 - patchset-created-event:
165 exclude-drafts: 'true'
166 exclude-trivial-rebase: 'false'
167 exclude-no-code-change: 'true'
168 - draft-published-event
169 - comment-added-contains-event:
170 comment-contains-value: 'recheck'
171 - comment-added-contains-event:
172 comment-contains-value: 'reverify'
174 - project-compare-type: 'ANT'
175 project-pattern: '{project}'
177 - branch-compare-type: 'ANT'
178 branch-pattern: '**/{branch}'
181 pattern: '{toxdir}/**'
185 virtualenv $WORKSPACE/venv-tox
186 source $WORKSPACE/venv-tox/bin/activate
187 pip install --upgrade pip
188 pip install --upgrade tox argparse
190 cd $WORKSPACE/repo/{toxdir}
194 - email-notification:
195 email-prefix: '[{project}]'
198 name: '{project-name}-merge-rtd-{stream}'
199 # Template for ReadTheDocs triggering
201 project-type: freestyle
206 - opendaylight-infra-parameters:
209 refspec: 'refs/heads/{branch}'
210 artifacts: '{archive-artifacts}'
213 - opendaylight-infra-wrappers:
214 build-timeout: '{build-timeout}'
217 - gerrit-trigger-patch-merged:
223 curl -X POST https://readthedocs.org/build/{rtdproject}
226 - email-notification:
227 email-prefix: '[{project}]'
232 name: '{project-name}-verify-node-{stream}'
234 # Job template for python verify jobs
236 # The purpose of this job template is to run node tests for projects using
237 # this template. It uses python virtualenv to install nodeenv and create a
238 # virtualenv for nodejs.
240 # Required Variables:
241 # stream: release stream (eg. stable-lithium or beryllium)
242 # branch: git branch (eg. stable/lithium or master)
243 # nodedir: directory of nodejs project to run node test against
244 # nodever: version of node to install in virtualenv
246 project-type: freestyle
253 artifactDaysToKeep: '-1'
254 artifactNumToKeep: '-1'
257 - opendaylight-infra-parameters:
260 refspec: 'refs/heads/{branch}'
261 artifacts: '{archive-artifacts}'
265 credentials-id: 'opendaylight-jenkins-ssh'
268 refspec: '$GERRIT_REFSPEC'
270 - 'origin/$GERRIT_BRANCH'
272 choosing-strategy: 'gerrit'
275 - opendaylight-infra-wrappers:
276 build-timeout: '{build-timeout}'
280 server-name: 'OpenDaylight'
282 - patchset-created-event:
283 exclude-drafts: 'true'
284 exclude-trivial-rebase: 'false'
285 exclude-no-code-change: 'true'
286 - draft-published-event
287 - comment-added-contains-event:
288 comment-contains-value: 'recheck'
289 - comment-added-contains-event:
290 comment-contains-value: 'reverify'
292 - project-compare-type: 'ANT'
293 project-pattern: '{project}'
295 - branch-compare-type: 'ANT'
296 branch-pattern: '**/{branch}'
299 pattern: '{nodedir}/**'
305 virtualenv $WORKSPACE/venv-python
306 source $WORKSPACE/venv-python/bin/activate
307 pip install --upgrade pip
308 pip install --upgrade tox argparse nodeenv
312 nodeenv --node={nodever} --prebuilt $WORKSPACE/venv-node
313 source $WORKSPACE/venv-node/bin/activate
314 cd $WORKSPACE/repo/{nodedir}
319 - email-notification:
320 email-prefix: '[{project}]'