Clean up old packaging builds after 7 days
[releng/builder.git] / jjb / packaging / packaging.yaml
1 - project:
2     name: packaging
3     project-name: packaging
4
5     jobs:
6         - '{project-name}-verify-python-{stream}'
7         - '{project-name}-build-rpm-{stream}'
8
9     project: 'integration/packaging'
10
11     stream:
12         - master:
13             branch: 'master'
14
15 - job-template:
16     name: '{project-name}-build-rpm-{stream}'
17
18     node: dynamic_verify
19
20     logrotate:
21         daysToKeep: '7'
22
23     parameters:
24         - opendaylight-infra-parameters:
25             project: '{project}'
26             branch: '{branch}'
27             refspec: 'refs/heads/{branch}'
28             artifacts: '{archive-artifacts}'
29         - string:
30             name: VERSION_MAJOR
31             default: '5'
32             description: 'OpenDaylight major (element) version number to build'
33         - string:
34             name: VERSION_MINOR
35             default: '0'
36             description: 'OpenDaylight minor (SR) version number to build'
37         - string:
38             name: VERSION_PATCH
39             default: '0'
40             description: 'OpenDaylight patch version to build'
41         - string:
42             name: RPM_RELEASE
43             default: '1'
44             description: 'RPM version for the given ODL major.minor.patch'
45         - string:
46             name: SYSD_COMMIT
47             default: '07f7c83b0ef46ad3809e5be03e09a77fe554eeae'
48             description: 'Version of ODL systemd unitfile to download and package in ODL RPM'
49         - string:
50             name: CODENAME
51             default: 'Boron'
52             description: 'Elemental codename for the ODL release, including SR if applicable'
53         - string:
54             name: DOWNLOAD_URL
55             default: 'https://nexus.opendaylight.org/content/repositories/public/org/opendaylight/integration/distribution-karaf/0.5.0-Boron/distribution-karaf-0.5.0-Boron.tar.gz'
56             description: 'URL to ODL tarball artifact to repackage into RPM'
57         - string:
58             name: CHANGELOG_DATE
59             default: 'Sun Aug 25 1991'
60             description: 'Date this RPM was defined'
61         - string:
62             name: CHANGELOG_NAME
63             default: 'Jenkins'
64             description: 'Name of person who defined RPM'
65         - string:
66             name: CHANGELOG_EMAIL
67             default: 'jenkins-donotreply@opendaylight.org'
68             description: 'Email of person who defined RPM'
69
70     scm:
71         - integration-gerrit-scm:
72             basedir: 'packaging'
73             refspec: '$GERRIT_REFSPEC'
74             branch: 'master'
75
76     builders:
77         - shell: !include-raw: include-raw-build-rpm.sh
78
79     publishers:
80     - archive-artifacts:
81         artifacts: '**/*.rpm'