Set settings to hicn-settings.
[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}-builder-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}-builder-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}-builder-4c-4g'
144     build-discarder:
145       daysToKeep: '{build-days-to-keep}'
146       numToKeep: '{build-num-to-keep}'
147       artifactDaysToKeep: '{build-artifact-days-to-keep}'
148       artifactNumToKeep: '{build-artifact-num-to-keep}'
149
150     parameters:
151       - project-parameter:
152           project: '{project}'
153       - gerrit-parameter:
154           branch: '{branch}'
155       - os-parameter:
156           os: '{os}'
157
158     scm:
159       - gerrit-trigger-scm:
160           credentials-id: 'jenkins-gerrit-credentials'
161           refspec: ''
162           choosing-strategy: 'default'
163
164     wrappers:
165       - fdio-infra-wrappers:
166           build-timeout: '{build-timeout}'
167
168     triggers:
169       - gerrit-trigger-patch-merged:
170           name: '{project}'
171           branch: '{branch}'
172
173     builders:
174       - shell:
175           !include-raw-escape: gtest-build.sh
176       - inject:
177           properties-file: gtest-env.prop
178       - shell:
179           !include-raw-escape: include-raw-build.sh
180
181     publishers:
182       - fdio-infra-shiplogs:
183           maven-version: 'mvn33-new'
184
185 - job-template:
186     name: 'tldk-csit-verify-func-{stream}-{os}-virl'
187
188     project-type: freestyle
189     node: '{os}-builder-4c-4g'
190     concurrent: true
191
192     build-discarder:
193       daysToKeep: '{build-days-to-keep}'
194       numToKeep: '{build-num-to-keep}'
195       artifactDaysToKeep: '{build-artifact-days-to-keep}'
196       artifactNumToKeep: '{build-artifact-num-to-keep}'
197
198     parameters:
199       - project-parameter:
200           project: '{project}'
201       - gerrit-parameter:
202           branch: '{branch}'
203
204     scm:
205       - gerrit-trigger-scm:
206           credentials-id: 'jenkins-gerrit-credentials'
207           refspec: '$GERRIT_REFSPEC'
208           choosing-strategy: 'gerrit'
209
210     wrappers:
211       - fdio-infra-wrappers:
212           build-timeout: '{build-timeout}'
213
214     triggers:
215       - gerrit-trigger-manually-triggered:
216           name: '{project}'
217           branch: '{branch}'
218           comment-trigger-value: 'verify-tldk-func'
219
220     builders:
221       - shell:
222           !include-raw-escape: include-raw-tldk-csit-functional-virl.sh
223
224     publishers:
225       - archive-artifacts:
226           artifacts: >
227             **/csit/report.html,
228             **/csit/log.html,
229             **/csit/output.xml
230           latest-only: false
231
232       - robot-report:
233           output-path: ''
234
235       - fdio-infra-shiplogs:
236           maven-version: 'mvn33-new'