feat(tldk): enable verify jobs in sandbox
[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
22     project: 'tldk'
23     os:
24       - ubuntu2004
25     stream:
26       - master:
27           branch: 'master'
28       - dev-next-socket:
29           branch: 'dev-next-socket'
30       - dev-mitm-proxy:
31           branch: 'dev-mitm-proxy'
32
33 - project:
34     name: tldk-view
35     view:
36       - project-view
37     project-name: tldk
38
39 - job-template:
40     name: '{project}-verify-{stream}-{os}'
41
42     project-type: freestyle
43     node: '{os}-builder-4c-4g'
44     concurrent: true
45
46     properties:
47       - lf-infra-properties:
48           build-days-to-keep: "{build-days-to-keep}"
49
50     parameters:
51       - project-parameter:
52           project: '{project}'
53       - gerrit-parameter:
54           branch: '{branch}'
55       - os-parameter:
56           os: '{os}'
57       - gerrit-refspec-parameter
58
59     scm:
60       - gerrit-trigger-scm:
61           credentials-id: 'jenkins-gerrit-credentials'
62           refspec: '$GERRIT_REFSPEC'
63           choosing-strategy: 'gerrit'
64
65     wrappers:
66       - fdio-infra-wrappers:
67           build-timeout: '{build-timeout}'
68
69     triggers:
70       - gerrit-trigger-patch-submitted:
71           name: '{project}'
72           branch: '{branch}'
73
74     builders:
75       - shell:
76           !include-raw-escape: gtest-build.sh
77       - inject:
78           properties-file: gtest-env.prop
79       - shell:
80           !include-raw-escape: include-raw-build.sh
81
82     publishers:
83       - lf-infra-publish
84
85 - job-template:
86     name: '{project}-verify-image-{stream}-{os}'
87
88     project-type: freestyle
89     node: '{os}-builder-4c-4g'
90     concurrent: true
91
92     properties:
93       - lf-infra-properties:
94           build-days-to-keep: "{build-days-to-keep}"
95
96     parameters:
97       - project-parameter:
98           project: '{project}'
99       - gerrit-parameter:
100           branch: '{branch}'
101       - os-parameter:
102           os: '{os}'
103       - gerrit-refspec-parameter
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       - lf-infra-publish
143
144 - job-template:
145     name: '{project}-merge-{stream}-{os}'
146
147     project-type: freestyle
148     node: '{os}-builder-4c-4g'
149     properties:
150       - lf-infra-properties:
151           build-days-to-keep: "{build-days-to-keep}"
152
153     parameters:
154       - project-parameter:
155           project: '{project}'
156       - gerrit-parameter:
157           branch: '{branch}'
158       - os-parameter:
159           os: '{os}'
160
161     scm:
162       - gerrit-trigger-scm:
163           credentials-id: 'jenkins-gerrit-credentials'
164           refspec: ''
165           choosing-strategy: 'default'
166
167     wrappers:
168       - fdio-infra-wrappers:
169           build-timeout: '{build-timeout}'
170
171     triggers:
172       - gerrit-trigger-patch-merged:
173           name: '{project}'
174           branch: '{branch}'
175
176     builders:
177       - shell:
178           !include-raw-escape: gtest-build.sh
179       - inject:
180           properties-file: gtest-env.prop
181       - shell:
182           !include-raw-escape: include-raw-build.sh
183
184     publishers:
185       - lf-infra-publish
186
187 - project:
188     name: tldk-info
189     project-name: tldk
190     jobs:
191       - gerrit-info-yaml-verify
192     build-node: centos7-builder-2c-2g
193     project: tldk
194     branch: master
195
196 - project:
197     name: tldk-sonar
198     project: tldk
199     project-name: tldk
200     mvn-settings: tldk-settings
201     sonarcloud: true
202     sonarcloud-project-organization: '{sonarcloud_project_organization}'
203     sonarcloud-api-token: '{sonarcloud_api_token}'
204     sonarcloud-project-key: '{sonarcloud_project_organization}_{project-name}'
205     branch: master
206     build-node: centos7-docker-2c-2g
207     jobs:
208       - gerrit-maven-sonar