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       - 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     archive-artifacts: 'csit/archive/*.*'
193     latest-only: false
194
195     build-discarder:
196       daysToKeep: '{build-days-to-keep}'
197       numToKeep: '{build-num-to-keep}'
198       artifactDaysToKeep: '{build-artifact-days-to-keep}'
199       artifactNumToKeep: '{build-artifact-num-to-keep}'
200
201     parameters:
202       - project-parameter:
203           project: 'dmm'
204       - gerrit-parameter:
205           branch: '{branch}'
206       - string:
207           name: ARCHIVE_ARTIFACTS
208           default: '{archive-artifacts}'
209           description: Artifacts to archive to the logs server.
210
211     scm:
212       - gerrit-trigger-scm:
213           credentials-id: 'jenkins-gerrit-credentials'
214           refspec: '$GERRIT_REFSPEC'
215           choosing-strategy: 'gerrit'
216
217     wrappers:
218       - fdio-infra-wrappers:
219           build-timeout: '{build-timeout}'
220
221     triggers:
222       - gerrit-trigger-patch-submitted:
223           name: 'dmm'
224           branch: '{branch}'
225
226     builders:
227       - shell:
228           !include-raw-escape: include-raw-dmm-csit-functional-virl.sh
229
230     publishers:
231       - robot-report:
232           output-path: 'csit'
233
234       - fdio-infra-shiplogs:
235           maven-version: 'mvn33-new'
236
237 - project:
238     name: dmm-info
239     project-name: dmm
240     jobs:
241       - gerrit-info-yaml-verify
242     build-node: centos7-builder-4c-4g
243     project: dmm
244     branch: master