c3dca13bce26ee8e5fedcdfb90b44102c12a9f42
[releng/builder.git] / jjb / packaging / ansible.yaml
1 ---
2 - project:
3     name: ansible
4     project-name: ansible
5
6     jobs:
7       - '{project-name}-test-rpm-{stream}'
8       - '{project-name}-test-deb-{stream}'
9       - gerrit-tox-verify
10
11     project: 'integration/packaging/ansible-opendaylight'
12
13     stream:
14       - master:
15           branch: 'master'
16
17 - job-template:
18     name: '{project-name}-test-rpm-{stream}'
19
20     node: centos7-builder-2c-2g
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
36     scm:
37       - integration-gerrit-scm:
38           basedir: '{project-name}'
39           refspec: '$GERRIT_REFSPEC'
40           branch: '{branch}'
41
42     wrappers:
43       - opendaylight-infra-wrappers:
44           build-timeout: '{build-timeout}'
45
46     builders:
47       - shell: !include-raw: setup-ansible-rpm.sh
48       - shell: !include-raw: test-ansible-rpm-default-config.sh
49       - shell: !include-raw: test-ansible-rpm-custom-config.sh
50
51     triggers:
52       - timed: '@daily'
53       - gerrit-trigger-patch-submitted:
54           gerrit-server-name: '{gerrit-server-name}'
55           project: '{project}'
56           branch: '{branch}'
57           files: '**'
58           forbidden-files: ''
59
60
61     publishers:
62       - lf-infra-publish
63
64 - job-template:
65     name: '{project-name}-test-deb-{stream}'
66
67     node: ubuntu1604-mininet-ovs-25-1c-4g
68
69     project-type: freestyle
70
71     properties:
72       - opendaylight-infra-properties:
73           build-days-to-keep: 7
74
75     parameters:
76       - opendaylight-infra-parameters:
77           os-cloud: '{os-cloud}'
78           project: '{project}'
79           branch: '{branch}'
80           refspec: 'refs/heads/{branch}'
81           artifacts: '{archive-artifacts}'
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: setup-ansible-deb.sh
95       - shell: !include-raw: test-ansible-deb-default-config.sh
96       - shell: !include-raw: test-ansible-deb-custom-config.sh
97
98     triggers:
99       - timed: '@daily'
100       - gerrit-trigger-patch-submitted:
101           gerrit-server-name: '{gerrit-server-name}'
102           project: '{project}'
103           branch: '{branch}'
104           files: '**'
105           forbidden-files: ''
106
107     publishers:
108       - lf-infra-publish