jenkinsfile 2 episode 2
This commit is contained in:
parent
af78bd71c7
commit
0075878076
@ -24,14 +24,11 @@ pipeline {
|
||||
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'
|
||||
sh 'whoami'
|
||||
// Change directory
|
||||
// dir('/var/www/jerguero') {
|
||||
|
||||
// run jar with pm2
|
||||
sh "pm2 start /var/www/jerguero/jerguero-0.0.1.jar --name ${env.JOB_NAME}"
|
||||
// Save state
|
||||
sh 'pm2 save'
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
|
||||
server.port=8765
|
||||
|
Loading…
Reference in New Issue
Block a user