]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
fix pathes
authorHolger Levsen <holger@layer-acht.org>
Thu, 11 Oct 2012 11:02:08 +0000 (13:02 +0200)
committerHolger Levsen <holger@layer-acht.org>
Thu, 11 Oct 2012 11:02:08 +0000 (13:02 +0200)
liveboot_build.sh

index ec5c93f112ac608ce0211a6b6c8102ee532a59ab..d90e6129359385b45a395e26dd402d453dca9a81 100755 (executable)
@@ -7,6 +7,8 @@ set -e
 #set -x
 export
 
+SCRIPTSDIR=$(dirname $0)
+
 #
 # Define default settings
 #
@@ -41,7 +43,7 @@ EOF
 # add liveboot build to cidb
 #
 BUILD_START=$(date +%s)
-./liveboot2db.py $JOB_NAME $BUILD_NUMBER
+$SCRIPTSDIR/liveboot2db.py $JOB_NAME $BUILD_NUMBER
 
 #
 # build liveboot
@@ -53,7 +55,7 @@ rm $BUILD_SCRIPT
 # add liveboot build result to cidb
 #
 BUILD_END=$(date +%s)
-./liveboot2db.py $JOB_NAME $BUILD_NUMBER $BUILD_START $BUILD_END
+$SCRIPTSDIR/liveboot2db.py $JOB_NAME $BUILD_NUMBER $BUILD_START $BUILD_END
 
 # FIXME: too much sudo here...
 cd /srv/build/liveboot/builds