diff --git a/Jenkinsfile b/Jenkinsfile index f05c8c5..0859ae3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -20,7 +20,7 @@ pipeline { sh 'rm -rf /var/www/combi/assets /var/www/combi/data /var/www/combi/n' // Check if the tiles folder exists. If it does not, // extract the tiles - sh "if [ ! -d "$DIRECTORY" ]; then \n tar -xf /var/www/combi/tiles.tar.gz -C /var/www/combi \n fi" + sh "if [ ! -d /var/www/combi/tiles ]; then \n tar -xf /var/www/combi/tiles.tar.gz -C /var/www/combi \n fi" sh 'cp -r ./dist/* /var/www/combi/' } }