Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


Makes it easier to move the jenkins install directory without the need to change
paths in 'start-lo-jenkins.sh'

This script could now be placed as a file in the contrib/devtools/ubuntu-jenkins
dir alternative to being generated by setup-ubuntu-jenkins.sh as it currently is.
I'm not sure what's preferable.



--Henrik Jensen

(HenrikJ on #libreoffice-dev)
From c7e5ebcd8ab67cab192047e1fa7e211132bd419c Mon Sep 17 00:00:00 2001
From: Henrik Jensen <hrikjsenvagt-lo@yahoo.dk>
Date: Mon, 15 Aug 2011 22:04:57 +0200
Subject: [PATCH] start-lo-jenkins.sh without hardcoded install path

This script could now be placed as a file in the contrib/devtools/ubuntu-jenkins
dir alternative to being generated by setup-ubuntu-jenkins.sh as it currently is.
I'm not sure what's preferable.
---
 ubuntu-jenkins/setup-ubuntu-jenkins.sh |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/ubuntu-jenkins/setup-ubuntu-jenkins.sh b/ubuntu-jenkins/setup-ubuntu-jenkins.sh
index c2a5957..4890909 100755
--- a/ubuntu-jenkins/setup-ubuntu-jenkins.sh
+++ b/ubuntu-jenkins/setup-ubuntu-jenkins.sh
@@ -20,7 +20,8 @@ git clone git://anongit.freedesktop.org/libreoffice/contrib/dev-tools dev-tools
 mv dev-tools/ubuntu-jenkins/jobs jobs
 rm -rf dev-tools
 echo "#!/bin/sh" > start-lo-jenkins.sh
-echo "java -DJENKINS_HOME=$(pwd) -jar $(pwd)/jenkins.war">> start-lo-jenkins.sh
+echo 'SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"' >> start-lo-jenkins.sh
+echo 'java -DJENKINS_HOME=$SCRIPT_DIR -jar $SCRIPT_DIR/jenkins.war' >> start-lo-jenkins.sh
 chmod u+x start-lo-jenkins.sh
 echo "done."
 echo "You can start your LibreOffice Ubuntu Jenkins server with: $(pwd)/start-lo-jenkins.sh"
-- 
1.7.4.1


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.