]>
git.immae.eu Git - github/fretlink/ansible-clever.git/blob - files/clever-wait-deploy.sh
4 checkStatus
"$1" "IN PROGRESS"
13 [[ "$(clever activity | grep "$commit" | grep "DEPLOY" | wc -l)" == "0" ]]
16 function checkStatus
{
19 [[ "$(clever activity | grep "$commit" | grep "${status}\s\+DEPLOY" | wc -l)" == "1" ]]
23 local timeout
=600 # 10 minutes
27 echo "Waiting for deployment start..."
28 while inactive
"$commit" -a $timeout -gt 0
31 let "timeout-=$samplingTime"
35 echo "Deployment in progress..."
36 while deploying
"$commit" -a $timeout -gt 0
39 let "timeout-=$samplingTime"
42 if [ $samplingTime -eq 0 ]
50 check
"$(git rev-parse HEAD)"