Merge "Modify the location of the packagecloud files"
[ci-management.git] / jjb / dmm / dmm.yaml
1 #########################################################################
2 #
3 # Copyright (c) 2018 Huawei Technologies Co.,Ltd.
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at:
7 #
8 #     http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 #########################################################################
16
17 - project:
18     name: dmm
19     jobs:
20         - 'dmm-verify-{stream}-{os}'
21         - 'dmm-merge-{stream}-{os}'
22         - 'dmm-csit-verify-func-{stream}-{os}-virl'
23
24     project: 'dmm'
25     os:
26         - ubuntu1404
27     stream:
28         - master:
29             branch: 'master'
30
31 - job-template:
32     name: 'dmm-verify-{stream}-{os}'
33
34     project-type: freestyle
35     node: '{os}-basebuild-4c-4g'
36     concurrent: true
37
38     logrotate:
39         daysToKeep: '{build-days-to-keep}'
40         numToKeep: '{build-num-to-keep}'
41         artifactDaysToKeep: '{build-artifact-days-to-keep}'
42         artifactNumToKeep: '{build-artifact-num-to-keep}'
43
44     parameters:
45         - project-parameter:
46             project: 'dmm'
47         - gerrit-parameter:
48             branch: '{branch}'
49         - os-parameter:
50             os: '{os}'
51
52     scm:
53         - gerrit-trigger-scm:
54             credentials-id: 'jenkins-gerrit-credentials'
55             refspec: '$GERRIT_REFSPEC'
56             choosing-strategy: 'gerrit'
57
58     wrappers:
59         - fdio-infra-wrappers:
60             build-timeout: '{build-timeout}'
61
62     triggers:
63         - gerrit-trigger-patch-submitted:
64             name: 'dmm'
65             branch: '{branch}'
66
67     builders:
68         - shell:
69             !include-raw-escape: include-raw-build.sh
70
71     publishers:
72       - fdio-infra-shiplogs:
73           maven-version: 'mvn33-new'
74
75 - job-template:
76     name: 'dmm-merge-{stream}-{os}'
77
78     project-type: freestyle
79     node: '{os}-basebuild-4c-4g'
80
81     logrotate:
82         daysToKeep: '{build-days-to-keep}'
83         numToKeep: '{build-num-to-keep}'
84         artifactDaysToKeep: '{build-artifact-days-to-keep}'
85         artifactNumToKeep: '{build-artifact-num-to-keep}'
86
87     parameters:
88         - project-parameter:
89             project: 'dmm'
90         - gerrit-parameter:
91             branch: '{branch}'
92         - os-parameter:
93             os: '{os}'
94
95     scm:
96         - gerrit-trigger-scm:
97             credentials-id: 'jenkins-gerrit-credentials'
98             refspec: ''
99             choosing-strategy: 'default'
100
101     wrappers:
102         - fdio-infra-wrappers:
103             build-timeout: '{build-timeout}'
104
105     triggers:
106         - gerrit-trigger-patch-merged:
107             name: 'dmm'
108             branch: '{branch}'
109
110     builders:
111         - shell:
112             !include-raw-escape: include-raw-build.sh
113
114     publishers:
115       - fdio-infra-shiplogs:
116           maven-version: 'mvn33-new'
117
118 - job-template:
119     name: 'dmm-csit-verify-func-{stream}-{os}-virl'
120
121     project-type: freestyle
122     node: '{os}-basebuild-4c-4g'
123     concurrent: true
124
125     logrotate:
126         daysToKeep: '{build-days-to-keep}'
127         numToKeep: '{build-num-to-keep}'
128         artifactDaysToKeep: '{build-artifact-days-to-keep}'
129         artifactNumToKeep: '{build-artifact-num-to-keep}'
130
131     parameters:
132         - project-parameter:
133             project: 'dmm'
134         - gerrit-parameter:
135             branch: '{branch}'
136
137     scm:
138         - gerrit-trigger-scm:
139             credentials-id: 'jenkins-gerrit-credentials'
140             refspec: '$GERRIT_REFSPEC'
141             choosing-strategy: 'gerrit'
142
143     wrappers:
144        - fdio-infra-wrappers:
145             build-timeout: '{build-timeout}'
146
147     triggers:
148         - gerrit-trigger-manually-triggered:
149             name: 'dmm'
150             branch: '{branch}'
151             comment-trigger-value: 'verify-dmm-func'
152
153     builders:
154         - shell:
155             !include-raw-escape: include-raw-dmm-csit-functional-virl.sh
156
157     publishers:
158         - archive-artifacts:
159             artifacts: 'csit/report.html, csit/log.html, csit/output.xml'
160             latest-only: false
161
162         - robot-report:
163             output-path: ''
164
165         - fdio-infra-shiplogs:
166             maven-version: 'mvn33-new'