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