Skip to content
代码片段 群组 项目
提交 f44014f5 编辑于 作者: Harsha Muralidhar's avatar Harsha Muralidhar 提交者: Rémy Coutable
浏览文件

Add success logging for health check script in gdk pipeline

上级 a0fdc152
No related branches found
No related tags found
无相关合并请求
......@@ -14,7 +14,7 @@ function retry_times_sleep() {
for i in $(seq "${number_of_retries}" -1 1); do
sleep "$sleep_seconds"s
echo "[$(date '+%H:%M:%S')] Retrying $i..."
echo "[$(date '+%H:%M:%S')] Retry attempts left: $i..."
if eval "$@"; then
return 0
fi
......@@ -54,6 +54,7 @@ function test_url() {
status=$(eval "${cmd}")
if [[ $status == "200" ]]; then
echo -e "\n[$(date '+%H:%M:%S')] Curl to $url successful with 200 response"
return 0
else
# We display the error in the job to allow for better debugging
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册