Merge "Add upgrade tests job"
[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       - shell: !include-raw: test-ansible-rpm-upgrade.sh
51
52     triggers:
53       - timed: '@weekly'
54       - gerrit-trigger-patch-submitted:
55           gerrit-server-name: '{gerrit-server-name}'
56           project: '{project}'
57           branch: '{branch}'
58           files: '**'
59           forbidden-files: ''
60
61
62     publishers:
63       - lf-infra-publish
64
65 - job-template:
66     name: '{project-name}-test-deb-{stream}'
67
68     node: ubuntu1604-mininet-ovs-25-1c-4g
69
70     project-type: freestyle
71
72     properties:
73       - opendaylight-infra-properties:
74           build-days-to-keep: 7
75
76     parameters:
77       - opendaylight-infra-parameters:
78           os-cloud: '{os-cloud}'
79           project: '{project}'
80           branch: '{branch}'
81           refspec: 'refs/heads/{branch}'
82           artifacts: '{archive-artifacts}'
83
84     scm:
85       - integration-gerrit-scm:
86           basedir: '{project-name}'
87           refspec: '$GERRIT_REFSPEC'
88           branch: '{branch}'
89
90     wrappers:
91       - opendaylight-infra-wrappers:
92           build-timeout: '{build-timeout}'
93
94     builders:
95       - shell: !include-raw: setup-ansible-deb.sh
96       - shell: !include-raw: test-ansible-deb-default-config.sh
97       - shell: !include-raw: test-ansible-deb-custom-config.sh
98
99     triggers:
100       - timed: '@weekly'
101       - gerrit-trigger-patch-submitted:
102           gerrit-server-name: '{gerrit-server-name}'
103           project: '{project}'
104           branch: '{branch}'
105           files: '**'
106           forbidden-files: ''
107
108     publishers:
109       - lf-infra-publish
110
111 - project:
112     name: ansible-view
113     views:
114       - project-view
115     project-name: ansible