Adjust bootstrap pipeline health checks
This commit is contained in:
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@@ -14,9 +14,11 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Swarm Check') {
|
stage('Service Reachability') {
|
||||||
steps {
|
steps {
|
||||||
sh 'docker service ls --format "{{.Name}} {{.Replicas}}"'
|
sh 'curl -fsS https://gitea.derryle.com/user/login > /dev/null'
|
||||||
|
sh 'code=$(curl -sS -o /dev/null -w "%{http_code}" https://jenkins.derryle.com/login); echo "$code"; echo "$code" | grep -Eq "^(200|401|403)$"'
|
||||||
|
sh 'curl -fsS https://portainer.derryle.com/ > /dev/null'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user