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