Merge "Modify logs publisher"
[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       - lf-infra-publish
98
99 - job-template:
100     name: 'dmm-verify-{stream}-{os}'
101
102     project-type: freestyle
103     node: '{os}-builder-4c-4g'
104     concurrent: true
105
106     build-discarder:
107       daysToKeep: '{build-days-to-keep}'
108       numToKeep: '{build-num-to-keep}'
109       artifactDaysToKeep: '{build-artifact-days-to-keep}'
110       artifactNumToKeep: '{build-artifact-num-to-keep}'
111
112     parameters:
113       - project-parameter:
114           project: 'dmm'
115       - gerrit-parameter:
116           branch: '{branch}'
117       - os-parameter:
118           os: '{os}'
119
120     scm:
121       - gerrit-trigger-scm:
122           credentials-id: 'jenkins-gerrit-credentials'
123           refspec: '$GERRIT_REFSPEC'
124           choosing-strategy: 'gerrit'
125
126     wrappers:
127       - fdio-infra-wrappers:
128           build-timeout: '{build-timeout}'
129
130     triggers:
131       - gerrit-trigger-patch-submitted:
132           name: 'dmm'
133           branch: '{branch}'
134
135     builders:
136       - shell:
137           !include-raw-escape: include-raw-build.sh
138
139     publishers:
140       - lf-infra-publish
141
142 - job-template:
143     name: 'dmm-merge-{stream}-{os}'
144
145     project-type: freestyle
146     node: '{os}-builder-4c-4g'
147     build-discarder:
148       daysToKeep: '{build-days-to-keep}'
149       numToKeep: '{build-num-to-keep}'
150       artifactDaysToKeep: '{build-artifact-days-to-keep}'
151       artifactNumToKeep: '{build-artifact-num-to-keep}'
152
153     parameters:
154       - project-parameter:
155           project: 'dmm'
156       - gerrit-parameter:
157           branch: '{branch}'
158       - os-parameter:
159           os: '{os}'
160
161     scm:
162       - gerrit-trigger-scm:
163           credentials-id: 'jenkins-gerrit-credentials'
164           refspec: ''
165           choosing-strategy: 'default'
166
167     wrappers:
168       - fdio-infra-wrappers:
169           build-timeout: '{build-timeout}'
170
171     triggers:
172       - gerrit-trigger-patch-merged:
173           name: 'dmm'
174           branch: '{branch}'
175
176     builders:
177       - shell:
178           !include-raw-escape: include-raw-build.sh
179
180     publishers:
181       - lf-infra-publish
182
183 - job-template:
184     name: 'dmm-csit-verify-func-{stream}-{os}-virl'
185
186     project-type: freestyle
187     node: '{os}-builder-4c-4g'
188     concurrent: true
189     archive-artifacts: 'csit/archive/*.*'
190     latest-only: false
191
192     build-discarder:
193       daysToKeep: '{build-days-to-keep}'
194       numToKeep: '{build-num-to-keep}'
195       artifactDaysToKeep: '{build-artifact-days-to-keep}'
196       artifactNumToKeep: '{build-artifact-num-to-keep}'
197
198     parameters:
199       - project-parameter:
200           project: 'dmm'
201       - gerrit-parameter:
202           branch: '{branch}'
203       - string:
204           name: ARCHIVE_ARTIFACTS
205           default: '{archive-artifacts}'
206           description: Artifacts to archive to the logs server.
207
208     scm:
209       - gerrit-trigger-scm:
210           credentials-id: 'jenkins-gerrit-credentials'
211           refspec: '$GERRIT_REFSPEC'
212           choosing-strategy: 'gerrit'
213
214     wrappers:
215       - fdio-infra-wrappers:
216           build-timeout: '{build-timeout}'
217
218     triggers:
219       - gerrit-trigger-patch-submitted:
220           name: 'dmm'
221           branch: '{branch}'
222
223     builders:
224       - shell:
225           !include-raw-escape: include-raw-dmm-csit-functional-virl.sh
226
227     publishers:
228       - robot-report:
229           output-path: 'csit'
230       - lf-infra-publish
231
232 - project:
233     name: dmm-info
234     project-name: dmm
235     jobs:
236       - gerrit-info-yaml-verify
237     build-node: centos7-builder-4c-4g
238     project: dmm
239     branch: master