blob: 966ecb324e840f05523c825ec7cf669223140068 [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 for 2 SCMs
75 #
76 # The purpose of this job template is to run:
77 # 1. inject a version properties file
78 # 2. login into the docker registry
79 # 4. run a specified shell script
80 #
81 # Required Variables:
82 # branch: git branch (eg. stable/lithium or master)
83
jf9860f9cfaf42017-02-23 19:39:39 -050084 name: '{project-name}-{stream}-2scm-docker-shell-daily'
85 project-type: freestyle
86 node: 'ubuntu1604-docker-8c-8g'
87
88 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070089 - infra-properties:
jf9860f9cfaf42017-02-23 19:39:39 -050090 build-days-to-keep: '{build-days-to-keep}'
91
92 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070093 - infra-parameters:
jf9860f9cfaf42017-02-23 19:39:39 -050094 project: '{project}'
95 branch: '{branch}'
96 refspec: 'refs/heads/{branch}'
97 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -080098 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -080099 maven-version: '{maven-version}'
jf9860f9cfaf42017-02-23 19:39:39 -0500100
101 scm:
102 - gerrit-trigger-scm:
103 refspec: ''
104 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500105 submodule-recursive: '{submodule-recursive}'
jf9860f9cfaf42017-02-23 19:39:39 -0500106 - git-extra-project:
107 project: '{extra-project1}'
108 refspec: '{extra-refspec1}'
109 branch: '{extra-branch1}'
110 checkout-dir: '{checkout-dir1}'
111 - git-extra-project:
112 project: '{extra-project2}'
113 refspec: '{extra-refspec2}'
114 branch: '{extra-branch2}'
115 checkout-dir: '{checkout-dir2}'
116
117 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700118 - infra-wrappers:
jf9860f9cfaf42017-02-23 19:39:39 -0500119 build-timeout: '{build-timeout}'
120
121 triggers:
122 # 12 AM UTC
123 - timed: 'H 12 * * *'
124 - gerrit-trigger-release-manually:
125 server: '{server-name}'
126 project: '{project}'
127 branch: '{branch}'
128
129 builders:
jf9860f9cfaf42017-02-23 19:39:39 -0500130 - provide-maven-settings:
131 global-settings-file: 'global-settings'
132 settings-file: '{mvn-settings}'
Jerry Floodb6850ad2017-03-29 09:36:25 -0400133 - inject:
134 properties-file: version.properties
jf9860f9cfaf42017-02-23 19:39:39 -0500135 - docker-login
Jerry Floodffab4f72017-05-02 16:00:03 -0400136 - shell: '{script}'
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700137 publishers:
138 - infra-shiplogs:
139 maven-version: '{maven-version}'
Jerry Floodffab4f72017-05-02 16:00:03 -0400140
141- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800142 # Job template for docker daily jobs for 3 SCMs
143 #
144 # The purpose of this job template is to run:
145 # 1. inject a version properties file
146 # 2. login into the docker registry
147 # 4. run a specified shell script
148 #
149 # Required Variables:
150 # branch: git branch (eg. stable/lithium or master)
151
Jerry Floodffab4f72017-05-02 16:00:03 -0400152 name: '{project-name}-{stream}-3scm-docker-shell-daily'
153 project-type: freestyle
154 node: 'ubuntu1604-docker-8c-8g'
155
156 properties:
157 - infra-properties:
158 build-days-to-keep: '{build-days-to-keep}'
159
160 parameters:
161 - infra-parameters:
162 project: '{project}'
163 branch: '{branch}'
164 refspec: 'refs/heads/{branch}'
165 artifacts: '{archive-artifacts}'
166 - maven-exec:
167 maven-version: '{maven-version}'
168
169 scm:
170 - gerrit-trigger-scm:
171 refspec: ''
172 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500173 submodule-recursive: '{submodule-recursive}'
Jerry Floodffab4f72017-05-02 16:00:03 -0400174 - git-extra-project:
175 project: '{extra-project1}'
176 refspec: '{extra-refspec1}'
177 branch: '{extra-branch1}'
178 checkout-dir: '{checkout-dir1}'
179 - git-extra-project:
180 project: '{extra-project2}'
181 refspec: '{extra-refspec2}'
182 branch: '{extra-branch2}'
183 checkout-dir: '{checkout-dir2}'
184 - git-extra-project:
185 project: '{extra-project3}'
186 refspec: '{extra-refspec3}'
187 branch: '{extra-branch3}'
188 checkout-dir: '{checkout-dir3}'
189
190 wrappers:
191 - infra-wrappers:
192 build-timeout: '{build-timeout}'
193
194 triggers:
195 # 12 AM UTC
196 - timed: 'H 12 * * *'
197 - gerrit-trigger-release-manually:
198 server: '{server-name}'
199 project: '{project}'
200 branch: '{branch}'
201
202 builders:
Jerry Floodffab4f72017-05-02 16:00:03 -0400203 - provide-maven-settings:
204 global-settings-file: 'global-settings'
205 settings-file: '{mvn-settings}'
Jerry Floodffab4f72017-05-02 16:00:03 -0400206 - inject:
207 properties-file: version.properties
Jerry Floodffab4f72017-05-02 16:00:03 -0400208 - docker-login
Jerry Floodffab4f72017-05-02 16:00:03 -0400209 - shell: '{script}'
Jerry Floodffab4f72017-05-02 16:00:03 -0400210 publishers:
211 - infra-shiplogs:
212 maven-version: '{maven-version}'