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