3 name: '{project-name}-release-java'
5 # Job template for producing a release candidate by creating a staging repo
8 project-type: freestyle
13 - opendaylight-infra-properties:
14 build-days-to-keep: 30
17 - opendaylight-infra-parameters:
18 os-cloud: '{os-cloud}'
21 refspec: 'refs/heads/{branch}'
22 artifacts: '{archive-artifacts}'
25 stage-id: '{stage-id}'
29 credentials-id: 'opendaylight-jenkins-ssh'
38 - opendaylight-infra-wrappers:
39 build-timeout: '{build-timeout}'
42 - wipe-org-opendaylight-repo
43 - jacoco-nojava-workaround
44 - provide-maven-settings:
45 global-settings-file: 'global-settings'
46 settings-file: 'autorelease-settings'
48 maven-version: 'mvn33'
52 -Dmaven.repo.local=/tmp/r
53 -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r
55 -DaltDeploymentRepository=staging::default::file:hide/from/pom/files/stage
57 - '-Xmx1024m -XX:MaxPermSize=256m'
58 settings: 'autorelease-settings'
60 global-settings: 'global-settings'
61 global-settings-type: cfp
62 - releng-stage-release
66 email-recipients: '{email-recipients}'
67 email-prefix: '[releng]'
72 name: '{project-name}-publish-p2repo'
74 # Job template for publishing a p2 repo given a URL to a zipped p2repo.
76 project-type: freestyle
81 - opendaylight-infra-parameters:
82 os-cloud: '{os-cloud}'
85 refspec: 'refs/heads/{branch}'
86 artifacts: '{archive-artifacts}'
90 - opendaylight-infra-wrappers:
91 build-timeout: '{build-timeout}'
94 - wipe-org-opendaylight-repo
95 - jacoco-nojava-workaround
96 - releng-fetch-p2zip-if-necessary:
97 maven-version: 'mvn33'
98 settings: '{mvn-settings}'
99 global-settings: 'global-settings'
100 - releng-generate-p2pom
102 maven-version: 'mvn33'
104 goals: 'clean deploy -V -B -Dmaven.repo.local=/tmp/r'
105 settings: '{mvn-settings}'
107 global-settings: 'global-settings'
108 global-settings-type: cfp
109 - releng-update-p2composite-metadata:
110 maven-version: 'mvn33'
111 settings: '{mvn-settings}'
112 global-settings: 'global-settings'
115 - email-notification:
116 email-recipients: '{email-recipients}'
117 email-prefix: '[releng]'
121 name: '{project-name}-merge-rtd-{stream}'
122 # Template for ReadTheDocs triggering
124 project-type: freestyle
129 - opendaylight-infra-parameters:
130 os-cloud: '{os-cloud}'
133 refspec: 'refs/heads/{branch}'
134 artifacts: '{archive-artifacts}'
137 - opendaylight-infra-wrappers:
138 build-timeout: '{build-timeout}'
141 - gerrit-trigger-patch-merged:
142 server-name: '{server-name}'
148 curl -X POST https://readthedocs.org/build/{rtdproject}
151 - email-notification:
152 email-recipients: '{email-recipients}'
153 email-prefix: '[{project}]'
159 name: '{project-name}-verify-node-{stream}'
161 # Job template for python verify jobs
163 # The purpose of this job template is to run node tests for projects using
164 # this template. It uses python virtualenv to install nodeenv and create a
165 # virtualenv for nodejs.
167 # Required Variables:
168 # stream: release stream (eg. nitrogen or oxygen)
169 # branch: git branch (eg. stable/nitrogen or master)
170 # nodedir: directory of nodejs project to run node test against
171 # nodever: version of node to install in virtualenv
173 project-type: freestyle
178 - opendaylight-infra-properties:
179 build-days-to-keep: 7
182 - opendaylight-infra-parameters:
183 os-cloud: '{os-cloud}'
186 refspec: 'refs/heads/{branch}'
187 artifacts: '{archive-artifacts}'
191 credentials-id: 'opendaylight-jenkins-ssh'
194 refspec: '$GERRIT_REFSPEC'
196 - 'origin/$GERRIT_BRANCH'
198 choosing-strategy: 'gerrit'
201 - opendaylight-infra-wrappers:
202 build-timeout: '{build-timeout}'
205 - gerrit-trigger-patch-submitted:
206 server: '{server-name}'
209 files: '{nodedir}/**'
215 virtualenv $WORKSPACE/venv-python
216 source $WORKSPACE/venv-python/bin/activate
217 PYTHON="$WORKSPACE/venv-python/bin/python"
218 $PYTHON -m pip install --upgrade pip
219 $PYTHON -m pip install --upgrade tox argparse nodeenv
220 $PYTHON -m pip install --upgrade pipdeptree
224 nodeenv --node={nodever} --prebuilt $WORKSPACE/venv-node
225 source $WORKSPACE/venv-node/bin/activate
226 cd $WORKSPACE/repo/{nodedir}
231 - email-notification:
232 email-recipients: '{email-recipients}'
233 email-prefix: '[{project}]'