Mise à jour de index.js
This commit is contained in:
parent
83f7ad0553
commit
39f7256c0b
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
|
|
@ -170,7 +170,7 @@ pipeline {
|
|||
|
||||
def statusCode = "000"
|
||||
for (int i = 1; i <= 10; i++) {
|
||||
statusCode = sh(script: "curl -k -s -o /dev/null -w '%{http_code}' https://${domain}/health || echo 000", returnStdout: true).trim()
|
||||
statusCode = sh(script: "curl -k -s -o /dev/null -w '%{http_code}' https://${domain}/ || echo 000", returnStdout: true).trim()
|
||||
if (statusCode in ['200', '301', '302']) {
|
||||
echo "✅ Backend ${env.ENV} opérationnel (HTTP ${statusCode})"
|
||||
return
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user