jenkins 4: the automation menace

This commit is contained in:
Araozu 2023-11-04 10:17:37 -05:00
parent 1751d4a0e9
commit 53c0df182f

7
Jenkinsfile vendored
View File

@ -69,9 +69,10 @@ pipeline {
PATH = "/var/lib/jenkins/.local/share/pnpm:${env.PATH}"
}
steps {
sh "cd /var/deploys/${env.JOB_BASE_NAME}/"
sh "ROCKET_PORT=3333 pm2 start backend --name ${env.JOB_BASE_NAME}"
sh "pm2 save"
dir("/var/deploys/${env.JOB_BASE_NAME}/") {
sh "ROCKET_PORT=3333 pm2 start backend --name ${env.JOB_BASE_NAME}"
sh "pm2 save"
}
}
}
}