From a09d9f2124756beb1fdc6c3db510504875f5df55 Mon Sep 17 00:00:00 2001 From: Araozu Date: Wed, 8 Nov 2023 06:06:53 -0500 Subject: [PATCH] Jenkinsfile pt3: Return of the pipeline --- Jenkinsfile.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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