tldk.yaml revision 36a5a0cd
1- project:
2    name: tldk
3    jobs:
4        - '{project}-verify-{stream}-{os}'
5        - '{project}-merge-{stream}-{os}'
6        - '{project}-verify-image-{stream}-{os}'
7
8    project: 'tldk'
9    os:
10        - ubuntu1404
11        - ubuntu1604
12        - centos7
13    stream:
14        - master:
15            branch: 'master'
16
17- job-template:
18    name: '{project}-verify-{stream}-{os}'
19
20    project-type: freestyle
21    node: '{os}-basebuild-4c-4g'
22    concurrent: true
23
24    logrotate:
25        daysToKeep: '{build-days-to-keep}'
26        numToKeep: '{build-num-to-keep}'
27        artifactDaysToKeep: '{build-artifact-days-to-keep}'
28        artifactNumToKeep: '{build-artifact-num-to-keep}'
29
30    parameters:
31        - project-parameter:
32            project: '{project}'
33        - gerrit-parameter:
34            branch: '{branch}'
35        - os-parameter:
36            os: '{os}'
37
38    scm:
39        - gerrit-trigger-scm:
40            credentials-id: 'jenkins-gerrit-credentials'
41            refspec: '$GERRIT_REFSPEC'
42            choosing-strategy: 'gerrit'
43
44    wrappers:
45        - fdio-infra-wrappers:
46            build-timeout: '{build-timeout}'
47
48    triggers:
49        - gerrit-trigger-patch-submitted:
50            name: '{project}'
51            branch: '{branch}'
52
53    builders:
54        - shell:
55            !include-raw-escape: include-raw-build.sh
56
57- job-template:
58    name: '{project}-verify-image-{stream}-{os}'
59
60    project-type: freestyle
61    node: '{os}-basebuild-4c-4g'
62    concurrent: true
63
64    logrotate:
65        daysToKeep: '{build-days-to-keep}'
66        numToKeep: '{build-num-to-keep}'
67        artifactDaysToKeep: '{build-artifact-days-to-keep}'
68        artifactNumToKeep: '{build-artifact-num-to-keep}'
69
70    parameters:
71        - project-parameter:
72            project: '{project}'
73        - gerrit-parameter:
74            branch: '{branch}'
75        - os-parameter:
76            os: '{os}'
77
78    scm:
79        - gerrit-trigger-scm:
80            credentials-id: 'jenkins-gerrit-credentials'
81            refspec: '$GERRIT_REFSPEC'
82            choosing-strategy: 'gerrit'
83
84    wrappers:
85        - fdio-infra-wrappers:
86            build-timeout: '{build-timeout}'
87
88    triggers:
89        - gerrit:
90            server-name: 'Primary'
91            trigger-on:
92                - comment-added-contains-event:
93                    comment-contains-value: 'verify-images'
94            projects:
95              - project-compare-type: 'ANT'
96                project-pattern: '{project}'
97                branches:
98                  - branch-compare-type: 'ANT'
99                    branch-pattern: '**/{branch}'
100            skip-vote:
101                successful: true
102                failed: true
103                unstable: true
104                notbuilt: true
105
106    builders:
107        - shell:
108            !include-raw-escape: include-raw-build.sh
109
110- job-template:
111    name: '{project}-merge-{stream}-{os}'
112
113    project-type: freestyle
114    node: '{os}-basebuild-4c-4g'
115
116    logrotate:
117        daysToKeep: '{build-days-to-keep}'
118        numToKeep: '{build-num-to-keep}'
119        artifactDaysToKeep: '{build-artifact-days-to-keep}'
120        artifactNumToKeep: '{build-artifact-num-to-keep}'
121
122    parameters:
123        - project-parameter:
124            project: '{project}'
125        - gerrit-parameter:
126            branch: '{branch}'
127        - os-parameter:
128            os: '{os}'
129
130    scm:
131        - gerrit-trigger-scm:
132            credentials-id: 'jenkins-gerrit-credentials'
133            refspec: ''
134            choosing-strategy: 'default'
135
136    wrappers:
137        - fdio-infra-wrappers:
138            build-timeout: '{build-timeout}'
139
140    triggers:
141        - gerrit-trigger-patch-merged:
142            name: '{project}'
143            branch: '{branch}'
144
145    builders:
146        - shell:
147            !include-raw-escape: include-raw-build.sh
148