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