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