Add new dev branch to the CI framework
[ci-management.git] / jjb / tldk / tldk.yaml
1 # Copyright (c) 2017 Cisco and/or its affiliates.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at:
5 #
6 #     http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
13
14 ---
15 - project:
16     name: tldk
17     jobs:
18       - '{project}-verify-{stream}-{os}'
19       - '{project}-merge-{stream}-{os}'
20       - '{project}-verify-image-{stream}-{os}'
21       - 'tldk-csit-verify-func-{stream}-{os}-virl'
22
23     project: 'tldk'
24     os:
25       - ubuntu1604
26     stream:
27       - master:
28           branch: 'master'
29       - dev-next-socket:
30           branch: 'dev-next-socket'
31
32 - project:
33     name: tldk-view
34     view:
35       - project-view
36     project-name: tldk
37
38 - job-template:
39     name: '{project}-verify-{stream}-{os}'
40
41     project-type: freestyle
42     node: '{os}-basebuild-4c-4g'
43     concurrent: true
44
45     build-discarder:
46       daysToKeep: '{build-days-to-keep}'
47       numToKeep: '{build-num-to-keep}'
48       artifactDaysToKeep: '{build-artifact-days-to-keep}'
49       artifactNumToKeep: '{build-artifact-num-to-keep}'
50
51     parameters:
52       - project-parameter:
53           project: '{project}'
54       - gerrit-parameter:
55           branch: '{branch}'
56       - os-parameter:
57           os: '{os}'
58
59     scm:
60       - gerrit-trigger-scm:
61           credentials-id: 'jenkins-gerrit-credentials'
62           refspec: '$GERRIT_REFSPEC'
63           choosing-strategy: 'gerrit'
64
65     wrappers:
66       - fdio-infra-wrappers:
67           build-timeout: '{build-timeout}'
68
69     triggers:
70       - gerrit-trigger-patch-submitted:
71           name: '{project}'
72           branch: '{branch}'
73
74     builders:
75       - shell:
76           !include-raw-escape: gtest-build.sh
77       - inject:
78           properties-file: gtest-env.prop
79       - shell:
80           !include-raw-escape: include-raw-build.sh
81
82     publishers:
83       - fdio-infra-shiplogs:
84           maven-version: 'mvn36'
85
86 - job-template:
87     name: '{project}-verify-image-{stream}-{os}'
88
89     project-type: freestyle
90     node: '{os}-basebuild-4c-4g'
91     concurrent: true
92
93     build-discarder:
94       daysToKeep: '{build-days-to-keep}'
95       numToKeep: '{build-num-to-keep}'
96       artifactDaysToKeep: '{build-artifact-days-to-keep}'
97       artifactNumToKeep: '{build-artifact-num-to-keep}'
98
99     parameters:
100       - project-parameter:
101           project: '{project}'
102       - gerrit-parameter:
103           branch: '{branch}'
104       - os-parameter:
105           os: '{os}'
106
107     scm:
108       - gerrit-trigger-scm:
109           credentials-id: 'jenkins-gerrit-credentials'
110           refspec: '$GERRIT_REFSPEC'
111           choosing-strategy: 'gerrit'
112
113     wrappers:
114       - fdio-infra-wrappers:
115           build-timeout: '{build-timeout}'
116
117     triggers:
118       - gerrit:
119           server-name: 'Primary'
120           trigger-on:
121             - comment-added-contains-event:
122                 comment-contains-value: 'verify-images'
123           projects:
124             - project-compare-type: 'ANT'
125               project-pattern: '{project}'
126               branches:
127                 - branch-compare-type: 'ANT'
128                   branch-pattern: '**/{branch}'
129           skip-vote:
130             successful: true
131             failed: true
132             unstable: true
133             notbuilt: true
134
135     builders:
136       - shell:
137           !include-raw-escape: gtest-build.sh
138       - inject:
139           properties-file: gtest-env.prop
140       - shell:
141           !include-raw-escape: include-raw-build.sh
142
143     publishers:
144       - fdio-infra-shiplogs:
145           maven-version: 'mvn36'
146
147 - job-template:
148     name: '{project}-merge-{stream}-{os}'
149
150     project-type: freestyle
151     node: '{os}-basebuild-4c-4g'
152     build-discarder:
153       daysToKeep: '{build-days-to-keep}'
154       numToKeep: '{build-num-to-keep}'
155       artifactDaysToKeep: '{build-artifact-days-to-keep}'
156       artifactNumToKeep: '{build-artifact-num-to-keep}'
157
158     parameters:
159       - project-parameter:
160           project: '{project}'
161       - gerrit-parameter:
162           branch: '{branch}'
163       - os-parameter:
164           os: '{os}'
165
166     scm:
167       - gerrit-trigger-scm:
168           credentials-id: 'jenkins-gerrit-credentials'
169           refspec: ''
170           choosing-strategy: 'default'
171
172     wrappers:
173       - fdio-infra-wrappers:
174           build-timeout: '{build-timeout}'
175
176     triggers:
177       - gerrit-trigger-patch-merged:
178           name: '{project}'
179           branch: '{branch}'
180
181     builders:
182       - shell:
183           !include-raw-escape: gtest-build.sh
184       - inject:
185           properties-file: gtest-env.prop
186       - shell:
187           !include-raw-escape: include-raw-build.sh
188
189     publishers:
190       - fdio-infra-shiplogs:
191           maven-version: 'mvn36'
192
193 - job-template:
194     name: 'tldk-csit-verify-func-{stream}-{os}-virl'
195
196     project-type: freestyle
197     node: '{os}-basebuild-4c-4g'
198     concurrent: true
199     archive-artifacts: >
200       **/csit/report.html
201       **/csit/log.html
202       **/csit/output.xml
203     latest-only: false
204
205     build-discarder:
206       daysToKeep: '{build-days-to-keep}'
207       numToKeep: '{build-num-to-keep}'
208       artifactDaysToKeep: '{build-artifact-days-to-keep}'
209       artifactNumToKeep: '{build-artifact-num-to-keep}'
210
211     parameters:
212       - project-parameter:
213           project: '{project}'
214       - gerrit-parameter:
215           branch: '{branch}'
216       - string:
217           name: ARCHIVE_ARTIFACTS
218           default: '{archive-artifacts}'
219           description: Artifacts to archive to the logs server.
220
221     scm:
222       - gerrit-trigger-scm:
223           credentials-id: 'jenkins-gerrit-credentials'
224           refspec: '$GERRIT_REFSPEC'
225           choosing-strategy: 'gerrit'
226
227     wrappers:
228       - fdio-infra-wrappers:
229           build-timeout: '{build-timeout}'
230
231     triggers:
232       - gerrit-trigger-manually-triggered:
233           name: '{project}'
234           branch: '{branch}'
235           comment-trigger-value: 'verify-tldk-func'
236
237     builders:
238       - shell:
239           !include-raw-escape: include-raw-tldk-csit-functional-virl.sh
240
241     publishers:
242       - robot-report:
243           output-path: ''
244       - fdio-infra-shiplogs:
245           maven-version: 'mvn36'
246
247 - project:
248     name: tldk-info
249     project-name: tldk
250     jobs:
251       - gerrit-info-yaml-verify
252     build-node: centos7-builder-4c-4g
253     project: tldk
254     branch: master