diff --git a/Jenkinsfile.groovy b/Jenkinsfile.groovy index 80ace03..3c19591 100644 --- a/Jenkinsfile.groovy +++ b/Jenkinsfile.groovy @@ -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' - // } } } } diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 8b13789..75b4e83 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1 +1 @@ - +server.port=8765