Manage ODL Jenkins views with view-templates
[releng/builder.git] / jjb / packaging / puppet.yaml
1 ---
2 - project:
3     name: puppet
4     project-name: puppet
5
6     jobs:
7       - '{project-name}-test-sanity-{stream}'
8       - '{project-name}-test-full-{stream}'
9       - gerrit-tox-verify
10
11     project: 'integration/packaging/puppet-opendaylight'
12
13     stream:
14       - master:
15           branch: 'master'
16       - fluorine:
17           branch: 'stable/fluorine'
18       - oxygen:
19           branch: 'stable/oxygen'
20
21 - job-template:
22     name: '{project-name}-test-sanity-{stream}'
23
24     node: centos7-docker-1c-4g
25
26     project-type: freestyle
27
28     properties:
29       - opendaylight-infra-properties:
30           build-days-to-keep: 7
31
32     parameters:
33       - opendaylight-infra-parameters:
34           os-cloud: '{os-cloud}'
35           project: '{project}'
36           branch: '{branch}'
37           refspec: 'refs/heads/{branch}'
38           artifacts: '{archive-artifacts}'
39       - string:
40           name: TEST_SUITE
41           default: 'sanity'
42           description: 'Set of tests to execute, Rakefile task'
43
44     scm:
45       - integration-gerrit-scm:
46           basedir: '{project-name}'
47           refspec: '$GERRIT_REFSPEC'
48           branch: '{branch}'
49
50     wrappers:
51       - opendaylight-infra-wrappers:
52           build-timeout: '{build-timeout}'
53
54     builders:
55       - shell: !include-raw: test-puppet.sh
56
57     triggers:
58       - timed: '@weekly'
59       - gerrit-trigger-patch-submitted:
60           gerrit-server-name: '{gerrit-server-name}'
61           project: '{project}'
62           branch: '{branch}'
63           files: '**'
64           forbidden-files: ''
65
66     publishers:
67       - lf-infra-publish
68
69 - job-template:
70     name: '{project-name}-test-full-{stream}'
71
72     node: centos7-docker-1c-4g
73
74     project-type: freestyle
75
76     properties:
77       - opendaylight-infra-properties:
78           build-days-to-keep: 7
79
80     parameters:
81       - opendaylight-infra-parameters:
82           os-cloud: '{os-cloud}'
83           project: '{project}'
84           branch: '{branch}'
85           refspec: 'refs/heads/{branch}'
86           artifacts: '{archive-artifacts}'
87       - string:
88           name: TEST_SUITE
89           default: 'acceptance_dock'
90           description: 'Set of tests to execute, Rakefile task'
91
92     scm:
93       - integration-gerrit-scm:
94           basedir: '{project-name}'
95           refspec: '$GERRIT_REFSPEC'
96           branch: '{branch}'
97
98     wrappers:
99       - opendaylight-infra-wrappers:
100           build-timeout: '{build-timeout}'
101
102     builders:
103       - shell: !include-raw: test-puppet.sh
104
105     triggers:
106       - timed: '@daily'
107       - gerrit:
108           server-name: '{gerrit-server-name}'
109           trigger-on:
110             - comment-added-contains-event:
111                 comment-contains-value: 'puppet-test-full'
112           projects:
113             - project-compare-type: 'ANT'
114               project-pattern: '{project}'
115               branches:
116                 - branch-compare-type: 'ANT'
117                   branch-pattern: '**/{branch}'
118
119     publishers:
120       - lf-infra-publish
121
122 - project:
123     name: puppet-view
124     views:
125       - project-view
126     project-name: puppet