blob: acd5e17f0a216acaa98ddb1552896c47df4617cc [file] [log] [blame]
Andrew Grimbergebc710a2017-01-30 12:59:38 -08001---
2- job-template:
3 # Job template for python verify jobs
4 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08005 # The purpose of this job template is to run:
6 # 1. tox
7 #
8 # This job supports subprojects.
Andrew Grimbergebc710a2017-01-30 12:59:38 -08009 #
10 # Required Variables:
11 # branch: git branch (eg. stable/lithium or master)
12 # Optional Variables:
13 # path: directory containing the project's tox.ini relative to
14 # the workspace. The default is the project root.
15 # pattern: ant file-path pattern relative to the workspace used to
16 # trigger the job
17
Andrew Grimbergce2286c2017-01-31 05:50:39 -080018 name: '{project-name}-{stream}-{subproject}-verify-python'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080019 path: '$WORKSPACE'
20
21 project-type: freestyle
22 concurrent: true
23 node: '{build-node}'
24
Andrew Grimberg94ef33d2017-01-31 05:16:56 -080025 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070026 - infra-properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -080027 build-days-to-keep: '{build-days-to-keep}'
28
Andrew Grimbergebc710a2017-01-30 12:59:38 -080029 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070030 - infra-parameters:
Andrew Grimbergebc710a2017-01-30 12:59:38 -080031 project: '{project}'
32 branch: '{branch}'
33 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -080034 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -080035 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -080036 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080037
38 scm:
39 - gerrit-trigger-scm:
40 refspec: '$GERRIT_REFSPEC'
41 choosing-strategy: 'gerrit'
Jeremy Phelps11f5d412017-06-30 13:56:19 -050042 submodule-recursive: '{submodule-recursive}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080043
44 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070045 - infra-wrappers:
Andrew Grimbergebc710a2017-01-30 12:59:38 -080046 build-timeout: '{build-timeout}'
47
48 triggers:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -080049 - gerrit-trigger-patch-submitted:
50 server: '{server-name}'
51 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080052 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -080053 files: '{pattern}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080054
55 builders:
Andrew Grimbergd5410d12017-02-10 10:44:11 -080056 - provide-maven-settings:
57 global-settings-file: 'global-settings'
58 settings-file: '{mvn-settings}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080059 - shell: |
Andrew Grimberg673c9632017-02-16 06:21:00 -080060 #!/bin/bash
Andrew Grimbergebc710a2017-01-30 12:59:38 -080061 virtualenv $WORKSPACE/venv-tox
62 source $WORKSPACE/venv-tox/bin/activate
63 pip install --upgrade pip
64 pip install --upgrade tox argparse
65 pip freeze
66 cd $WORKSPACE/{path}
67 tox
68
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -070069 publishers:
70 - infra-shiplogs:
71 maven-version: '{maven-version}'
DR695Hf68e9192017-02-20 17:06:47 -050072
73- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -080074 # Job template for docker daily jobs
75 #
76 # The purpose of this job template is to run:
77 # 1. login into the docker registry
78 # 2. docker build
79 # 3. docker tag
80 # 4. docker push
81 #
82 # Required Variables:
83 # branch: git branch (eg. stable/lithium or master)
84
DR695Hf68e9192017-02-20 17:06:47 -050085 name: '{project-name}-{stream}-docker-shell-daily'
86 project-type: freestyle
87 node: 'ubuntu1604-docker-8c-8g'
88
89 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070090 - infra-properties:
DR695Hf68e9192017-02-20 17:06:47 -050091 build-days-to-keep: '{build-days-to-keep}'
92
93 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070094 - infra-parameters:
DR695Hf68e9192017-02-20 17:06:47 -050095 project: '{project}'
96 branch: '{branch}'
97 refspec: 'refs/heads/{branch}'
98 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -080099 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800100 maven-version: '{maven-version}'
DR695Hf68e9192017-02-20 17:06:47 -0500101
102 scm:
103 - gerrit-trigger-scm:
104 refspec: ''
105 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500106 submodule-recursive: '{submodule-recursive}'
DR695Hf68e9192017-02-20 17:06:47 -0500107
108 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700109 - infra-wrappers:
DR695Hf68e9192017-02-20 17:06:47 -0500110 build-timeout: '{build-timeout}'
111
112 triggers:
113 # 12 AM UTC
114 - timed: 'H 12 * * *'
115 - gerrit-trigger-release-manually:
116 server: '{server-name}'
117 project: '{project}'
118 branch: '{branch}'
119
120 builders:
DR695Hf68e9192017-02-20 17:06:47 -0500121 - provide-maven-settings:
122 global-settings-file: 'global-settings'
123 settings-file: '{mvn-settings}'
124
125 - docker-login
126
DR695Hb6c0b2f2017-02-23 09:38:37 -0500127 - shell: |
128 cp $WORKSPACE/docker/* .
DR695H70135c12017-02-23 15:03:02 -0500129 docker -D build -t openecomp/testsuite .
Jeremy Phelps48028ab2017-03-28 15:38:24 -0500130 export REPO="nexus3.onap.org:10003"
Jerry Floodb7e2fe22017-03-24 14:26:37 -0400131 docker tag openecomp/testsuite:latest $REPO/openecomp/testsuite:1.0-STAGING-latest
Jerry Flood4b202392017-03-24 11:33:32 -0400132 docker push $REPO/openecomp/testsuite:1.0-STAGING-latest
jf9860f9cfaf42017-02-23 19:39:39 -0500133
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700134 publishers:
135 - infra-shiplogs:
136 maven-version: '{maven-version}'
137
jf9860f9cfaf42017-02-23 19:39:39 -0500138- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800139 # Job template for docker daily jobs for 2 SCMs
140 #
141 # The purpose of this job template is to run:
142 # 1. inject a version properties file
143 # 2. login into the docker registry
144 # 4. run a specified shell script
145 #
146 # Required Variables:
147 # branch: git branch (eg. stable/lithium or master)
148
jf9860f9cfaf42017-02-23 19:39:39 -0500149 name: '{project-name}-{stream}-2scm-docker-shell-daily'
150 project-type: freestyle
151 node: 'ubuntu1604-docker-8c-8g'
152
153 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700154 - infra-properties:
jf9860f9cfaf42017-02-23 19:39:39 -0500155 build-days-to-keep: '{build-days-to-keep}'
156
157 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700158 - infra-parameters:
jf9860f9cfaf42017-02-23 19:39:39 -0500159 project: '{project}'
160 branch: '{branch}'
161 refspec: 'refs/heads/{branch}'
162 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800163 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800164 maven-version: '{maven-version}'
jf9860f9cfaf42017-02-23 19:39:39 -0500165
166 scm:
167 - gerrit-trigger-scm:
168 refspec: ''
169 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500170 submodule-recursive: '{submodule-recursive}'
jf9860f9cfaf42017-02-23 19:39:39 -0500171 - git-extra-project:
172 project: '{extra-project1}'
173 refspec: '{extra-refspec1}'
174 branch: '{extra-branch1}'
175 checkout-dir: '{checkout-dir1}'
176 - git-extra-project:
177 project: '{extra-project2}'
178 refspec: '{extra-refspec2}'
179 branch: '{extra-branch2}'
180 checkout-dir: '{checkout-dir2}'
181
182 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700183 - infra-wrappers:
jf9860f9cfaf42017-02-23 19:39:39 -0500184 build-timeout: '{build-timeout}'
185
186 triggers:
187 # 12 AM UTC
188 - timed: 'H 12 * * *'
189 - gerrit-trigger-release-manually:
190 server: '{server-name}'
191 project: '{project}'
192 branch: '{branch}'
193
194 builders:
jf9860f9cfaf42017-02-23 19:39:39 -0500195 - provide-maven-settings:
196 global-settings-file: 'global-settings'
197 settings-file: '{mvn-settings}'
Jerry Floodb6850ad2017-03-29 09:36:25 -0400198 - inject:
199 properties-file: version.properties
jf9860f9cfaf42017-02-23 19:39:39 -0500200 - docker-login
Jerry Floodffab4f72017-05-02 16:00:03 -0400201 - shell: '{script}'
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700202 publishers:
203 - infra-shiplogs:
204 maven-version: '{maven-version}'
Jerry Floodffab4f72017-05-02 16:00:03 -0400205
206- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800207 # Job template for docker daily jobs for 3 SCMs
208 #
209 # The purpose of this job template is to run:
210 # 1. inject a version properties file
211 # 2. login into the docker registry
212 # 4. run a specified shell script
213 #
214 # Required Variables:
215 # branch: git branch (eg. stable/lithium or master)
216
Jerry Floodffab4f72017-05-02 16:00:03 -0400217 name: '{project-name}-{stream}-3scm-docker-shell-daily'
218 project-type: freestyle
219 node: 'ubuntu1604-docker-8c-8g'
220
221 properties:
222 - infra-properties:
223 build-days-to-keep: '{build-days-to-keep}'
224
225 parameters:
226 - infra-parameters:
227 project: '{project}'
228 branch: '{branch}'
229 refspec: 'refs/heads/{branch}'
230 artifacts: '{archive-artifacts}'
231 - maven-exec:
232 maven-version: '{maven-version}'
233
234 scm:
235 - gerrit-trigger-scm:
236 refspec: ''
237 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500238 submodule-recursive: '{submodule-recursive}'
Jerry Floodffab4f72017-05-02 16:00:03 -0400239 - git-extra-project:
240 project: '{extra-project1}'
241 refspec: '{extra-refspec1}'
242 branch: '{extra-branch1}'
243 checkout-dir: '{checkout-dir1}'
244 - git-extra-project:
245 project: '{extra-project2}'
246 refspec: '{extra-refspec2}'
247 branch: '{extra-branch2}'
248 checkout-dir: '{checkout-dir2}'
249 - git-extra-project:
250 project: '{extra-project3}'
251 refspec: '{extra-refspec3}'
252 branch: '{extra-branch3}'
253 checkout-dir: '{checkout-dir3}'
254
255 wrappers:
256 - infra-wrappers:
257 build-timeout: '{build-timeout}'
258
259 triggers:
260 # 12 AM UTC
261 - timed: 'H 12 * * *'
262 - gerrit-trigger-release-manually:
263 server: '{server-name}'
264 project: '{project}'
265 branch: '{branch}'
266
267 builders:
Jerry Floodffab4f72017-05-02 16:00:03 -0400268 - provide-maven-settings:
269 global-settings-file: 'global-settings'
270 settings-file: '{mvn-settings}'
Jerry Floodffab4f72017-05-02 16:00:03 -0400271 - inject:
272 properties-file: version.properties
Jerry Floodffab4f72017-05-02 16:00:03 -0400273 - docker-login
Jerry Floodffab4f72017-05-02 16:00:03 -0400274 - shell: '{script}'
Jerry Floodffab4f72017-05-02 16:00:03 -0400275 publishers:
276 - infra-shiplogs:
277 maven-version: '{maven-version}'