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