jenkins 4: the automation menace
This commit is contained in:
parent
1751d4a0e9
commit
53c0df182f
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
@ -69,9 +69,10 @@ 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"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user