Move non-voting VPP jobs to periodic
[ci-management.git] / jjb / vsap / vsap.yaml
1 ---
2 #########################################################################
3 #
4 # Copyright (c) 2019 Intel and/or its affiliates.
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at:
8 #
9 #     http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 #########################################################################
17
18 - project:
19     name: vsap
20     jobs:
21       - 'vsap-verify-{stream}-{os}-{mode}'
22       - 'vsap-merge-{stream}-{os}-{mode}'
23
24     project: 'vsap'
25     os:
26       - ubuntu1804:
27           repo-os-part: 'ubuntu.bionic.main'
28     stream:
29       - '2005':
30           branch: 'stable/2005'
31           repo-stream-part: 'stable.2005'
32     mode:
33       - vcl:
34           repo-mode-part: 'vcl'
35       - ldp:
36           repo-mode-part: 'ldp'
37
38 - project:
39     name: vsap-view
40     views:
41       - project-view
42     project-name: vsap
43
44 - job-template:
45     name: 'vsap-verify-{stream}-{os}-{mode}'
46
47     project-type: freestyle
48     node: '{os}-us'
49     concurrent: true
50
51     build-discarder:
52       daysToKeep: '{build-days-to-keep}'
53       numToKeep: 100
54       artifactDaysToKeep: '{build-artifact-days-to-keep}'
55       artifactNumToKeep: '{build-artifact-num-to-keep}'
56
57     parameters:
58       - project-parameter:
59           project: '{project}'
60       - gerrit-parameter:
61           branch: '{branch}'
62       - gerrit-refspec-parameter
63       - os-parameter:
64           os: '{os}'
65       - repo-name-parameter:
66           repo-name: '{repo-stream-part}.{repo-os-part}.{repo-mode-part}'
67       - stream-parameter:
68           stream: '{stream}'
69       - mode-parameter:
70           mode: '{mode}'
71       - string:
72           name: ARCHIVE_ARTIFACTS
73           default: '{archive-artifacts}'
74           description: Artifacts to archive to the logs server.
75
76     scm:
77       - gerrit-trigger-scm-recursive:
78           credentials-id: 'jenkins-gerrit-credentials'
79           refspec: '$GERRIT_REFSPEC'
80           choosing-strategy: 'gerrit'
81           submodule-recursive: true
82           submodule:
83             recursive: true
84
85     wrappers:
86       - fdio-infra-wrappers:
87           build-timeout: 120
88
89     triggers:
90       - gerrit-trigger-patch-submitted:
91           name: '{project}'
92           branch: '{branch}'
93
94     builders:
95       - shell:
96           !include-raw-escape:
97           - include-raw-vsap-build.sh
98
99     publishers:
100       - fdio-infra-shiplogs:
101           maven-version: 'mvn36'
102
103 - job-template:
104     name: 'vsap-merge-{stream}-{os}-{mode}'
105
106     project-type: freestyle
107     node: '{os}-us'
108
109     build-discarder:
110       daysToKeep: '{build-days-to-keep}'
111       numToKeep: 100
112       artifactDaysToKeep: '{build-artifact-days-to-keep}'
113       artifactNumToKeep: '{build-artifact-num-to-keep}'
114
115     parameters:
116       - project-parameter:
117           project: '{project}'
118       - gerrit-parameter:
119           branch: '{branch}'
120       - gerrit-refspec-parameter
121       - os-parameter:
122           os: '{os}'
123       - stream-parameter:
124           stream: '{stream}'
125       - mode-parameter:
126           mode: '{mode}'
127       - repo-name-parameter:
128           repo-name: '{repo-stream-part}.{repo-os-part}.{repo-mode-part}'
129       - string:
130           name: ARCHIVE_ARTIFACTS
131           default: '{archive-artifacts}'
132           description: Artifacts to archive to the logs server.
133
134     scm:
135       - gerrit-trigger-scm-recursive:
136           credentials-id: 'jenkins-gerrit-credentials'
137           refspec: '$GERRIT_REFSPEC'
138           choosing-strategy: 'gerrit'
139           submodule-recursive: true
140           submodule:
141             recursive: true
142
143     wrappers:
144       - fdio-infra-wrappers:
145           build-timeout: '{build-timeout}'
146
147     triggers:
148       - gerrit-trigger-patch-merged:
149           name: '{project}'
150           branch: '{branch}'
151
152     builders:
153       - config-file-provider:
154           files:
155             - file-id: '.packagecloud'
156               target: '/root'
157       - config-file-provider:
158           files:
159             - file-id: 'packagecloud_api'
160               target: '/root'
161       - shell:
162           !include-raw-escape:
163           - include-raw-vsap-build.sh
164       - shell:
165           !include-raw-escape:
166           - ../scripts/packagecloud_push.sh
167
168     publishers:
169       - fdio-infra-shiplogs:
170           maven-version: 'mvn36'
171
172 - project:
173     name: vsap-info
174     project-name: vsap
175     jobs:
176       - gerrit-info-yaml-verify
177     build-node: centos7-builder-2c-2g
178     project: vsap
179     branch: master
180
181 - project:
182     name: vsap-sonar
183     project: vsap
184     project-name: vsap
185     mvn-settings: vsap-settings
186     sonarcloud: true
187     sonarcloud-project-organization: '{sonarcloud_project_organization}'
188     sonarcloud-api-token: '{sonarcloud_api_token}'
189     sonarcloud-project-key: '{sonarcloud_project_organization}_{project-name}'
190     branch: master
191     build-node: centos7-docker-4c-4g
192     jobs:
193       - gerrit-maven-sonar