update CI scenario for functest
[releng.git] / jjb / functest / functest.yml
1 - project:
2     name: functest
3
4     jobs:
5         - 'functest-openstack-bench-test'
6         - 'functest-openstack-tempest-smoke-test'
7         - 'functest-odl-test'
8         - 'functest-vims-test'
9         - 'functest-vping-test'
10         - 'functest-daily-{stream}'
11         - 'functest-merge'
12         - 'functest-verify'
13
14     # stream:    branch with - in place of / (eg. stable-helium)
15     # branch:    branch (eg. stable/helium)
16     stream:
17         - master:
18             branch: 'master'
19
20     project: 'functest'
21     somevar: 'foo'
22
23 - job-template:
24     name: functest-openstack-bench-test
25
26     project-type: freestyle
27
28     node: opnfv-jump-2
29
30     logrotate:
31         daysToKeep: 30
32         numToKeep: 10
33         artifactDaysToKeep: -1
34         artifactNumToKeep: -1
35
36     builders:
37         - shell: |
38             python .functest/run_rally.py all
39
40 - job-template:
41     name: functest-openstack-tempest-smoke-test
42
43     project-type: freestyle
44
45     node: opnfv-jump-2
46
47     logrotate:
48         daysToKeep: 30
49         numToKeep: 10
50         artifactDaysToKeep: -1
51         artifactNumToKeep: -1
52
53     builders:
54         - shell: |
55             rally verify start smoke
56             rally verify list
57             
58
59 - job-template:
60     name: functest-odl-test
61
62     project-type: freestyle
63
64     node: opnfv-jump-2
65
66     logrotate:
67         daysToKeep: 30
68         numToKeep: 10
69         artifactDaysToKeep: -1
70         artifactNumToKeep: -1
71
72     builders:
73         - shell: |
74             echo "put your CI scenario here"
75
76 - job-template:
77     name: functest-vims-test
78
79     project-type: freestyle
80
81     node: opnfv-jump-2
82
83     logrotate:
84         daysToKeep: 30
85         numToKeep: 10
86         artifactDaysToKeep: -1
87         artifactNumToKeep: -1
88
89     builders:
90         - shell: |
91             echo "put your CI scenario here"
92
93
94 - job-template:
95     name: functest-vping-test
96
97     project-type: freestyle
98     
99     node: opnfv-jump-2
100
101     logrotate:
102         daysToKeep: 30
103         numToKeep: 10
104         artifactDaysToKeep: -1
105         artifactNumToKeep: -1
106
107     builders:
108         - shell: |
109             python ./.functest/vPing/vPing.py
110
111
112
113 - job-template:
114     name: 'functest-daily-{stream}'
115
116     node: master
117
118     # Job template for daily builders
119     #
120     # Required Variables:
121     #     stream:    branch with - in place of / (eg. stable)
122     #     branch:    branch (eg. stable)
123
124     project-type: freestyle
125     varsetabove: '{somevar}'
126
127     logrotate:
128         daysToKeep: '{build-days-to-keep}'
129         numToKeep: '{build-num-to-keep}'
130         artifactDaysToKeep: '{build-artifact-days-to-keep}'
131         artifactNumToKeep: '{build-artifact-num-to-keep}'
132
133     parameters:
134         - project-parameter:
135             project: '{project}'
136
137     scm:
138         - git-scm:
139             credentials-id: '{ssh-credentials}'
140             refspec: ''
141             branch: '{branch}'
142
143     wrappers:
144         - ssh-agent-credentials:
145             user: '{ssh-credentials}'
146
147     triggers:
148         - timed: 'H H * * *'
149
150     prebuilders:
151         - test-macro
152
153     builders:
154         - shell:
155             !include-raw docu-build.sh
156
157     postbuilders:
158         - test-macro
159
160 - job-template:
161     name: 'functest-verify'
162
163     node: master
164
165     project-type: freestyle
166
167     logrotate:
168         daysToKeep: 30
169         numToKeep: 10
170         artifactDaysToKeep: -1
171         artifactNumToKeep: -1
172
173     parameters:
174         - project-parameter:
175             project: '{project}'
176         - gerrit-parameter:
177             branch: 'master'
178     scm:
179         - gerrit-trigger-scm:
180             credentials-id: '{ssh-credentials}'
181             refspec: '$GERRIT_REFSPEC'
182             choosing-strategy: 'gerrit'
183
184     wrappers:
185         - ssh-agent-credentials:
186             user: '{ssh-credentials}'
187
188     triggers:
189         - gerrit:
190             trigger-on:
191                 - patchset-created-event:
192                     exclude-drafts: 'false'
193                     exclude-trivial-rebase: 'false'
194                     exclude-no-code-change: 'false'
195                 - draft-published-event
196                 - comment-added-contains-event:
197                     comment-contains-value: 'recheck'
198                 - comment-added-contains-event:
199                     comment-contains-value: 'reverify'
200             projects:
201               - project-compare-type: 'ANT'
202                 project-pattern: 'functest'
203                 branches:
204                   - branch-compare-type: 'ANT'
205                     branch-pattern: '**/master'
206
207     builders:
208         - shell:
209             !include-raw docu-verify.sh
210
211 - job-template:
212     name: 'functest-merge'
213
214     node: master
215
216     # builder-merge job to run JJB update
217     #
218     # This job's purpose is to update all the JJB
219
220     project-type: freestyle
221
222     logrotate:
223         daysToKeep: 30
224         numToKeep: 40
225         artifactDaysToKeep: -1
226         artifactNumToKeep: 5
227
228     parameters:
229         - project-parameter:
230             project: '{project}'
231         - gerrit-parameter:
232             branch: 'master'
233
234     scm:
235         - gerrit-trigger-scm:
236             credentials-id: '{ssh-credentials}'
237             refspec: ''
238             choosing-strategy: 'default'
239
240     wrappers:
241         - ssh-agent-credentials:
242             user: '{ssh-credentials}'
243
244     triggers:
245         - gerrit:
246             trigger-on:
247                 - change-merged-event
248                 - comment-added-contains-event:
249                     comment-contains-value: 'remerge'
250             projects:
251               - project-compare-type: 'ANT'
252                 project-pattern: 'functest'
253                 branches:
254                     - branch-compare-type: 'ANT'
255                       branch-pattern: '**/master'
256
257     builders:
258         - shell:
259             !include-raw docu-build.sh
260