tldk.yaml revision 20ffc5a1
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}-builder-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}-builder-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}-builder-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}-builder-4c-4g'
196    concurrent: true
197
198    build-discarder:
199      daysToKeep: '{build-days-to-keep}'
200      numToKeep: '{build-num-to-keep}'
201      artifactDaysToKeep: '{build-artifact-days-to-keep}'
202      artifactNumToKeep: '{build-artifact-num-to-keep}'
203
204    parameters:
205      - project-parameter:
206          project: '{project}'
207      - gerrit-parameter:
208          branch: '{branch}'
209
210    scm:
211      - gerrit-trigger-scm:
212          credentials-id: 'jenkins-gerrit-credentials'
213          refspec: '$GERRIT_REFSPEC'
214          choosing-strategy: 'gerrit'
215
216    wrappers:
217      - fdio-infra-wrappers:
218          build-timeout: '{build-timeout}'
219
220    triggers:
221      - gerrit-trigger-manually-triggered:
222          name: '{project}'
223          branch: '{branch}'
224          comment-trigger-value: 'verify-tldk-func'
225
226    builders:
227      - shell:
228          !include-raw-escape: include-raw-tldk-csit-functional-virl.sh
229
230    publishers:
231      - archive-artifacts:
232          artifacts: >
233            **/csit/report.html,
234            **/csit/log.html,
235            **/csit/output.xml
236          latest-only: false
237
238      - robot-report:
239          output-path: ''
240
241      - fdio-infra-shiplogs:
242          maven-version: 'mvn33-new'
243