nokia / git-changelog-generator

Git Changelog Generator
https://pypi.python.org/pypi/gcg
BSD 3-Clause "New" or "Revised" License
14 stars 5 forks source link

automate deployment of packages to bintray #16

Closed weakcamel closed 6 years ago

weakcamel commented 6 years ago

Plan of action:

Note: credentials need to be secured.

weakcamel commented 6 years ago

Supplementing material:

weakcamel commented 6 years ago

As it turned out, deployment with Bintray Travis publisher is completely unreliable. Travis happily fails and reports success of a failed deployment.

Also the matrix parameters don't get properly handled so deployment of DEB packages fails. So bad...

Example: https://api.travis-ci.org/v3/job/382148699/log.txt

[Bintray Upload] Reading descriptor file: dist/deb-spec.json
[Bintray Upload] Uploading file 'deb_dist/gcg-0.1.4rc2/debian/python-gcg.debhelper.log' to pool/g/python-gcg/gcg-0.1.4rc2/debian/python-gcg.deb
[Bintray Upload] Bintray response: 400 Bad Request. Unable to upload files: Debian distribution, component and architecture were not found on repo and were not specified
[Bintray Upload] Uploading file 'deb_dist/gcg-0.1.4rc2/debian/python-gcg.postinst.debhelper' to pool/g/python-gcg/gcg-0.1.4rc2/debian/python-gcg.postinst.deb
[Bintray Upload] Bintray response: 400 Bad Request. Unable to upload files: Debian distribution, component and architecture were not found on repo and were not specified
[Bintray Upload] Uploading file 'deb_dist/gcg-0.1.4rc2/debian/python-gcg.prerm.debhelper' to pool/g/python-gcg/gcg-0.1.4rc2/debian/python-gcg.prerm.deb
[Bintray Upload] Bintray response: 400 Bad Request. Unable to upload files: Debian distribution, component and architecture were not found on repo and were not specified
[Bintray Upload] Uploading file 'deb_dist/gcg_0.1.4rc2-1.debian.tar.xz' to pool/g/python-gcg/gcg_0.1.4rc2-1.deb
[Bintray Upload] Bintray response: 400 Bad Request. Unable to upload files: Debian distribution, component and architecture were not found on repo and were not specified
[Bintray Upload] Uploading file 'deb_dist/python-gcg_0.1.4rc2-1_all.deb' to pool/g/python-gcg/python-gcg_0.1.4rc2-1_all.deb
[Bintray Upload] Bintray response: 400 Bad Request. Unable to upload files: Debian distribution, component and architecture were not found on repo and were not specified
[Bintray Upload] Publishing version '0.1.4rc2' of package 'python-gcg-xenial'...
[Bintray Upload] Bintray response: 200 OK. 

Switching to a provider: script and a deploy script instead