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