Merge "Updating the new branch of DMM"
[ci-management.git] / jjb / sweetcomb / sweetcomb.yaml
1 ---
2 #########################################################################
3 #
4 # Copyright (c) 2018 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: sweetcomb
20     jobs:
21       - 'sweetcomb-verify-{stream}-{os}'
22       - 'sweetcomb-merge-{stream}-{os}'
23
24     project: 'sweetcomb'
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       - '1901':
35           branch: 'stable/1901'
36           repo-stream-part: 'stable.1901'
37
38 - job-template:
39     name: 'sweetcomb-verify-{stream}-{os}'
40
41     project-type: freestyle
42     node: '{os}-basebuild-4c-4g'
43     concurrent: true
44
45     build-discarder:
46       daysToKeep: '{build-days-to-keep}'
47       numToKeep: '{build-num-to-keep}'
48       artifactDaysToKeep: '{build-artifact-days-to-keep}'
49       artifactNumToKeep: '{build-artifact-num-to-keep}'
50
51     parameters:
52       - project-parameter:
53           project: 'sweetcomb'
54       - gerrit-parameter:
55           branch: '{branch}'
56       - os-parameter:
57           os: '{os}'
58
59     scm:
60       - gerrit-trigger-scm:
61           credentials-id: 'jenkins-gerrit-credentials'
62           refspec: '$GERRIT_REFSPEC'
63           choosing-strategy: 'gerrit'
64
65     wrappers:
66       - fdio-infra-wrappers:
67           build-timeout: '{build-timeout}'
68
69     triggers:
70       - gerrit-trigger-patch-submitted:
71           name: 'sweetcomb'
72           branch: '{branch}'
73
74     publishers:
75       - fdio-infra-shiplogs:
76           maven-version: 'mvn33-new'
77
78 - job-template:
79     name: 'sweetcomb-merge-{stream}-{os}'
80
81     project-type: freestyle
82     node: '{os}-basebuild-4c-4g'
83
84     build-discarder:
85       daysToKeep: '{build-days-to-keep}'
86       numToKeep: '{build-num-to-keep}'
87       artifactDaysToKeep: '{build-artifact-days-to-keep}'
88       artifactNumToKeep: '{build-artifact-num-to-keep}'
89
90     parameters:
91       - project-parameter:
92           project: 'sweetcomb'
93       - gerrit-parameter:
94           branch: '{branch}'
95       - os-parameter:
96           os: '{os}'
97
98     scm:
99       - gerrit-trigger-scm:
100           credentials-id: 'jenkins-gerrit-credentials'
101           refspec: ''
102           choosing-strategy: 'default'
103
104     wrappers:
105       - fdio-infra-wrappers:
106           build-timeout: '{build-timeout}'
107
108     triggers:
109       - gerrit-trigger-patch-merged:
110           name: 'sweetcomb'
111           branch: '{branch}'
112
113     publishers:
114       - fdio-infra-shiplogs:
115           maven-version: 'mvn33-new'
116