9e932033259262089cf2e72161c2ed2ceabf4667
[ci-management.git] / jjb / udpi / udpi.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: udpi
20     jobs:
21       - 'udpi-verify-{stream}-{os}'
22       - 'udpi-merge-{stream}-{os}'
23
24     project: 'udpi'
25     os:
26       - ubuntu1604:
27           repo-os-part: 'ubuntu.xenial.main'
28       - centos7:
29           repo-os-part: 'centos7'
30     stream:
31       - master:
32           branch: 'master'
33           repo-stream-part: 'master'
34       - '2001':
35           branch: 'stable/2001'
36           repo-stream-part: 'stable.2001'
37
38 - project:
39     name: udpi-view
40     views:
41       - project-view
42     project-name: udpi
43
44 - job-template:
45     name: 'udpi-verify-{stream}-{os}'
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       - os-parameter:
63           os: '{os}'
64       - repo-name-parameter:
65           repo-name: '{repo-stream-part}.{repo-os-part}'
66       - stream-parameter:
67           stream: '{stream}'
68       - string:
69           name: ARCHIVE_ARTIFACTS
70           default: '{archive-artifacts}'
71           description: Artifacts to archive to the logs server.
72
73     scm:
74       - gerrit-trigger-scm:
75           credentials-id: 'jenkins-gerrit-credentials'
76           refspec: '$GERRIT_REFSPEC'
77           choosing-strategy: 'gerrit'
78
79     wrappers:
80       - fdio-infra-wrappers:
81           build-timeout: 120
82
83     triggers:
84       - gerrit-trigger-checkstyle:
85           name: '{project}'
86           branch: '{branch}'
87       - gerrit-trigger-patch-submitted:
88           name: '{project}'
89           branch: '{branch}'
90
91     builders:
92       - config-file-provider:
93           files:
94             - file-id: '.packagecloud'
95               target: '/root'
96       - config-file-provider:
97           files:
98             - file-id: 'packagecloud_api'
99               target: '/root'
100       - shell:
101           !include-raw-escape: include-raw-udpi-checkstyle.sh
102       - shell:
103           !include-raw-escape:
104           - include-raw-udpi-build.sh
105     publishers:
106       - lf-infra-publish
107       - naginator:
108           rerun-unstable-builds: false
109           max-failed-builds: 1
110           fixed-delay: 90
111 - job-template:
112     name: 'udpi-merge-{stream}-{os}'
113
114     project-type: freestyle
115     node: '{os}-us'
116
117     build-discarder:
118       daysToKeep: '{build-days-to-keep}'
119       numToKeep: 100
120       artifactDaysToKeep: '{build-artifact-days-to-keep}'
121       artifactNumToKeep: '{build-artifact-num-to-keep}'
122
123     parameters:
124       - project-parameter:
125           project: '{project}'
126       - gerrit-parameter:
127           branch: '{branch}'
128       - os-parameter:
129           os: '{os}'
130       - stream-parameter:
131           stream: '{stream}'
132       - repo-name-parameter:
133           repo-name: '{repo-stream-part}.{repo-os-part}'
134       - string:
135           name: ARCHIVE_ARTIFACTS
136           default: '{archive-artifacts}'
137           description: Artifacts to archive to the logs server.
138
139     scm:
140       - gerrit-trigger-scm:
141           credentials-id: 'jenkins-gerrit-credentials'
142           refspec: ''
143           choosing-strategy: 'default'
144
145     wrappers:
146       - fdio-infra-wrappers:
147           build-timeout: '{build-timeout}'
148
149     triggers:
150       - gerrit-trigger-patch-merged:
151           name: '{project}'
152           branch: '{branch}'
153
154     builders:
155       - config-file-provider:
156           files:
157             - file-id: '.packagecloud'
158               target: '/root'
159       - config-file-provider:
160           files:
161             - file-id: 'packagecloud_api'
162               target: '/root'
163       - shell:
164           !include-raw-escape: include-raw-udpi-checkstyle.sh
165       - shell:
166           !include-raw-escape:
167           - include-raw-udpi-build.sh
168       - shell:
169           !include-raw-escape:
170           - ../scripts/packagecloud_push.sh
171
172
173     publishers:
174       - lf-infra-publish
175       - naginator:
176           rerun-unstable-builds: false
177           max-failed-builds: 1
178           fixed-delay: 90
179 - project:
180     name: udpi-info
181     project-name: udpi
182     jobs:
183       - gerrit-info-yaml-verify
184     build-node: centos7-builder-4c-4g
185     project: udpi
186     branch: master