Fix path to gsutil for functest and pharos document upload
[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
154     postbuilders:
155         - test-macro
156
157 - job-template:
158     name: 'functest-verify'
159
160     project-type: freestyle
161
162     logrotate:
163         daysToKeep: 30
164         numToKeep: 10
165         artifactDaysToKeep: -1
166         artifactNumToKeep: -1
167
168     parameters:
169         - project-parameter:
170             project: '{project}'
171         - gerrit-parameter:
172             branch: 'master'
173     scm:
174         - gerrit-trigger-scm:
175             credentials-id: '{ssh-credentials}'
176             refspec: '$GERRIT_REFSPEC'
177             choosing-strategy: 'gerrit'
178
179     wrappers:
180         - ssh-agent-credentials:
181             user: '{ssh-credentials}'
182
183     triggers:
184         - gerrit:
185             trigger-on:
186                 - patchset-created-event:
187                     exclude-drafts: 'false'
188                     exclude-trivial-rebase: 'false'
189                     exclude-no-code-change: 'false'
190                 - draft-published-event
191                 - comment-added-contains-event:
192                     comment-contains-value: 'recheck'
193                 - comment-added-contains-event:
194                     comment-contains-value: 'reverify'
195             projects:
196               - project-compare-type: 'ANT'
197                 project-pattern: 'functest'
198                 branches:
199                   - branch-compare-type: 'ANT'
200                     branch-pattern: '**/master'
201
202     builders:
203         - shell:
204             !include-raw build-docu.sh
205
206 - job-template:
207     name: 'functest-merge'
208
209     # builder-merge job to run JJB update
210     #
211     # This job's purpose is to update all the JJB
212
213     project-type: freestyle
214
215     logrotate:
216         daysToKeep: 30
217         numToKeep: 40
218         artifactDaysToKeep: -1
219         artifactNumToKeep: 5
220
221     parameters:
222         - project-parameter:
223             project: '{project}'
224         - gerrit-parameter:
225             branch: 'master'
226
227     scm:
228         - gerrit-trigger-scm:
229             credentials-id: '{ssh-credentials}'
230             refspec: ''
231             choosing-strategy: 'default'
232
233     wrappers:
234         - ssh-agent-credentials:
235             user: '{ssh-credentials}'
236
237     triggers:
238         - gerrit:
239             trigger-on:
240                 - change-merged-event
241                 - comment-added-contains-event:
242                     comment-contains-value: 'remerge'
243             projects:
244               - project-compare-type: 'ANT'
245                 project-pattern: 'functest'
246                 branches:
247                     - branch-compare-type: 'ANT'
248                       branch-pattern: '**/master'
249
250     builders:
251         - shell: 
252             !include-raw build-docu.sh
253         - shell: |
254            /usr/local/bin/gsutil cp docs/*.pdf gs://artifacts.opnfv.org/functest/docs/
255            /usr/local/bin/gsutil cp docs/*.html gs://artifacts.opnfv.org/functest/docs/
256
257