From 5b5aaa5ace78289312a96d935b772f134b99f599 Mon Sep 17 00:00:00 2001 From: Araozu Date: Mon, 9 Sep 2024 16:58:13 -0500 Subject: [PATCH] fix jenkins again --- Jenkinsfile | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index b09afe2..f05c8c5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -20,12 +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 - def res = sh(script: "test -d ${target_dir}", returnStatus: true) == 0 - if (res == '0') { - sh 'cp tiles.tar.gz /var/www/combi/' - sh 'tar -xf /var/www/combi/tiles.tar.gz -C /var/www/combi' - sh 'rm /var/www/combi/tiles.tar.gz' - } + sh "if [ ! -d "$DIRECTORY" ]; then \n tar -xf /var/www/combi/tiles.tar.gz -C /var/www/combi \n fi" sh 'cp -r ./dist/* /var/www/combi/' } }