Add disable-job var to packaging templates
[releng/builder.git] / jjb / packaging / packaging-ansible.yaml
1 ---
2 - project:
3     name: packaging-ansible
4     project-name: packaging-ansible
5
6     jobs:
7       - '{project-name}-test-rpm-{stream}'
8       - '{project-name}-test-deb-{stream}':
9           disable-job: true
10       - gerrit-tox-verify
11
12     project: 'integration/packaging/ansible-opendaylight'
13
14     stream:
15       - master:
16           branch: 'master'
17
18 - job-template:
19     name: '{project-name}-test-rpm-{stream}'
20
21     node: centos7-builder-2c-2g
22
23     project-type: freestyle
24
25     disable-job: '{disable-job}'
26
27     properties:
28       - opendaylight-infra-properties:
29           build-days-to-keep: 7
30
31     parameters:
32       - opendaylight-infra-parameters:
33           os-cloud: '{os-cloud}'
34           project: '{project}'
35           branch: '{branch}'
36           refspec: 'refs/heads/{branch}'
37           artifacts: '{archive-artifacts}'
38
39     scm:
40       - integration-gerrit-scm:
41           basedir: '{project-name}'
42           refspec: '$GERRIT_REFSPEC'
43           branch: '{branch}'
44
45     wrappers:
46       - opendaylight-infra-wrappers:
47           build-timeout: '{build-timeout}'
48
49     builders:
50       - shell: !include-raw: setup-ansible-rpm.sh
51       - shell: !include-raw: test-ansible-rpm-default-config.sh
52       - shell: !include-raw: test-ansible-rpm-custom-config.sh
53       - shell: !include-raw: test-ansible-rpm-upgrade.sh
54
55     triggers:
56       - timed: '@weekly'
57       - gerrit-trigger-patch-submitted:
58           gerrit-server-name: '{gerrit-server-name}'
59           project: '{project}'
60           branch: '{branch}'
61           files: '**'
62           forbidden-files: ''
63
64
65     publishers:
66       - lf-infra-publish
67
68 - job-template:
69     name: '{project-name}-test-deb-{stream}'
70
71     node: ubuntu1604-mininet-ovs-25-1c-4g
72
73     project-type: freestyle
74
75     disable-job: '{disable-job}'
76
77     properties:
78       - opendaylight-infra-properties:
79           build-days-to-keep: 7
80
81     parameters:
82       - opendaylight-infra-parameters:
83           os-cloud: '{os-cloud}'
84           project: '{project}'
85           branch: '{branch}'
86           refspec: 'refs/heads/{branch}'
87           artifacts: '{archive-artifacts}'
88
89     scm:
90       - integration-gerrit-scm:
91           basedir: '{project-name}'
92           refspec: '$GERRIT_REFSPEC'
93           branch: '{branch}'
94
95     wrappers:
96       - opendaylight-infra-wrappers:
97           build-timeout: '{build-timeout}'
98
99     builders:
100       - shell: !include-raw: setup-ansible-deb.sh
101       - shell: !include-raw: test-ansible-deb-default-config.sh
102       - shell: !include-raw: test-ansible-deb-custom-config.sh
103
104     triggers:
105       - timed: '@weekly'
106       - gerrit-trigger-patch-submitted:
107           gerrit-server-name: '{gerrit-server-name}'
108           project: '{project}'
109           branch: '{branch}'
110           files: '**'
111           forbidden-files: ''
112
113     publishers:
114       - lf-infra-publish
115
116 - project:
117     name: packaging-ansible-view
118     views:
119       - project-view
120     project-name: packaging-ansible