Add timestamp.txt to debian-openstack repo

This provides information when we last made changes to the repo.

Change-Id: I73c6bb92f7c9410f7e37a501bd2fedea126f469f
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2016-08-25 15:44:22 -04:00
parent 90963bd2c4
commit a5dd928a07
No known key found for this signature in database
GPG Key ID: 611A80832067AF38
2 changed files with 11 additions and 7 deletions

View File

@ -4,12 +4,16 @@
- shell: |
#!/bin/bash -xe
AFS_DIR=/afs/.openstack.org/mirror/deb-openstack
BASE=/afs/.openstack.org/mirror/deb-openstack
BRANCH=$(echo $ZUUL_REFNAME | cut -d/ -f2)
PACKAGE_DIR=$WORKSPACE/packages
PROJECT=$(echo $ZUUL_PROJECT | cut -d/ -f2)
URL=http://tarballs.openstack.org/packaging-deb/$PROJECT/uploads/$ZUUL_COMMIT
K5START="k5start -t -f /etc/packaging.keytab \
service/packaging \
-- timeout -k 2m 30m"
# Build up which distribution we are using. Here we will be
# converting:
# jessie-> jessie-newton
@ -35,10 +39,7 @@
--directory-prefix=$PACKAGE_DIR \
$URL/
REPREPRO="k5start -t -f /etc/packaging.keytab \
service/packaging \
-- timeout -k 2m 30m \
reprepro --confdir /etc/reprepro/{reprepro}"
REPREPRO="$K5START reprepro --confdir /etc/reprepro/{reprepro}"
# Get an afs token and import the packages to reprepro
echo "Obtaining token and importing packages to reprepro"
@ -54,6 +55,7 @@
echo "List all packages"
$REPREPRO list $DISTRIBUTION
date --iso-8601=ns | $K5START tee $BASE/timestamp.txt
echo "Done."
- builder:

View File

@ -14,7 +14,7 @@
# under the License.
CODENAME=$1
AFS_DIR=/afs/.openstack.org/mirror/debian-openstack
BASE=/afs/.openstack.org/mirror/debian-openstack
BRANCH=$(echo $ZUUL_REFNAME | cut -d/ -f2)
K5START="k5start -t -f /etc/packaging.keytab \
service/packaging \
@ -31,7 +31,9 @@ if ! [ -z "${array[1]}" ]; then
DISTRIBUTION+="-${array[1]}"
fi
cd $AFS_DIR/dists/$DISTRIBUTION
cd $BASE/dists/$DISTRIBUTION
$K5START gpg --armor --detach-sign --output Release.gpg Release
$K5START gpg --armor --clearsign --output InRelease Release
date --iso-8601=ns | $K5START tee $BASE/timestamp.txt