jjb: add default logrotate to releng-defaults.yaml
[releng.git] / jjb / qtip / qtip.yml
1 - project:
2     name: qtip
3     jobs:
4         - 'qtip-test'
5         - 'qtip-daily-{stream}'
6         - 'qtip-merge'
7         - 'qtip-verify'
8         - 'qtip-dhrystone-serial-{pod}'
9         - 'qtip-ssl-parallel-{pod}'
10
11     # stream:    branch with - in place of / (eg. stable-helium)
12     # branch:    branch (eg. stable/helium)
13
14     pod:
15         - dell-build:
16            node: 'dell-us-testing-bm-1'
17            installer_type: 'fuel'
18            installer_ip: '10.20.0.2'
19
20     stream:
21         - master:
22             branch: 'master'
23
24     project: 'qtip'
25     somevar: 'foo'
26
27 - job-template:
28     name: qtip-test
29
30     logrotate:
31         daysToKeep: 30
32         numToKeep: 10
33         artifactDaysToKeep: -1
34         artifactNumToKeep: -1
35
36     builders:
37         - shell: |
38             echo "Hello world from qtip"
39
40 - job-template:
41     name: 'qtip-daily-{stream}'
42
43     # Job template for daily builders
44     #
45     # Required Variables:
46     #     stream:    branch with - in place of / (eg. stable)
47     #     branch:    branch (eg. stable)
48
49     varsetabove: '{somevar}'
50
51     parameters:
52         - project-parameter:
53             project: '{project}'
54
55     scm:
56         - git-scm:
57             credentials-id: '{ssh-credentials}'
58             refspec: ''
59             branch: '{branch}'
60
61     triggers:
62         - timed: 'H H * * *'
63
64     prebuilders:
65         - test-macro
66
67     builders:
68         - shell: |
69             pwd
70             find .
71             echo "Hello world from qtip {somevar} daily"
72
73     postbuilders:
74         - test-macro
75
76 - job-template:
77     name: 'qtip-verify'
78
79     logrotate:
80         daysToKeep: 30
81         numToKeep: 10
82         artifactDaysToKeep: -1
83         artifactNumToKeep: -1
84
85     parameters:
86         - project-parameter:
87             project: '{project}'
88         - gerrit-parameter:
89             branch: 'master'
90     scm:
91         - gerrit-trigger-scm:
92             credentials-id: '{ssh-credentials}'
93             refspec: '$GERRIT_REFSPEC'
94             choosing-strategy: 'gerrit'
95
96     triggers:
97         - gerrit:
98             trigger-on:
99                 - patchset-created-event:
100                     exclude-drafts: 'false'
101                     exclude-trivial-rebase: 'false'
102                     exclude-no-code-change: 'false'
103                 - draft-published-event
104                 - comment-added-contains-event:
105                     comment-contains-value: 'recheck'
106                 - comment-added-contains-event:
107                     comment-contains-value: 'reverify'
108             projects:
109               - project-compare-type: 'ANT'
110                 project-pattern: 'qtip'
111                 branches:
112                   - branch-compare-type: 'ANT'
113                     branch-pattern: '**/master'
114
115     builders:
116         - shell: |
117             pwd
118             find .
119             echo "verify logic goes here"
120
121 - job-template:
122     name: 'qtip-merge'
123
124     # builder-merge job to run JJB update
125     #
126     # This job's purpose is to update all the JJB
127
128     parameters:
129         - project-parameter:
130             project: '{project}'
131         - gerrit-parameter:
132             branch: 'master'
133
134     scm:
135         - gerrit-trigger-scm:
136             credentials-id: '{ssh-credentials}'
137             refspec: ''
138             choosing-strategy: 'default'
139
140     triggers:
141         - gerrit:
142             trigger-on:
143                 - change-merged-event
144                 - comment-added-contains-event:
145                     comment-contains-value: 'remerge'
146             projects:
147               - project-compare-type: 'ANT'
148                 project-pattern: 'qtip'
149                 branches:
150                     - branch-compare-type: 'ANT'
151                       branch-pattern: '**/master'
152
153     builders:
154         - shell: |
155             pwd
156             find .
157             echo "merge logic goes here"
158
159 - job-template:
160     name: 'qtip-dhrystone-serial-{pod}'
161
162     disabled: false
163
164     node: '{node}'
165
166     logrotate:
167       daysToKeep: 30
168       numToKeep: 10
169       artifactDaysToKeep: -1
170       artifactNumToKeep: -1
171
172     parameters:
173       - project-parameter:
174           project: '{project}'
175       - string:
176           name: INSTALLER_TYPE
177           default: '{installer_type}'
178           description: "Installer name that is used for deployment."
179       - string:
180           name: INSTALLER_IP
181           default: '{installer_ip}'
182           description: "Installer IP"
183       - string:
184           name: GIT_BASE
185           default: https://gerrit.opnfv.org/gerrit/$PROJECT
186           description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
187
188     scm:
189        - git-scm:
190            credentials-id: '{ssh-credentials}'
191            refspec: ''
192            branch: master
193
194     builders:
195         - 'qtip-fetch-os-cred'
196         - 'qtip-dhrystone-serial'
197
198     triggers:
199       - timed: '0 20 * * *'
200
201 - job-template:
202     name: 'qtip-ssl-parallel-{pod}'
203
204     disabled: false
205
206     node: '{node}'
207
208     logrotate:
209       daysToKeep: 30
210       numToKeep: 10
211       artifactDaysToKeep: -1
212       artifactNumToKeep: -1
213
214     parameters:
215       - project-parameter:
216           project: '{project}'
217       - string:
218           name: INSTALLER_TYPE
219           default: '{installer_type}'
220           description: "Installer name that is used for deployment."
221       - string:
222           name: INSTALLER_IP
223           default: '{installer_ip}'
224           description: "IP address of the installer"
225       - string:
226           name: GIT_BASE
227           default: https://gerrit.opnfv.org/gerrit/$PROJECT
228           description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
229
230     scm:
231        - git-scm:
232            credentials-id: '{ssh-credentials}'
233            refspec: ''
234            branch: master
235
236     builders:
237       - 'qtip-fetch-os-cred'
238       - 'qtip-ssl-parallel'
239
240     triggers:
241       - timed: "@midnight"
242
243 ###########################
244 #biuilder macros
245 ###########################
246 - builder:
247     name: qtip-dhrystone-serial
248
249     builders:
250         - shell: |
251             #! /bin/bash
252             if [[ ! -f $HOME/opnfv-openrc.sh ]]; then
253                echo "Unable to access file $HOME/opnfv-openrc.sh"
254                exit 1
255             fi
256             source $HOME/opnfv-openrc.sh
257             cd $WORKSPACE
258             echo "Running QTIP dhrystone with First Test case"
259             python qtip.py -s compute -b dhrystone_serial.yaml
260
261 - builder:
262     name: qtip-ssl-parallel
263
264     builders:
265         - shell: |
266             #!/bin/bash
267             if [[ ! -f $HOME/opnfv-openrc.sh ]]; then
268                echo "Unable to access file $HOME/opnfv-openrc.sh"
269                exit 1
270             fi
271             source $HOME/opnfv-openrc.sh
272             cd $WORKSPACE
273             echo "Running QTIP dhrystone with Second Test case"
274             python qtip.py -s compute -b ssl_parallel.yaml
275
276 - builder:
277     name: qtip-fetch-os-cred
278     builders:
279         - shell:
280             !include-raw ../../utils/fetch_os_creds.sh