java_version: "= 1:1.7.0"
sysd_commit: c6d7ee1f21d62ff8ffb741c7a12c3d8d3aa3d6ed
codename: Helium-SR4
+ download_url: "https://nexus.opendaylight.org/content/repositories/public/org/opendaylight/integration/distribution-karaf/0.2.4-Helium-SR4/distribution-karaf-0.2.4-Helium-SR4.tar.gz"
changelog: |
* Tue Sep 15 2015 Daniel Farrell <dfarrell@redhat.com> - 2.4.0-1
- Create Helium SR4 RPM
java_version: ">= 1:1.7.0"
sysd_commit: c6d7ee1f21d62ff8ffb741c7a12c3d8d3aa3d6ed
codename: Lithium
+ download_url: "https://nexus.opendaylight.org/content/repositories/public/org/opendaylight/integration/distribution-karaf/0.3.0-Lithium/distribution-karaf-0.3.0-Lithium.tar.gz"
changelog: |
* Fri Jul 17 2015 Daniel Farrell <dfarrell@redhat.com> - 3.0.0-2
- Include required disttag in RPM release version
java_version: ">= 1:1.7.0"
sysd_commit: c6d7ee1f21d62ff8ffb741c7a12c3d8d3aa3d6ed
codename: Lithium-SR1
+ download_url: "https://nexus.opendaylight.org/content/repositories/public/org/opendaylight/integration/distribution-karaf/0.3.1-Lithium-SR1/distribution-karaf-0.3.1-Lithium-SR1.tar.gz"
changelog: |
* Tue Sep 15 2015 Daniel Farrell <dfarrell@redhat.com> - 3.1.0-1
- Create Lithium SR1 RPM
java_version: ">= 1:1.7.0"
sysd_commit: c6d7ee1f21d62ff8ffb741c7a12c3d8d3aa3d6ed
codename: Lithium-SR2
+ download_url: "https://nexus.opendaylight.org/content/repositories/public/org/opendaylight/integration/distribution-karaf/0.3.2-Lithium-SR2/distribution-karaf-0.3.2-Lithium-SR2.tar.gz"
changelog: |
* Mon Oct 26 2015 Daniel Farrell <dfarrell@redhat.com> - 3.2.0-1
- Create Lithium SR2 RPM
java_version: ">= 1:1.7.0"
sysd_commit: c6d7ee1f21d62ff8ffb741c7a12c3d8d3aa3d6ed
codename: Lithium-SR3
+ download_url: "https://nexus.opendaylight.org/content/repositories/public/org/opendaylight/integration/distribution-karaf/0.3.3-Lithium-SR3/distribution-karaf-0.3.3-Lithium-SR3.tar.gz"
changelog: |
* Fri Dec 11 2015 Daniel Farrell <dfarrell@redhat.com> - 3.3.0-1
- Create Lithium SR3 RPM
+ - version_major: 4
+ version_minor: 0
+ version_patch: 0
+ rpm_release: 1.201512150335
+ rpm_disttag: el7
+ java_version: ">= 1:1.7.0"
+ sysd_commit: c6d7ee1f21d62ff8ffb741c7a12c3d8d3aa3d6ed
+ codename: Test-beryllium-v201512150335
+ download_url: "https://nexus.opendaylight.org/content/repositories/staging/org/opendaylight/integration/distribution-karaf/0.4.0-Test-beryllium-v201512150335/distribution-karaf-0.4.0-Test-beryllium-v201512150335.tar.gz"
+ changelog: |
+ * Tue Dec 15 2015 Daniel Farrell <dfarrell@redhat.com> - 4.0.0-1.201512150335
+ - Create Beryllium Experimental Release Preview RPM
"""
# Specialize a series of name/URL templates for the given build
odl_tarball = odl_template.substitute(build)
- odl_tarball_url = odl_url_template.substitute(build)
unitfile = unitfile_template.substitute(build)
unitfile_url = unitfile_url_template.substitute(build)
unitfile_tarball = unitfile_tb_template.substitute(build)
# Cache appropriate version of OpenDaylight's release tarball
if not os.path.isfile(odl_tarball_path):
- print("Downloading: {}".format(odl_tarball_url))
- urllib.urlretrieve(odl_tarball_url, odl_tarball_path)
+ print("Downloading: {}".format(build["download_url"]))
+ urllib.urlretrieve(build["download_url"], odl_tarball_path)
print("Cached: {}".format(odl_tarball))
else:
print("Already cached: {}".format(odl_tarball))