aboutsummaryrefslogtreecommitdiffstats
path: root/screwdriver/update-vespa-version-in-sample-apps.sh
diff options
context:
space:
mode:
Diffstat (limited to 'screwdriver/update-vespa-version-in-sample-apps.sh')
-rwxr-xr-xscrewdriver/update-vespa-version-in-sample-apps.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/screwdriver/update-vespa-version-in-sample-apps.sh b/screwdriver/update-vespa-version-in-sample-apps.sh
index 22a55b0ce20..d3870267f26 100755
--- a/screwdriver/update-vespa-version-in-sample-apps.sh
+++ b/screwdriver/update-vespa-version-in-sample-apps.sh
@@ -12,8 +12,12 @@ fi
readonly VESPA_RELEASE="$1"
export JAVA_HOME=$(dirname $(dirname $(readlink -f /usr/bin/java)))
+BUILD_DIR=$(mktemp -d)
+trap "rm -rf $BUILD_DIR" EXIT
+cd $BUILD_DIR
+
function is_published {
- local TMP_MVN_REPO=/tmp/maven-repo
+ local TMP_MVN_REPO=$BUILD_DIR/maven-repo
echo $TMP_MVN_REPO
mkdir -p $TMP_MVN_REPO
rm -rf $TMP_MVN_REPO/com/yahoo/vespa