Merge "Fix workarounds for archive paths"
[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: 'builder-{os}-prod-x86_64'
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-publish
101
102 - job-template:
103     name: 'vsap-merge-{stream}-{os}-{mode}'
104
105     project-type: freestyle
106     node: 'builder-{os}-prod-x86_64'
107
108     build-discarder:
109       daysToKeep: '{build-days-to-keep}'
110       numToKeep: 100
111       artifactDaysToKeep: '{build-artifact-days-to-keep}'
112       artifactNumToKeep: '{build-artifact-num-to-keep}'
113
114     parameters:
115       - project-parameter:
116           project: '{project}'
117       - gerrit-parameter:
118           branch: '{branch}'
119       - gerrit-refspec-parameter
120       - os-parameter:
121           os: '{os}'
122       - stream-parameter:
123           stream: '{stream}'
124       - mode-parameter:
125           mode: '{mode}'
126       - repo-name-parameter:
127           repo-name: '{repo-stream-part}.{repo-os-part}.{repo-mode-part}'
128       - string:
129           name: ARCHIVE_ARTIFACTS
130           default: '{archive-artifacts}'
131           description: Artifacts to archive to the logs server.
132
133     scm:
134       - gerrit-trigger-scm-recursive:
135           credentials-id: 'jenkins-gerrit-credentials'
136           refspec: '$GERRIT_REFSPEC'
137           choosing-strategy: 'gerrit'
138           submodule-recursive: true
139           submodule:
140             recursive: true
141
142     wrappers:
143       - fdio-infra-wrappers:
144           build-timeout: '{build-timeout}'
145
146     triggers:
147       - gerrit-trigger-patch-merged:
148           name: '{project}'
149           branch: '{branch}'
150
151     builders:
152       - config-file-provider:
153           files:
154             - file-id: '.packagecloud'
155               target: '/root'
156       - config-file-provider:
157           files:
158             - file-id: 'packagecloud_api'
159               target: '/root'
160       - shell:
161           !include-raw-escape:
162           - include-raw-vsap-build.sh
163       - shell:
164           !include-raw-escape:
165           - ../scripts/packagecloud_push.sh
166
167     publishers:
168       - fdio-infra-publish
169
170 - project:
171     name: vsap-info
172     project-name: vsap
173     jobs:
174       - gerrit-info-yaml-verify
175     build-node: centos7-builder-2c-2g
176     project: vsap
177     branch: master
178
179 - project:
180     name: vsap-sonar
181     project: vsap
182     project-name: vsap
183     mvn-settings: vsap-settings
184     sonarcloud: true
185     sonarcloud-project-organization: '{sonarcloud_project_organization}'
186     sonarcloud-api-token: '{sonarcloud_api_token}'
187     sonarcloud-project-key: '{sonarcloud_project_organization}_{project-name}'
188     branch: master
189     build-node: centos7-docker-4c-4g
190     jobs:
191       - gerrit-maven-sonar