flatten backend folder
This commit is contained in:
parent
ed7aca1eb5
commit
8073071df2
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
|
|
@ -70,7 +70,7 @@ pipeline {
|
|||
echo "🩺 Vérification de la disponibilité du frontend..."
|
||||
script {
|
||||
def success = false
|
||||
for (int i = 1; i <= 3; i++) {
|
||||
for (int i = 1; i <= 5; i++) {
|
||||
echo "⏳ Tentative #${i} de vérification (attente ${i * 10}s)..."
|
||||
sh "sleep ${i * 10}"
|
||||
def code = sh(script: "curl -k -s -o /dev/null -w '%{http_code}' https://dsp5-archi-o24a-15m-g3.fr", returnStdout: true).trim()
|
||||
|
|
@ -82,11 +82,13 @@ pipeline {
|
|||
}
|
||||
if (!success) {
|
||||
error("❌ Le frontend ne répond pas après plusieurs tentatives.")
|
||||
} else {
|
||||
echo "✅ Le frontend est disponible !"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
post {
|
||||
success {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user