Move vswitchperf-verify job to 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: fuel
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
56     scm:
57         - git-scm:
58             credentials-id: '{ssh-credentials}'
59             refspec: ''
60             branch: '{branch}'
61
62     wrappers:
63         - ssh-agent-credentials:
64             user: '{ssh-credentials}'
65
66     triggers:
67         - timed: 'H H * * *'
68
69     prebuilders:
70         - test-macro
71
72     builders:
73         - shell: |
74             pwd
75             cd src
76             make
77             # run basic sanity test
78             make sanity
79
80     postbuilders:
81         - test-macro
82
83 - job-template:
84     name: 'vswitchperf-verify'
85
86     project-type: freestyle
87     node: ericsson-build
88
89     logrotate:
90         daysToKeep: 30
91         numToKeep: 10
92         artifactDaysToKeep: -1
93         artifactNumToKeep: -1
94
95     parameters:
96         - project-parameter:
97             project: '{project}'
98         - gerrit-parameter:
99             branch: 'master'
100     scm:
101         - gerrit-trigger-scm:
102             credentials-id: '{ssh-credentials}'
103             refspec: '$GERRIT_REFSPEC'
104             choosing-strategy: 'gerrit'
105
106     wrappers:
107         - ssh-agent-credentials:
108             user: '{ssh-credentials}'
109
110     triggers:
111         - gerrit:
112             trigger-on:
113                 - patchset-created-event:
114                     exclude-drafts: 'false'
115                     exclude-trivial-rebase: 'false'
116                     exclude-no-code-change: 'false'
117                 - draft-published-event
118                 - comment-added-contains-event:
119                     comment-contains-value: 'recheck'
120                 - comment-added-contains-event:
121                     comment-contains-value: 'reverify'
122             projects:
123               - project-compare-type: 'ANT'
124                 project-pattern: 'vswitchperf'
125                 branches:
126                   - branch-compare-type: 'ANT'
127                     branch-pattern: '**/master'
128
129     builders:
130         - shell: |
131             pwd
132             cd src
133             make
134             # run basic sanity test
135             make sanity
136
137 - job-template:
138     name: 'vswitchperf-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     node: fuel
146
147     logrotate:
148         daysToKeep: 30
149         numToKeep: 40
150         artifactDaysToKeep: -1
151         artifactNumToKeep: 5
152
153     parameters:
154         - project-parameter:
155             project: '{project}'
156         - gerrit-parameter:
157             branch: 'master'
158
159     scm:
160         - gerrit-trigger-scm:
161             credentials-id: '{ssh-credentials}'
162             refspec: ''
163             choosing-strategy: 'default'
164
165     wrappers:
166         - ssh-agent-credentials:
167             user: '{ssh-credentials}'
168
169     triggers:
170         - gerrit:
171             trigger-on:
172                 - change-merged-event
173                 - comment-added-contains-event:
174                     comment-contains-value: 'remerge'
175             projects:
176               - project-compare-type: 'ANT'
177                 project-pattern: 'vswitchperf'
178                 branches:
179                     - branch-compare-type: 'ANT'
180                       branch-pattern: '**/master'
181
182     builders:
183         - shell: |
184             pwd
185             cd src
186             make