X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=workflows%2Fnanobot.sh;h=cd545071eeea0d6ce9fa3517f0d0ae1373bda868;hb=e9585ab225af5e910238902ef8fa86129e6b2638;hp=dc020701dc2fa7f2d53c0695ce0782f0aa69d066;hpb=bf43e353b3a57356c6ae0186e6af148897fa73a4;p=rec.git diff --git a/workflows/nanobot.sh b/workflows/nanobot.sh index dc02070..cd54507 100755 --- a/workflows/nanobot.sh +++ b/workflows/nanobot.sh @@ -57,9 +57,13 @@ helm install localric/nanobot --namespace rictest --name nanobot nanobot_pod=$(kubectl get pods -n rictest -o go-template --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}') sleep 10 kubectl logs $nanobot_pod -n rictest - +#--------------kill helm--------------------------------------------------------------------- +pkill helm #------------checking the status of the rictest pod-------------------------------------- +sleep 30 command="$(kubectl get po --no-headers --namespace=rictest --field-selector status.phase=Completed 2> /dev/null)" if [[ $command != "" ]]; then exit 1 fi + +