dmm.yaml revision 79f0e599
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- job-template:
36    name: 'dmm-verify-{stream}-checkstyle'
37
38    project-type: freestyle
39    node: '{os}-builder-8c-8g'
40    concurrent: true
41
42    build-discarder:
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}-builder-8c-8g'
84    concurrent: true
85
86    build-discarder:
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}-builder-8c-8g'
128    build-discarder:
129      daysToKeep: '{build-days-to-keep}'
130      numToKeep: '{build-num-to-keep}'
131      artifactDaysToKeep: '{build-artifact-days-to-keep}'
132      artifactNumToKeep: '{build-artifact-num-to-keep}'
133
134    parameters:
135      - project-parameter:
136          project: 'dmm'
137      - gerrit-parameter:
138          branch: '{branch}'
139      - os-parameter:
140          os: '{os}'
141
142    scm:
143      - gerrit-trigger-scm:
144          credentials-id: 'jenkins-gerrit-credentials'
145          refspec: ''
146          choosing-strategy: 'default'
147
148    wrappers:
149      - fdio-infra-wrappers:
150          build-timeout: '{build-timeout}'
151
152    triggers:
153      - gerrit-trigger-patch-merged:
154          name: 'dmm'
155          branch: '{branch}'
156
157    builders:
158      - shell:
159          !include-raw-escape: include-raw-build.sh
160
161    publishers:
162      - fdio-infra-shiplogs:
163          maven-version: 'mvn33-new'
164
165- job-template:
166    name: 'dmm-csit-verify-func-master-{os}-virl'
167
168    project-type: freestyle
169    node: '{os}-builder-8c-8g'
170    concurrent: true
171
172    build-discarder:
173      daysToKeep: '{build-days-to-keep}'
174      numToKeep: '{build-num-to-keep}'
175      artifactDaysToKeep: '{build-artifact-days-to-keep}'
176      artifactNumToKeep: '{build-artifact-num-to-keep}'
177
178    parameters:
179      - project-parameter:
180          project: 'dmm'
181      - gerrit-parameter:
182          branch: '{branch}'
183
184    scm:
185      - gerrit-trigger-scm:
186          credentials-id: 'jenkins-gerrit-credentials'
187          refspec: '$GERRIT_REFSPEC'
188          choosing-strategy: 'gerrit'
189
190    wrappers:
191      - fdio-infra-wrappers:
192          build-timeout: '{build-timeout}'
193
194    triggers:
195      - gerrit-trigger-patch-submitted:
196          name: 'dmm'
197          branch: '{branch}'
198
199    builders:
200      - shell:
201          !include-raw-escape: include-raw-dmm-csit-functional-virl.sh
202
203    publishers:
204      - archive-artifacts:
205          artifacts: 'csit/archive/*.*'
206          latest-only: false
207
208      - robot-report:
209          output-path: 'csit'
210
211      - fdio-infra-shiplogs:
212          maven-version: 'mvn33-new'
213