X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Frtdv3.sh;h=08f98a2978dbee7d5fa05ed43f0699df11bf8983;hb=b9eb4581940562effcf67863704a3ec2c47ceca0;hp=314ce9ffa1acf0e31f28e23ab1099d0f7cecc971;hpb=9047db7d4c426865d55683e4beced7d69e1f8770;p=releng%2Fglobal-jjb.git diff --git a/shell/rtdv3.sh b/shell/rtdv3.sh index 314ce9ff..08f98a29 100644 --- a/shell/rtdv3.sh +++ b/shell/rtdv3.sh @@ -18,7 +18,7 @@ watchbuild(){ buildid=$(lftools rtd project-build-trigger "$rtdproject" "$1" | jq '.build.id') result=null - while [ $result == null ]; do + while [[ "$result" == null ]]; do sleep 10 result=$(lftools rtd project-build-details "$rtdproject" "$buildid" | jq '.success') echo "INFO Current result of running build $result" @@ -41,10 +41,13 @@ fi #MASTER_RTD_PROJECT as a global jenkins cnt masterproject="$umbrella-$MASTER_RTD_PROJECT" -#Exception needed for onap, due to importing their old docs. +#Exceptions needed for onap, due to importing their old docs. if [[ $masterproject == "onap-doc" ]]; then masterproject="onap" fi +if [[ $rtdproject == "onap-doc" ]]; then + rtdproject="onap" +fi echo "INFO:"