From 976e4771dcf51d6f5c4aa2a0bece78d350e9b106 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sat, 25 Oct 2014 22:35:33 +0200 Subject: leave changelog version and git commit id next to the build results too --- bin/chroot-run.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/chroot-run.sh b/bin/chroot-run.sh index c92e4b73..07c6802d 100755 --- a/bin/chroot-run.sh +++ b/bin/chroot-run.sh @@ -82,10 +82,9 @@ cleanup() { # # special case debian-edu-doc # - CHANGES=$(cd $CHROOT_TARGET/tmp/ ; ls -1 debian-edu-doc_*.changes 2>/dev/null|| true) + CHANGES=$(ls -1 $CHROOT_TARGET/tmp/debian-edu-doc_*.changes 2>/dev/null|| true) if [ ! -z "$CHANGES" ] ; then echo "Extracting contents from .deb files..." - cd $CHROOT_TARGET/tmp/ NEWDOC=$(mktemp -d) for DEB in $(dcmd --deb $CHANGES) ; do dpkg --extract $DEB $NEWDOC 2>/dev/null @@ -94,8 +93,10 @@ cleanup() { rm -rf $EDUDOC mkdir $EDUDOC mv $NEWDOC/usr/share/doc/debian-edu-doc-* $EDUDOC/ + VERSION=$(echo $CHANGES | cut -d "_" -f2) + touch "$EDUDOC/${VERSION}_git${GIT_COMMIT:0:8}" rm -r $NEWDOC - MESSAGE="https://jenkins.debian.net/userContent/debian-edu-doc/ has been updated." + MESSAGE="https://jenkins.debian.net/userContent/debian-edu-doc/ has been updated from ${GIT_COMMIT:0:8}" kgb-client --conf /srv/jenkins/kgb/debian-edu.conf --relay-msg "$MESSAGE" echo echo $MESSAGE -- cgit v1.2.3-70-g09d2