Commit de9910ba authored by Daniel Scholl's avatar Daniel Scholl
Browse files

Updated

parent 738c394c
......@@ -36,7 +36,7 @@ steps:
echo "Checking Deployment $IMAGE updated"
echo "------------------------------------"
attempt_counter=0
max_attempts=20
max_attempts=30
until kubectl get deployment $SERVICE_NAME
do
if [ ${attempt_counter} -eq ${max_attempts} ];then
......@@ -44,14 +44,14 @@ steps:
exit 1
fi
attempt_counter=$(($attempt_counter+1))
sleep 10
sleep 20
done
echo "Checking Deployment Available"
echo "------------------------------------"
attempt_counter=0
max_attempts=20
max_attempts=6
while [ $(kubectl get deployment $SERVICE_NAME -o=jsonpath='{$.spec.template.spec.containers[:1].image}') != $IMAGE ]
do
if [ ${attempt_counter} -eq ${max_attempts} ];then
......@@ -59,7 +59,7 @@ steps:
exit 1
fi
attempt_counter=$(($attempt_counter+1))
sleep 10
sleep 20
done
kubectl wait --for=condition=available --timeout=600s deployment/$SERVICE_NAME -n osdu
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment