jenkinsfile 2 alyx episode 1

This commit is contained in:
Araozu 2023-11-08 06:43:58 -05:00
parent 1bbb3f0ea8
commit ac7a6806ae
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ pipeline {
PATH = "/var/lib/jenkins/.nvm/versions/node/v20.9.0/bin:${env.PATH}" PATH = "/var/lib/jenkins/.nvm/versions/node/v20.9.0/bin:${env.PATH}"
} }
steps { steps {
sh "pm2 stop ${env.JOB_NAME} || true" sh "pm2 delete ${env.JOB_NAME} || true"
} }
} }
stage('Build') { stage('Build') {

2
run.sh
View File

@ -1,2 +1,2 @@
#!/bin/bash #!/bin/bash
java -jar jerguero-0.0.1.jar --server.port=8765 java -jar /var/www/jerguero/jerguero-0.0.1.jar --server.port=8765