fix jenkins again

This commit is contained in:
Araozu 2024-09-09 16:58:13 -05:00
parent 97059ce103
commit 5b5aaa5ace

7
Jenkinsfile vendored
View File

@ -20,12 +20,7 @@ pipeline {
sh 'rm -rf /var/www/combi/assets /var/www/combi/data /var/www/combi/n' 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, // Check if the tiles folder exists. If it does not,
// extract the tiles // extract the tiles
def res = sh(script: "test -d ${target_dir}", returnStatus: true) == 0 sh "if [ ! -d "$DIRECTORY" ]; then \n tar -xf /var/www/combi/tiles.tar.gz -C /var/www/combi \n fi"
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 'cp -r ./dist/* /var/www/combi/' sh 'cp -r ./dist/* /var/www/combi/'
} }
} }