Jenkinsfile pt3: Return of the pipeline
This commit is contained in:
parent
8cbdd6d7f9
commit
a09d9f2124
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user