X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Frtdv3.sh;h=314ce9ffa1acf0e31f28e23ab1099d0f7cecc971;hb=9047db7d4c426865d55683e4beced7d69e1f8770;hp=7b4fef8b6659b7b928db61ed6c4279e898e92ba6;hpb=fa47f310c90d788d8970651b255aa789fc4c8278;p=releng%2Fglobal-jjb.git diff --git a/shell/rtdv3.sh b/shell/rtdv3.sh index 7b4fef8b..314ce9ff 100644 --- a/shell/rtdv3.sh +++ b/shell/rtdv3.sh @@ -41,6 +41,12 @@ fi #MASTER_RTD_PROJECT as a global jenkins cnt masterproject="$umbrella-$MASTER_RTD_PROJECT" +#Exception needed for onap, due to importing their old docs. +if [[ $masterproject == "onap-doc" ]]; then + masterproject="onap" +fi + + echo "INFO:" echo "INFO: Project: $PROJECT" echo "INFO: Read the Docs Sub Project: https://$rtdproject.readthedocs.io" @@ -130,8 +136,8 @@ echo "INFO: Performing merge action" branch=$(echo "$GERRIT_BRANCH" | tr '[:upper:]' '[:lower:]') echo "INFO: Checking if read the docs has seen branch $branch" - #if this is 404. then run discover branch - if ! lftools rtd project-version-details "$rtdproject" "$branch" | jq '.active'; then + #if this is 200 "null" Then run discover branch + if [[ $(lftools rtd project-version-details "$rtdproject" "$branch" | jq '.active') == "null" ]]; then echo "INFO: read the docs has not seen branch $branch for project $rtdproject" echo "INFO: triggering $rtdproject latest to instantiate new branch discovery" watchbuild latest