diff --git a/Jenkinsfile.groovy b/Jenkinsfile.groovy index 4359d3b..86c74b6 100644 --- a/Jenkinsfile.groovy +++ b/Jenkinsfile.groovy @@ -22,7 +22,7 @@ pipeline { steps { dir('/var/www/jerguero') { // Remove previous deploy - sh 'rm /var/www/jerguero/*' + sh 'rm /var/www/jerguero/* || true' // Copy new deploy sh 'cp /var/lib/jenkins/workspace/jerguero/target/jerguero-0.0.1.jar /var/www/jerguero' // run jar with pm2