Merge "CSIT: unpin wagon version"
[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       - 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     archive-artifacts: >
117       **/build-root/build-package/*.rpm
118       **/build-root/build-package/*.deb
119     allow-empty: 'true'
120     fingerprint: false
121     only-if-success: true
122     default-excludes: false
123
124     build-discarder:
125       daysToKeep: '{build-days-to-keep}'
126       numToKeep: 100
127       artifactDaysToKeep: '{build-artifact-days-to-keep}'
128       artifactNumToKeep: '{build-artifact-num-to-keep}'
129
130     parameters:
131       - project-parameter:
132           project: '{project}'
133       - gerrit-parameter:
134           branch: '{branch}'
135       - os-parameter:
136           os: '{os}'
137       - stream-parameter:
138           stream: '{stream}'
139       - repo-name-parameter:
140           repo-name: '{repo-stream-part}.{repo-os-part}'
141       - string:
142           name: ARCHIVE_ARTIFACTS
143           default: '{archive-artifacts}'
144           description: Artifacts to archive to the logs server.
145
146     scm:
147       - gerrit-trigger-scm:
148           credentials-id: 'jenkins-gerrit-credentials'
149           refspec: ''
150           choosing-strategy: 'default'
151
152     wrappers:
153       - fdio-infra-wrappers:
154           build-timeout: '{build-timeout}'
155
156     triggers:
157       - gerrit-trigger-patch-merged:
158           name: '{project}'
159           branch: '{branch}'
160
161     builders:
162       - config-file-provider:
163           files:
164             - file-id: '.packagecloud'
165               target: '/root'
166       - config-file-provider:
167           files:
168             - file-id: 'packagecloud_api'
169               target: '/root'
170
171     publishers:
172       - lf-infra-publish
173       - naginator:
174           rerun-unstable-builds: false
175           max-failed-builds: 1
176           fixed-delay: 90
177 - project:
178     name: udpi-info
179     project-name: udpi
180     jobs:
181       - gerrit-info-yaml-verify
182     build-node: centos7-builder-4c-4g
183     project: udpi
184     branch: master