✅ Fix Jenkinsfile: force recreate + health check
This commit is contained in:
parent
8f0f8d9ac5
commit
a330419d68
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
|
|
@ -75,7 +75,8 @@ pipeline {
|
||||||
for (int i = 1; i <= 5; i++) {
|
for (int i = 1; i <= 5; i++) {
|
||||||
echo "⏳ Tentative #${i} de vérification (attente ${i * 10}s)..."
|
echo "⏳ Tentative #${i} de vérification (attente ${i * 10}s)..."
|
||||||
sh "sleep ${i * 10}"
|
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()
|
// Utilisation de --insecure pour éviter le problème HTTPS dans node:20
|
||||||
|
def code = sh(script: "curl --insecure -s -o /dev/null -w '%{http_code}' https://dsp5-archi-o24a-15m-g3.fr", returnStdout: true).trim()
|
||||||
echo "Réponse HTTP : ${code}"
|
echo "Réponse HTTP : ${code}"
|
||||||
if (code == '200' || code == '301' || code == '302') {
|
if (code == '200' || code == '301' || code == '302') {
|
||||||
success = true
|
success = true
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user