blob: ec9002eda0d9611a29f540c96a9d4426a1c244cf [file] [log] [blame]
Andrew Grimbergebc710a2017-01-30 12:59:38 -08001---
2- job-template:
3 # Job template for python verify jobs
4 #
5 # The purpose of this job template is to run tox for projects using this
6 # template.
7 #
8 # Required Variables:
9 # branch: git branch (eg. stable/lithium or master)
10 # Optional Variables:
11 # path: directory containing the project's tox.ini relative to
12 # the workspace. The default is the project root.
13 # pattern: ant file-path pattern relative to the workspace used to
14 # trigger the job
15
Andrew Grimbergce2286c2017-01-31 05:50:39 -080016 name: '{project-name}-{stream}-{subproject}-verify-python'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080017 path: '$WORKSPACE'
18
19 project-type: freestyle
20 concurrent: true
21 node: '{build-node}'
22
Andrew Grimberg94ef33d2017-01-31 05:16:56 -080023 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070024 - infra-properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -080025 build-days-to-keep: '{build-days-to-keep}'
26
Andrew Grimbergebc710a2017-01-30 12:59:38 -080027 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070028 - infra-parameters:
Andrew Grimbergebc710a2017-01-30 12:59:38 -080029 project: '{project}'
30 branch: '{branch}'
31 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -080032 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -080033 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -080034 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080035
36 scm:
37 - gerrit-trigger-scm:
38 refspec: '$GERRIT_REFSPEC'
39 choosing-strategy: 'gerrit'
Jeremy Phelps11f5d412017-06-30 13:56:19 -050040 submodule-recursive: '{submodule-recursive}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080041
42 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070043 - infra-wrappers:
Andrew Grimbergebc710a2017-01-30 12:59:38 -080044 build-timeout: '{build-timeout}'
45
46 triggers:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -080047 - gerrit-trigger-patch-submitted:
48 server: '{server-name}'
49 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080050 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -080051 files: '{pattern}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080052
53 builders:
Andrew Grimbergd5410d12017-02-10 10:44:11 -080054 - provide-maven-settings:
55 global-settings-file: 'global-settings'
56 settings-file: '{mvn-settings}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080057 - shell: |
Andrew Grimberg673c9632017-02-16 06:21:00 -080058 #!/bin/bash
Andrew Grimbergebc710a2017-01-30 12:59:38 -080059 virtualenv $WORKSPACE/venv-tox
60 source $WORKSPACE/venv-tox/bin/activate
61 pip install --upgrade pip
62 pip install --upgrade tox argparse
63 pip freeze
64 cd $WORKSPACE/{path}
65 tox
66
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -070067 publishers:
68 - infra-shiplogs:
69 maven-version: '{maven-version}'
DR695Hf68e9192017-02-20 17:06:47 -050070
71- job-template:
72 name: '{project-name}-{stream}-docker-shell-daily'
73 project-type: freestyle
74 node: 'ubuntu1604-docker-8c-8g'
75
76 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070077 - infra-properties:
DR695Hf68e9192017-02-20 17:06:47 -050078 build-days-to-keep: '{build-days-to-keep}'
79
80 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070081 - infra-parameters:
DR695Hf68e9192017-02-20 17:06:47 -050082 project: '{project}'
83 branch: '{branch}'
84 refspec: 'refs/heads/{branch}'
85 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -080086 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -080087 maven-version: '{maven-version}'
DR695Hf68e9192017-02-20 17:06:47 -050088
89 scm:
90 - gerrit-trigger-scm:
91 refspec: ''
92 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -050093 submodule-recursive: '{submodule-recursive}'
DR695Hf68e9192017-02-20 17:06:47 -050094
95 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070096 - infra-wrappers:
DR695Hf68e9192017-02-20 17:06:47 -050097 build-timeout: '{build-timeout}'
98
99 triggers:
100 # 12 AM UTC
101 - timed: 'H 12 * * *'
102 - gerrit-trigger-release-manually:
103 server: '{server-name}'
104 project: '{project}'
105 branch: '{branch}'
106
107 builders:
108
109 - provide-maven-settings:
110 global-settings-file: 'global-settings'
111 settings-file: '{mvn-settings}'
112
113 - docker-login
114
DR695Hb6c0b2f2017-02-23 09:38:37 -0500115 - shell: |
116 cp $WORKSPACE/docker/* .
DR695H70135c12017-02-23 15:03:02 -0500117 docker -D build -t openecomp/testsuite .
Jeremy Phelps48028ab2017-03-28 15:38:24 -0500118 export REPO="nexus3.onap.org:10003"
Jerry Floodb7e2fe22017-03-24 14:26:37 -0400119 docker tag openecomp/testsuite:latest $REPO/openecomp/testsuite:1.0-STAGING-latest
Jerry Flood4b202392017-03-24 11:33:32 -0400120 docker push $REPO/openecomp/testsuite:1.0-STAGING-latest
jf9860f9cfaf42017-02-23 19:39:39 -0500121
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700122 publishers:
123 - infra-shiplogs:
124 maven-version: '{maven-version}'
125
jf9860f9cfaf42017-02-23 19:39:39 -0500126- job-template:
127 name: '{project-name}-{stream}-2scm-docker-shell-daily'
128 project-type: freestyle
129 node: 'ubuntu1604-docker-8c-8g'
130
131 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700132 - infra-properties:
jf9860f9cfaf42017-02-23 19:39:39 -0500133 build-days-to-keep: '{build-days-to-keep}'
134
135 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700136 - infra-parameters:
jf9860f9cfaf42017-02-23 19:39:39 -0500137 project: '{project}'
138 branch: '{branch}'
139 refspec: 'refs/heads/{branch}'
140 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800141 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800142 maven-version: '{maven-version}'
jf9860f9cfaf42017-02-23 19:39:39 -0500143
144 scm:
145 - gerrit-trigger-scm:
146 refspec: ''
147 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500148 submodule-recursive: '{submodule-recursive}'
jf9860f9cfaf42017-02-23 19:39:39 -0500149 - git-extra-project:
150 project: '{extra-project1}'
151 refspec: '{extra-refspec1}'
152 branch: '{extra-branch1}'
153 checkout-dir: '{checkout-dir1}'
154 - git-extra-project:
155 project: '{extra-project2}'
156 refspec: '{extra-refspec2}'
157 branch: '{extra-branch2}'
158 checkout-dir: '{checkout-dir2}'
159
160 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700161 - infra-wrappers:
jf9860f9cfaf42017-02-23 19:39:39 -0500162 build-timeout: '{build-timeout}'
163
164 triggers:
165 # 12 AM UTC
166 - timed: 'H 12 * * *'
167 - gerrit-trigger-release-manually:
168 server: '{server-name}'
169 project: '{project}'
170 branch: '{branch}'
171
172 builders:
173
174 - provide-maven-settings:
175 global-settings-file: 'global-settings'
176 settings-file: '{mvn-settings}'
177
Jerry Floodb6850ad2017-03-29 09:36:25 -0400178 - inject:
179 properties-file: version.properties
180
jf9860f9cfaf42017-02-23 19:39:39 -0500181 - docker-login
182
Jerry Floodffab4f72017-05-02 16:00:03 -0400183 - shell: '{script}'
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700184
185 publishers:
186 - infra-shiplogs:
187 maven-version: '{maven-version}'
Jerry Floodffab4f72017-05-02 16:00:03 -0400188
189- job-template:
190 name: '{project-name}-{stream}-3scm-docker-shell-daily'
191 project-type: freestyle
192 node: 'ubuntu1604-docker-8c-8g'
193
194 properties:
195 - infra-properties:
196 build-days-to-keep: '{build-days-to-keep}'
197
198 parameters:
199 - infra-parameters:
200 project: '{project}'
201 branch: '{branch}'
202 refspec: 'refs/heads/{branch}'
203 artifacts: '{archive-artifacts}'
204 - maven-exec:
205 maven-version: '{maven-version}'
206
207 scm:
208 - gerrit-trigger-scm:
209 refspec: ''
210 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500211 submodule-recursive: '{submodule-recursive}'
Jerry Floodffab4f72017-05-02 16:00:03 -0400212 - git-extra-project:
213 project: '{extra-project1}'
214 refspec: '{extra-refspec1}'
215 branch: '{extra-branch1}'
216 checkout-dir: '{checkout-dir1}'
217 - git-extra-project:
218 project: '{extra-project2}'
219 refspec: '{extra-refspec2}'
220 branch: '{extra-branch2}'
221 checkout-dir: '{checkout-dir2}'
222 - git-extra-project:
223 project: '{extra-project3}'
224 refspec: '{extra-refspec3}'
225 branch: '{extra-branch3}'
226 checkout-dir: '{checkout-dir3}'
227
228 wrappers:
229 - infra-wrappers:
230 build-timeout: '{build-timeout}'
231
232 triggers:
233 # 12 AM UTC
234 - timed: 'H 12 * * *'
235 - gerrit-trigger-release-manually:
236 server: '{server-name}'
237 project: '{project}'
238 branch: '{branch}'
239
240 builders:
241
242 - provide-maven-settings:
243 global-settings-file: 'global-settings'
244 settings-file: '{mvn-settings}'
245
246 - inject:
247 properties-file: version.properties
248
249 - docker-login
250
251 - shell: '{script}'
252
253 publishers:
254 - infra-shiplogs:
255 maven-version: '{maven-version}'
256