Commit d10f97f1 by Benedikt Ritter

Save .m2 dir between builds

parent 11ee864f
...@@ -7,6 +7,11 @@ if [ "$1" = "-h" ]; then ...@@ -7,6 +7,11 @@ if [ "$1" = "-h" ]; then
exec /opt/java/bin/usage exec /opt/java/bin/usage
fi fi
if [ "$(ls /tmp/artifacts/ 2>/dev/null)" ]; then
echo "Restoring build artifacts"
mv /tmp/artifacts/* $HOME/.
fi
APP_RUNTIME_DIR="${HOME}/src" APP_RUNTIME_DIR="${HOME}/src"
APP_SRC_DIR="/tmp/src" APP_SRC_DIR="/tmp/src"
......
#!/bin/bash -e
pushd ${HOME}
if [ -d .m2 ]; then
# all .m2 contents to tar stream
tar cf - .m2
fi
popd
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment