Fix deploy k8s env

Deploy failed with error:

+ mkdir /home/jenkins/workspace/_artifacts
mkdir: cannot create directory `/home/jenkins/workspace/_artifacts`: File exists

Change-Id: I01ea7b87a500fda27540a215f64241fc11e4eec8
This commit is contained in:
Sergey Reshetnyak 2016-09-12 23:14:11 +03:00
parent ff841e8393
commit eabdab786c
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ export BUILD_TAG=${BUILD_TAG:-unknown}
./utils/jenkins/kargo_deploy.sh
# Archive logs if they were generated
mkdir "${WORKSPACE}/_artifacts"
mkdir -p "${WORKSPACE}/_artifacts"
if [ -f "${WORKSPACE}/logs.tar.gz" ]; then
mv "${WORKSPACE}/logs.tar.gz" "${WORKSPACE}/_artifacts"
fi