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