Merge "Add INFO.yaml verify job"
[ci-management.git] / jjb / dmm / dmm.yaml
1 ---
2 #########################################################################
3 #
4 # Copyright (c) 2018 Huawei Technologies Co.,Ltd.
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at:
8 #
9 #     http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 #########################################################################
17
18 - project:
19     name: dmm
20     jobs:
21       - 'dmm-verify-{stream}-checkstyle'
22       - 'dmm-verify-{stream}-{os}'
23       - 'dmm-merge-{stream}-{os}'
24
25     project: 'dmm'
26     os: 'ubuntu1604'
27
28     stream:
29       - master:
30           branch: 'master'
31       - non-dpdk:
32           branch: 'none-dpdk'
33       - DMM-2:
34           branch: 'DMM-2'
35
36 - project:
37     name: dmm-csit
38     jobs:
39       - 'dmm-csit-verify-func-{stream}-{os}-virl'
40
41     project: 'dmm'
42     os: 'ubuntu1604'
43
44     stream:
45       - master:
46           branch: 'master'
47       - DMM-2:
48           branch: 'DMM-2'
49
50 - project:
51     name: dmm-view
52     views:
53       - project-view
54     project-name: dmm
55
56 - job-template:
57     name: 'dmm-verify-{stream}-checkstyle'
58
59     project-type: freestyle
60     node: '{os}-builder-4c-4g'
61     concurrent: true
62
63     build-discarder:
64       daysToKeep: '{build-days-to-keep}'
65       numToKeep: '{build-num-to-keep}'
66       artifactDaysToKeep: '{build-artifact-days-to-keep}'
67       artifactNumToKeep: '{build-artifact-num-to-keep}'
68
69     parameters:
70       - project-parameter:
71           project: 'dmm'
72       - gerrit-parameter:
73           branch: '{branch}'
74       - os-parameter:
75           os: '{os}'
76
77     scm:
78       - gerrit-trigger-scm:
79           credentials-id: 'jenkins-gerrit-credentials'
80           refspec: '$GERRIT_REFSPEC'
81           choosing-strategy: 'gerrit'
82
83     wrappers:
84       - fdio-infra-wrappers:
85           build-timeout: '{build-timeout}'
86
87     triggers:
88       - gerrit-trigger-patch-submitted:
89           name: 'dmm'
90           branch: '{branch}'
91
92     builders:
93       - shell:
94           !include-raw-escape: include-raw-dmm-test-checkstyle.sh
95
96     publishers:
97       - fdio-infra-shiplogs:
98           maven-version: 'mvn33-new'
99
100 - job-template:
101     name: 'dmm-verify-{stream}-{os}'
102
103     project-type: freestyle
104     node: '{os}-builder-4c-4g'
105     concurrent: true
106
107     build-discarder:
108       daysToKeep: '{build-days-to-keep}'
109       numToKeep: '{build-num-to-keep}'
110       artifactDaysToKeep: '{build-artifact-days-to-keep}'
111       artifactNumToKeep: '{build-artifact-num-to-keep}'
112
113     parameters:
114       - project-parameter:
115           project: 'dmm'
116       - gerrit-parameter:
117           branch: '{branch}'
118       - os-parameter:
119           os: '{os}'
120
121     scm:
122       - gerrit-trigger-scm:
123           credentials-id: 'jenkins-gerrit-credentials'
124           refspec: '$GERRIT_REFSPEC'
125           choosing-strategy: 'gerrit'
126
127     wrappers:
128       - fdio-infra-wrappers:
129           build-timeout: '{build-timeout}'
130
131     triggers:
132       - gerrit-trigger-patch-submitted:
133           name: 'dmm'
134           branch: '{branch}'
135
136     builders:
137       - shell:
138           !include-raw-escape: include-raw-build.sh
139
140     publishers:
141       - fdio-infra-shiplogs:
142           maven-version: 'mvn33-new'
143
144 - job-template:
145     name: 'dmm-merge-{stream}-{os}'
146
147     project-type: freestyle
148     node: '{os}-builder-4c-4g'
149     build-discarder:
150       daysToKeep: '{build-days-to-keep}'
151       numToKeep: '{build-num-to-keep}'
152       artifactDaysToKeep: '{build-artifact-days-to-keep}'
153       artifactNumToKeep: '{build-artifact-num-to-keep}'
154
155     parameters:
156       - project-parameter:
157           project: 'dmm'
158       - gerrit-parameter:
159           branch: '{branch}'
160       - os-parameter:
161           os: '{os}'
162
163     scm:
164       - gerrit-trigger-scm:
165           credentials-id: 'jenkins-gerrit-credentials'
166           refspec: ''
167           choosing-strategy: 'default'
168
169     wrappers:
170       - fdio-infra-wrappers:
171           build-timeout: '{build-timeout}'
172
173     triggers:
174       - gerrit-trigger-patch-merged:
175           name: 'dmm'
176           branch: '{branch}'
177
178     builders:
179       - shell:
180           !include-raw-escape: include-raw-build.sh
181
182     publishers:
183       - fdio-infra-shiplogs:
184           maven-version: 'mvn33-new'
185
186 - job-template:
187     name: 'dmm-csit-verify-func-{stream}-{os}-virl'
188
189     project-type: freestyle
190     node: '{os}-builder-4c-4g'
191     concurrent: true
192
193     build-discarder:
194       daysToKeep: '{build-days-to-keep}'
195       numToKeep: '{build-num-to-keep}'
196       artifactDaysToKeep: '{build-artifact-days-to-keep}'
197       artifactNumToKeep: '{build-artifact-num-to-keep}'
198
199     parameters:
200       - project-parameter:
201           project: 'dmm'
202       - gerrit-parameter:
203           branch: '{branch}'
204
205     scm:
206       - gerrit-trigger-scm:
207           credentials-id: 'jenkins-gerrit-credentials'
208           refspec: '$GERRIT_REFSPEC'
209           choosing-strategy: 'gerrit'
210
211     wrappers:
212       - fdio-infra-wrappers:
213           build-timeout: '{build-timeout}'
214
215     triggers:
216       - gerrit-trigger-patch-submitted:
217           name: 'dmm'
218           branch: '{branch}'
219
220     builders:
221       - shell:
222           !include-raw-escape: include-raw-dmm-csit-functional-virl.sh
223
224     publishers:
225       - archive-artifacts:
226           artifacts: 'csit/archive/*.*'
227           latest-only: false
228
229       - robot-report:
230           output-path: 'csit'
231
232       - fdio-infra-shiplogs:
233           maven-version: 'mvn33-new'
234
235 - project:
236     name: dmm-info
237     project-name: dmm
238     jobs:
239       - gerrit-info-yaml-verify
240     build-node: centos7-builder-4c-4g
241     project: dmm
242     branch: master