jenkins 4: the automation menace

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

3
Jenkinsfile vendored
View File

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