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