mirror of
https://github.com/lubuntu-team/ci-tooling.git
synced 2025-05-18 04:11:29 +00:00
Actually allow it to upload to Launchpad now.
This commit is contained in:
parent
2fa2757ead
commit
f57be5f8d4
@ -139,13 +139,15 @@ class Generator:
|
|||||||
url = package["packaging_url"]
|
url = package["packaging_url"]
|
||||||
branch = package["packaging_branch"]
|
branch = package["packaging_branch"]
|
||||||
upstream = package["upstream_url"]
|
upstream = package["upstream_url"]
|
||||||
|
upload_target = package["upload_target"]
|
||||||
# TODO: This is just a dummy command to run in order to test
|
# TODO: This is just a dummy command to run in order to test
|
||||||
# the config updating
|
# the config updating
|
||||||
package_config = template.render(PACKAGING_URL=url,
|
package_config = template.render(PACKAGING_URL=url,
|
||||||
PACKAGING_BRANCH=branch,
|
PACKAGING_BRANCH=branch,
|
||||||
UPSTREAM_URL=upstream,
|
UPSTREAM_URL=upstream,
|
||||||
NAME=package["name"],
|
NAME=package["name"],
|
||||||
RELEASE=release)
|
RELEASE=release,
|
||||||
|
UPLOAD_TARGET=upload_target)
|
||||||
if job_name in jobs:
|
if job_name in jobs:
|
||||||
job = server.get_job(job_name)
|
job = server.get_job(job_name)
|
||||||
job.update_config(package_config)
|
job.update_config(package_config)
|
||||||
|
@ -45,8 +45,9 @@ mv -v debian {{ NAME }};
|
|||||||
git clone {{ UPSTREAM_URL }} upstream;
|
git clone {{ UPSTREAM_URL }} upstream;
|
||||||
export VERSION="$(head -1 {{ NAME }}/debian/changelog | sed -n '/(/,/)/{:a; $!N; /)/!{$!ba}; s/.*(\([^)]*\)).*/\1/p}' | cut -d '-' -f1)+git$(date +'%Y%m%d%H%M')";
|
export VERSION="$(head -1 {{ NAME }}/debian/changelog | sed -n '/(/,/)/{:a; $!N; /)/!{$!ba}; s/.*(\([^)]*\)).*/\1/p}' | cut -d '-' -f1)+git$(date +'%Y%m%d%H%M')";
|
||||||
sed -i "1i{{ NAME }} ($VERSION-0ubuntu1~ppa1) {{ RELEASE }}; urgency=low\n\n * CI upload.\n\n –– Lugito <info@lubuntu.me> $(date +'%a, %d %b %Y %T %z')\n" {{ NAME }}/debian/changelog;
|
sed -i "1i{{ NAME }} ($VERSION-0ubuntu1~ppa1) {{ RELEASE }}; urgency=low\n\n * CI upload.\n\n –– Lugito <info@lubuntu.me> $(date +'%a, %d %b %Y %T %z')\n" {{ NAME }}/debian/changelog;
|
||||||
cat {{ NAME }}/debian/changelog;
|
tar cvf {{ NAME }}_$VERSION.orig.tar;
|
||||||
gpg --list-keys
|
gzip {{ NAME }}_$VERSION.orig.tar;
|
||||||
|
(cd {{ NAME }}; debuild -S -d -sa; dput {{ UPLOAD_TARGET }} ../{{ NAME }}_$VERSION-0ubuntu1~ppa1_source.changes)
|
||||||
</command>
|
</command>
|
||||||
</hudson.tasks.Shell>
|
</hudson.tasks.Shell>
|
||||||
</builders>
|
</builders>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user