Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Knauer2015-04-27 11:53:47 +0000
committerMarkus Knauer2015-04-27 11:53:47 +0000
commitcb7df44b1fc52de5b467ce2ec1cc8f60b5d0ca62 (patch)
treef5d561a922a838feb354e9ac3a54fee189840083
parent0a90265c5b440e5bfcf10f0778105261d9efc817 (diff)
downloadorg.eclipse.rap-cb7df44b1fc52de5b467ce2ec1cc8f60b5d0ca62.tar.gz
org.eclipse.rap-cb7df44b1fc52de5b467ce2ec1cc8f60b5d0ca62.tar.xz
org.eclipse.rap-cb7df44b1fc52de5b467ce2ec1cc8f60b5d0ca62.zip
Use workspace specific TMP directory in Maven buildstreams/2.1-maintenance
Depending on build server configuration it was possible to run into permission problems when running the tests from the Maven-build in a standard file layout; this change is setting the location of the tmp directory for everything executed by Java and by Maven. Change-Id: I6cfee9fd1a7694408d0cca43d87927f4f7a6f99a Signed-off-by: Markus Knauer <mknauer@eclipsesource.com>
-rwxr-xr-xreleng/org.eclipse.rap.build/scripts/runtime-build.sh19
1 files changed, 13 insertions, 6 deletions
diff --git a/releng/org.eclipse.rap.build/scripts/runtime-build.sh b/releng/org.eclipse.rap.build/scripts/runtime-build.sh
index 9980777398..07078d3671 100755
--- a/releng/org.eclipse.rap.build/scripts/runtime-build.sh
+++ b/releng/org.eclipse.rap.build/scripts/runtime-build.sh
@@ -4,6 +4,9 @@
# All values are retrieved trough system variables set by Hudson.
# See Job -> Configure... -> This build is parameterized
+######################################################################
+# set up environment
+
SCRIPTS_DIR=$(dirname $(readlink -nm $0))
. $SCRIPTS_DIR/build-environment.sh
@@ -15,24 +18,28 @@ else
SIGNPROFILE=""
fi
+tempdirectory="$WORKSPACE/tmp"
+
######################################################################
-# Cleanup left-overs from previous run
+# cleanup left-overs from previous run
test -d "$WORKSPACE" || exit 1
-rm -rf "$WORKSPACE"/runtimeRepo "$WORKSPACE"/*.zip
+rm -rf "$WORKSPACE"/runtimeRepo "$WORKSPACE"/*.zip "$tempdirectory"
######################################################################
# clean up local Maven repository to circumvent p2 cache problems
+
for II in .cache .meta p2 ; do
echo "Remove directory ${MAVEN_LOCAL_REPO_PATH}/${II}"
rm -r ${MAVEN_LOCAL_REPO_PATH}/${II}
done
######################################################################
-# Build RAP Runtime
+# build RAP Runtime
cd "$WORKSPACE/org.eclipse.rap/releng/org.eclipse.rap.build"
echo "Running maven on $PWD, $SIGNPROFILE"
-${MVN} -e clean package $SIGNPROFILE -Dmaven.repo.local=${MAVEN_LOCAL_REPO_PATH}
+mkdir -p "$tempdirectory"
+${MVN} -e clean package $SIGNPROFILE -Dmaven.repo.local=${MAVEN_LOCAL_REPO_PATH} -Djava.io.tmpdir="$tempdirectory"
exitcode=$?
if [ "$exitcode" != "0" ]; then
echo "Maven exited with error code " + $exitcode
@@ -56,7 +63,7 @@ test -n "$TIMESTAMP" || exit 1
cd "$WORKSPACE/org.eclipse.rap/releng/org.eclipse.rap.target.build"
echo "Running maven on $PWD, sign=$sign"
-$MVN -e clean package -DruntimeRepo="file://$WORKSPACE/runtimeRepo" -Dmaven.repo.local=${MAVEN_LOCAL_REPO_PATH} -Dsign=$sign || exit 1
+$MVN -e clean package -DruntimeRepo="file://$WORKSPACE/runtimeRepo" -Dmaven.repo.local=${MAVEN_LOCAL_REPO_PATH} -Djava.io.tmpdir="$tempdirectory" -Dsign=$sign || exit 1
# Example: rap-1.5.0-N-20110814-2110.zip
zipFileName=rap-$VERSION-$BUILD_TYPE-$TIMESTAMP.zip
@@ -68,7 +75,7 @@ else
fi
######################################################################
-# Include legal files in zip files
+# include legal files in zip files
cd "$WORKSPACE"
cp -f org.eclipse.rap/releng/org.eclipse.rap.build/legal/notice.html .

Back to the top