fix bug on rm command

This commit is contained in:
dany 2022-09-16 13:56:24 +02:00
parent e33bb262ea
commit b138210a18

4
Jenkinsfile vendored
View File

@ -36,7 +36,7 @@ pipeline{
set -e set -e
export WORKSPACE=$(realpath "./jenkins/workspace/antosaio-docker") export WORKSPACE=$(realpath "./jenkins/workspace/antosaio-docker")
cd $WORKSPACE cd $WORKSPACE
[ -d antos ] && rm antos [ -d antos ] && rm -rf antos
mkdir antos mkdir antos
cp /var/jenkins_home/workspace/nightly-antosaio/build/* antos -rf cp /var/jenkins_home/workspace/nightly-antosaio/build/* antos -rf
tree antos tree antos
@ -55,7 +55,7 @@ pipeline{
set -e set -e
export WORKSPACE=$(realpath "./jenkins/workspace/antosaio-docker") export WORKSPACE=$(realpath "./jenkins/workspace/antosaio-docker")
cd $WORKSPACE cd $WORKSPACE
[ -d antos ] && rm antos [ -d antos ] && rm -rf antos
mkdir antos mkdir antos
cp /var/jenkins_home/workspace/nightly-antosaio/build/* antos -rf cp /var/jenkins_home/workspace/nightly-antosaio/build/* antos -rf
tree antos tree antos