Cache pulled tarballs locally.

master
Simon Quigley 5 years ago
parent 89ca7bdef0
commit 5401b23b99

@ -60,7 +60,8 @@ export UPSTREAM_VERSION="$(head -1 {{ NAME }}/debian/changelog | sed -n '/(/,/)/
export VERSION="$UPSTREAM_VERSION+git$(date +'%Y%m%d%H%M')~{{ RELEASE }}";
export DEBFULLNAME="Lugito"
export DEBEMAIL="info@lubuntu.me"
(cd {{ NAME }}; uscan --download-current-version)
export USCAN_DESTDIR="/var/lib/jenkins/tars/"
(cd {{ NAME }}; uscan --download-current-version && cp $USCAN_DESTDIR/{{ NAME }}_$UPSTREAM_VERSION.orig* ..)
bash -c 'for FILENAME in {{ NAME }}_$UPSTREAM_VERSION.orig*; do mv $FILENAME $(echo $FILENAME | sed "s/$UPSTREAM_VERSION/$VERSION/"); done'
(cd {{ NAME }}; dch --distribution {{ RELEASE }} --package "{{ NAME }}" --newversion "$VERSION-0ubuntu1~ppa1" "CI upload."; debuild -S -d -sa -k06DA7DDBBF3117FFE3FB849E4F81E626A09EB338; dput {{ UPLOAD_TARGET }} ../{{ NAME }}_$VERSION-0ubuntu1~ppa1_source.changes)
sleep 5m;

Loading…
Cancel
Save