Need to clone from http from ericsson server
[releng.git] / jjb / vswitchperf / vswitchperf.yml
1 - project:
2     name: vswitchperf
3     jobs:
4         - 'vswitchperf-test'
5         - 'vswitchperf-daily-master'
6         - 'vswitchperf-merge'
7         - 'vswitchperf-verify'
8
9     # stream:    branch with - in place of / (eg. stable-helium)
10     # branch:    branch (eg. stable/helium)
11     stream:
12         - master:
13             branch: 'master'
14
15     project: 'vswitchperf'
16     somevar: 'foo'
17
18 - job-template:
19     name: vswitchperf-test
20
21     project-type: freestyle
22
23     logrotate:
24         daysToKeep: 30
25         numToKeep: 10
26         artifactDaysToKeep: -1
27         artifactNumToKeep: -1
28
29     builders:
30         - shell: |
31             echo "Hello world from vswitchperf"
32
33 - job-template:
34     name: 'vswitchperf-daily-master'
35
36     # Job template for daily builders
37     #
38     # Required Variables:
39     #     stream:    branch with - in place of / (eg. stable)
40     #     branch:    branch (eg. stable)
41
42     project-type: freestyle
43     varsetabove: '{somevar}'
44     node: ericsson-build
45
46     logrotate:
47         daysToKeep: '{build-days-to-keep}'
48         numToKeep: '{build-num-to-keep}'
49         artifactDaysToKeep: '{build-artifact-days-to-keep}'
50         artifactNumToKeep: '{build-artifact-num-to-keep}'
51
52     parameters:
53         - project-parameter:
54             project: '{project}'
55         - string:
56             name: GIT_BASE
57             default: https://gerrit.opnfv.org/gerrit/genesis
58
59     scm:
60         - git-scm:
61             credentials-id: '{ssh-credentials}'
62             refspec: ''
63             branch: '{branch}'
64
65     wrappers:
66         - ssh-agent-credentials:
67             user: '{ssh-credentials}'
68
69     triggers:
70         - timed: 'H H * * *'
71
72     prebuilders:
73         - test-macro
74
75     builders:
76         - shell: |
77             pwd
78             cd src
79             make
80             # run basic sanity test
81             make sanity
82
83     postbuilders:
84         - test-macro
85
86 - job-template:
87     name: 'vswitchperf-verify'
88
89     project-type: freestyle
90     node: ericsson-build
91
92     logrotate:
93         daysToKeep: 30
94         numToKeep: 10
95         artifactDaysToKeep: -1
96         artifactNumToKeep: -1
97
98     parameters:
99         - project-parameter:
100             project: '{project}'
101         - gerrit-parameter:
102             branch: 'master'
103         - string:
104             name: GIT_BASE
105             default: https://gerrit.opnfv.org/gerrit/genesis
106     scm:
107         - gerrit-trigger-scm:
108             credentials-id: '{ssh-credentials}'
109             refspec: '$GERRIT_REFSPEC'
110             choosing-strategy: 'gerrit'
111
112     wrappers:
113         - ssh-agent-credentials:
114             user: '{ssh-credentials}'
115
116     triggers:
117         - gerrit:
118             trigger-on:
119                 - patchset-created-event:
120                     exclude-drafts: 'false'
121                     exclude-trivial-rebase: 'false'
122                     exclude-no-code-change: 'false'
123                 - draft-published-event
124                 - comment-added-contains-event:
125                     comment-contains-value: 'recheck'
126                 - comment-added-contains-event:
127                     comment-contains-value: 'reverify'
128             projects:
129               - project-compare-type: 'ANT'
130                 project-pattern: 'vswitchperf'
131                 branches:
132                   - branch-compare-type: 'ANT'
133                     branch-pattern: '**/master'
134
135     builders:
136         - shell: |
137             pwd
138             cd src
139             make
140             # run basic sanity test
141             make sanity
142
143 - job-template:
144     name: 'vswitchperf-merge'
145
146     # builder-merge job to run JJB update
147     #
148     # This job's purpose is to update all the JJB
149
150     project-type: freestyle
151     node: ericsson-build
152
153     logrotate:
154         daysToKeep: 30
155         numToKeep: 40
156         artifactDaysToKeep: -1
157         artifactNumToKeep: 5
158
159     parameters:
160         - project-parameter:
161             project: '{project}'
162         - gerrit-parameter:
163             branch: 'master'
164         - string:
165             name: GIT_BASE
166             default: https://gerrit.opnfv.org/gerrit/genesis
167
168     scm:
169         - gerrit-trigger-scm:
170             credentials-id: '{ssh-credentials}'
171             refspec: ''
172             choosing-strategy: 'default'
173
174     wrappers:
175         - ssh-agent-credentials:
176             user: '{ssh-credentials}'
177
178     triggers:
179         - gerrit:
180             trigger-on:
181                 - change-merged-event
182                 - comment-added-contains-event:
183                     comment-contains-value: 'remerge'
184             projects:
185               - project-compare-type: 'ANT'
186                 project-pattern: 'vswitchperf'
187                 branches:
188                     - branch-compare-type: 'ANT'
189                       branch-pattern: '**/master'
190
191     builders:
192         - shell: |
193             pwd
194             cd src
195             make