summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2017-04-19 14:16:38 +0200
committerHolger Levsen <holger@layer-acht.org>2017-04-19 14:16:38 +0200
commit47256569e1fb51a22cf8ee82b03ebf8f3991710e (patch)
tree99593dadd50a5f59e3f21d110fdc1f5199df948f
parenta4b38b16a9818c5b55bbc5e940a0b617381d9474 (diff)
downloadjenkins.debian.net-47256569e1fb51a22cf8ee82b03ebf8f3991710e.tar.xz
reproducible Debian: remove link first, else target will end up inside linked directory
Signed-off-by: Holger Levsen <holger@layer-acht.org>
-rwxr-xr-xbin/reproducible_build_service.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/reproducible_build_service.sh b/bin/reproducible_build_service.sh
index 038c7796..4c88566a 100755
--- a/bin/reproducible_build_service.sh
+++ b/bin/reproducible_build_service.sh
@@ -22,6 +22,7 @@ BUILD_BASE=/var/lib/jenkins/userContent/reproducible/debian/build_service/$1
OLD_ID=$(ls -1rt $BUILD_BASE|grep -v latest|sort -n|tail -1)
let BUILD_ID=OLD_ID+1
mkdir -p $BUILD_BASE/$BUILD_ID
+rm -f $BUILD_BASE/latest
ln -sf $BUILD_ID $BUILD_BASE/latest
export BUILD_URL=https://jenkins.debian.net/userContent/build_service/$1/