Merge "Rename ubuntu-1604.json vars file"
[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
34 - job-template:
35     name: 'sweetcomb-verify-{stream}-{os}'
36
37     project-type: freestyle
38     node: '{os}-basebuild-4c-4g'
39     concurrent: true
40
41     build-discarder:
42       daysToKeep: '{build-days-to-keep}'
43       numToKeep: '{build-num-to-keep}'
44       artifactDaysToKeep: '{build-artifact-days-to-keep}'
45       artifactNumToKeep: '{build-artifact-num-to-keep}'
46
47     parameters:
48       - project-parameter:
49           project: 'sweetcomb'
50       - gerrit-parameter:
51           branch: '{branch}'
52       - os-parameter:
53           os: '{os}'
54
55     scm:
56       - gerrit-trigger-scm:
57           credentials-id: 'jenkins-gerrit-credentials'
58           refspec: '$GERRIT_REFSPEC'
59           choosing-strategy: 'gerrit'
60
61     wrappers:
62       - fdio-infra-wrappers:
63           build-timeout: '{build-timeout}'
64
65     triggers:
66       - gerrit-trigger-patch-submitted:
67           name: 'sweetcomb'
68           branch: '{branch}'
69
70     publishers:
71       - fdio-infra-shiplogs:
72           maven-version: 'mvn33-new'
73
74 - job-template:
75     name: 'sweetcomb-merge-{stream}-{os}'
76
77     project-type: freestyle
78     node: '{os}-basebuild-4c-4g'
79
80     build-discarder:
81       daysToKeep: '{build-days-to-keep}'
82       numToKeep: '{build-num-to-keep}'
83       artifactDaysToKeep: '{build-artifact-days-to-keep}'
84       artifactNumToKeep: '{build-artifact-num-to-keep}'
85
86     parameters:
87       - project-parameter:
88           project: 'sweetcomb'
89       - gerrit-parameter:
90           branch: '{branch}'
91       - os-parameter:
92           os: '{os}'
93
94     scm:
95       - gerrit-trigger-scm:
96           credentials-id: 'jenkins-gerrit-credentials'
97           refspec: ''
98           choosing-strategy: 'default'
99
100     wrappers:
101       - fdio-infra-wrappers:
102           build-timeout: '{build-timeout}'
103
104     triggers:
105       - gerrit-trigger-patch-merged:
106           name: 'sweetcomb'
107           branch: '{branch}'
108
109     publishers:
110       - fdio-infra-shiplogs:
111           maven-version: 'mvn33-new'
112