Fix lint errors
[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       - 'dmm-csit-verify-func-{stream}-{os}-virl'
25
26     project: 'dmm'
27     os:
28       - ubuntu1604:
29           repo-os-part: 'ubuntu.xenial.main'
30
31     stream:
32       - master:
33           branch: 'master'
34
35 - job-template:
36     name: 'dmm-verify-{stream}-checkstyle'
37
38     project-type: freestyle
39     node: '{os}-basebuild-4c-4g'
40     concurrent: true
41
42     logrotate:
43       daysToKeep: '{build-days-to-keep}'
44       numToKeep: '{build-num-to-keep}'
45       artifactDaysToKeep: '{build-artifact-days-to-keep}'
46       artifactNumToKeep: '{build-artifact-num-to-keep}'
47
48     parameters:
49       - project-parameter:
50           project: 'dmm'
51       - gerrit-parameter:
52           branch: '{branch}'
53       - os-parameter:
54           os: '{os}'
55
56     scm:
57       - gerrit-trigger-scm:
58           credentials-id: 'jenkins-gerrit-credentials'
59           refspec: '$GERRIT_REFSPEC'
60           choosing-strategy: 'gerrit'
61
62     wrappers:
63       - fdio-infra-wrappers:
64           build-timeout: '{build-timeout}'
65
66     triggers:
67       - gerrit-trigger-patch-submitted:
68           name: 'dmm'
69           branch: '{branch}'
70
71     builders:
72       - shell:
73           !include-raw-escape: include-raw-dmm-test-checkstyle.sh
74
75     publishers:
76       - fdio-infra-shiplogs:
77           maven-version: 'mvn33-new'
78
79 - job-template:
80     name: 'dmm-verify-{stream}-{os}'
81
82     project-type: freestyle
83     node: '{os}-basebuild-4c-4g'
84     concurrent: true
85
86     logrotate:
87       daysToKeep: '{build-days-to-keep}'
88       numToKeep: '{build-num-to-keep}'
89       artifactDaysToKeep: '{build-artifact-days-to-keep}'
90       artifactNumToKeep: '{build-artifact-num-to-keep}'
91
92     parameters:
93       - project-parameter:
94           project: 'dmm'
95       - gerrit-parameter:
96           branch: '{branch}'
97       - os-parameter:
98           os: '{os}'
99
100     scm:
101       - gerrit-trigger-scm:
102           credentials-id: 'jenkins-gerrit-credentials'
103           refspec: '$GERRIT_REFSPEC'
104           choosing-strategy: 'gerrit'
105
106     wrappers:
107       - fdio-infra-wrappers:
108           build-timeout: '{build-timeout}'
109
110     triggers:
111       - gerrit-trigger-patch-submitted:
112           name: 'dmm'
113           branch: '{branch}'
114
115     builders:
116       - shell:
117           !include-raw-escape: include-raw-build.sh
118
119     publishers:
120       - fdio-infra-shiplogs:
121           maven-version: 'mvn33-new'
122
123 - job-template:
124     name: 'dmm-merge-{stream}-{os}'
125
126     project-type: freestyle
127     node: '{os}-basebuild-4c-4g'
128
129     logrotate:
130       daysToKeep: '{build-days-to-keep}'
131       numToKeep: '{build-num-to-keep}'
132       artifactDaysToKeep: '{build-artifact-days-to-keep}'
133       artifactNumToKeep: '{build-artifact-num-to-keep}'
134
135     parameters:
136       - project-parameter:
137           project: 'dmm'
138       - gerrit-parameter:
139           branch: '{branch}'
140       - os-parameter:
141           os: '{os}'
142
143     scm:
144       - gerrit-trigger-scm:
145           credentials-id: 'jenkins-gerrit-credentials'
146           refspec: ''
147           choosing-strategy: 'default'
148
149     wrappers:
150       - fdio-infra-wrappers:
151           build-timeout: '{build-timeout}'
152
153     triggers:
154       - gerrit-trigger-patch-merged:
155           name: 'dmm'
156           branch: '{branch}'
157
158     builders:
159       - shell:
160           !include-raw-escape: include-raw-build.sh
161
162     publishers:
163       - fdio-infra-shiplogs:
164           maven-version: 'mvn33-new'
165
166 - job-template:
167     name: 'dmm-csit-verify-func-{stream}-{os}-virl'
168
169     project-type: freestyle
170     node: '{os}-basebuild-4c-4g'
171     concurrent: true
172
173     logrotate:
174       daysToKeep: '{build-days-to-keep}'
175       numToKeep: '{build-num-to-keep}'
176       artifactDaysToKeep: '{build-artifact-days-to-keep}'
177       artifactNumToKeep: '{build-artifact-num-to-keep}'
178
179     parameters:
180       - project-parameter:
181           project: 'dmm'
182       - gerrit-parameter:
183           branch: '{branch}'
184
185     scm:
186       - gerrit-trigger-scm:
187           credentials-id: 'jenkins-gerrit-credentials'
188           refspec: '$GERRIT_REFSPEC'
189           choosing-strategy: 'gerrit'
190
191     wrappers:
192       - fdio-infra-wrappers:
193           build-timeout: '{build-timeout}'
194
195     triggers:
196       - gerrit-trigger-manually-triggered:
197           name: 'dmm'
198           branch: '{branch}'
199           comment-trigger-value: 'verify-dmm-func'
200
201     builders:
202       - shell:
203           !include-raw-escape: include-raw-dmm-csit-functional-virl.sh
204
205     publishers:
206       - archive-artifacts:
207           artifacts: 'csit/report.html, csit/log.html, csit/output.xml'
208           latest-only: false
209
210       - robot-report:
211           output-path: 'csit'
212
213       - fdio-infra-shiplogs:
214           maven-version: 'mvn33-new'