Skip to content
Snippets Groups Projects
Commit d10f97f1 authored by Benedikt Ritter's avatar Benedikt Ritter
Browse files

Save .m2 dir between builds

parent 11ee864f
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,11 @@ if [ "$1" = "-h" ]; then
exec /opt/java/bin/usage
fi
if [ "$(ls /tmp/artifacts/ 2>/dev/null)" ]; then
echo "Restoring build artifacts"
mv /tmp/artifacts/* $HOME/.
fi
APP_RUNTIME_DIR="${HOME}/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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment