Test Neutral Pipeline #3
Some checks failed
Neutral/pipeline/head There was a failure building this commit

This commit is contained in:
CICD - Pipeline 2023-03-19 17:45:55 +01:00
parent 41fa6b0f2d
commit 4bf0b260e3
2 changed files with 9 additions and 1 deletions

2
Jenkinsfile vendored
View File

@ -9,7 +9,7 @@ pipeline {
sh "git clone https://git.raphix.fr/infrastructure/neutral.git" sh "git clone https://git.raphix.fr/infrastructure/neutral.git"
sh "cd neutral" sh "cd neutral"
sh "npm i" sh "npm i"
sh "PORT=3100 node bin/www" sh "ENV='TEST' node bin/www"
} }
} }

8
app.js
View File

@ -68,5 +68,13 @@ app.use(function(err, req, res, next) {
ntr.checkUser() ntr.checkUser()
if ("ENV" in process.env) {
if(process.env.ENV == "TEST") {
process.exit(1)
}
}
module.exports = app; module.exports = app;