Jenkinsfile pt3: Return of the pipeline

This commit is contained in:
Araozu 2023-11-08 06:06:53 -05:00
parent 8cbdd6d7f9
commit a09d9f2124

View File

@ -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