X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Frtdv3.sh;fp=shell%2Frtdv3.sh;h=f5be6e6bebac200ec83d12ef53f866783e182052;hb=dcf5761d0c38f01d4397784870c9031d4d499441;hp=7b4fef8b6659b7b928db61ed6c4279e898e92ba6;hpb=8e52d0538f6d9897ea601544a3a22a409b7de20e;p=releng%2Fglobal-jjb.git diff --git a/shell/rtdv3.sh b/shell/rtdv3.sh index 7b4fef8b..f5be6e6b 100644 --- a/shell/rtdv3.sh +++ b/shell/rtdv3.sh @@ -130,8 +130,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