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