Added save-artifacts script and altered the assemble script

parent 0e436dc6
...@@ -2,6 +2,11 @@ ...@@ -2,6 +2,11 @@
set -e set -e
echo "---> Restore build artifacts"
if [ "$(ls /tmp/artifacts/.m2 2>/dev/null)" ]; then
mv /tmp/artifacts/.m2 $HOME
fi
echo "---> Installing application source" echo "---> Installing application source"
cp -Rf /tmp/src/. ./ cp -Rf /tmp/src/. ./
......
#!/bin/bash
pushd ${HOME} > /dev/null
if [ -d .m2 ]; then
tar cf - .m2
fi
popd > /dev/null
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