2b0251835d89262ecc1b9c17c65f1cc2dcb4453f
[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
35 - project:
36     name: udpi-view
37     views:
38       - project-view
39     project-name: udpi
40
41 - job-template:
42     name: 'udpi-verify-{stream}-{os}'
43
44     project-type: freestyle
45     node: '{os}-us'
46     concurrent: true
47     archive-artifacts: >
48       **/build-root/build-package/*.rpm
49       **/build-root/build-package/*.deb
50     allow-empty: 'true'
51     fingerprint: false
52     only-if-success: true
53     default-excludes: false
54
55     build-discarder:
56       daysToKeep: '{build-days-to-keep}'
57       numToKeep: 100
58       artifactDaysToKeep: '{build-artifact-days-to-keep}'
59       artifactNumToKeep: '{build-artifact-num-to-keep}'
60
61     parameters:
62       - project-parameter:
63           project: '{project}'
64       - gerrit-parameter:
65           branch: '{branch}'
66       - os-parameter:
67           os: '{os}'
68       - repo-name-parameter:
69           repo-name: '{repo-stream-part}.{repo-os-part}'
70       - stream-parameter:
71           stream: '{stream}'
72       - string:
73           name: ARCHIVE_ARTIFACTS
74           default: '{archive-artifacts}'
75           description: Artifacts to archive to the logs server.
76
77     scm:
78       - gerrit-trigger-scm:
79           credentials-id: 'jenkins-gerrit-credentials'
80           refspec: '$GERRIT_REFSPEC'
81           choosing-strategy: 'gerrit'
82
83     wrappers:
84       - fdio-infra-wrappers:
85           build-timeout: 120
86
87     triggers:
88       - gerrit-trigger-checkstyle:
89           name: '{project}'
90           branch: '{branch}'
91       - gerrit-trigger-patch-submitted:
92           name: '{project}'
93           branch: '{branch}'
94
95     builders:
96       - config-file-provider:
97           files:
98             - file-id: '.packagecloud'
99               target: '/root'
100       - config-file-provider:
101           files:
102             - file-id: 'packagecloud_api'
103               target: '/root'
104
105     publishers:
106       - fdio-infra-shiplogs:
107           maven-version: 'mvn33-new'
108       - naginator:
109           rerun-unstable-builds: false
110           max-failed-builds: 1
111           fixed-delay: 90
112 - job-template:
113     name: 'udpi-merge-{stream}-{os}'
114
115     project-type: freestyle
116     node: '{os}-us'
117     archive-artifacts: >
118       **/build-root/build-package/*.rpm
119       **/build-root/build-package/*.deb
120     allow-empty: 'true'
121     fingerprint: false
122     only-if-success: true
123     default-excludes: false
124
125     build-discarder:
126       daysToKeep: '{build-days-to-keep}'
127       numToKeep: 100
128       artifactDaysToKeep: '{build-artifact-days-to-keep}'
129       artifactNumToKeep: '{build-artifact-num-to-keep}'
130
131     parameters:
132       - project-parameter:
133           project: '{project}'
134       - gerrit-parameter:
135           branch: '{branch}'
136       - os-parameter:
137           os: '{os}'
138       - stream-parameter:
139           stream: '{stream}'
140       - repo-name-parameter:
141           repo-name: '{repo-stream-part}.{repo-os-part}'
142       - string:
143           name: ARCHIVE_ARTIFACTS
144           default: '{archive-artifacts}'
145           description: Artifacts to archive to the logs server.
146
147     scm:
148       - gerrit-trigger-scm:
149           credentials-id: 'jenkins-gerrit-credentials'
150           refspec: ''
151           choosing-strategy: 'default'
152
153     wrappers:
154       - fdio-infra-wrappers:
155           build-timeout: '{build-timeout}'
156
157     triggers:
158       - gerrit-trigger-patch-merged:
159           name: '{project}'
160           branch: '{branch}'
161
162     builders:
163       - config-file-provider:
164           files:
165             - file-id: '.packagecloud'
166               target: '/root'
167       - config-file-provider:
168           files:
169             - file-id: 'packagecloud_api'
170               target: '/root'
171
172     publishers:
173       - fdio-infra-shiplogs:
174           maven-version: 'mvn33-new'
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