From: Matthew Watkins Date: Tue, 25 Jun 2024 07:41:54 +0000 (+0100) Subject: Fix: Address RTDv3.sh documentation job failures X-Git-Tag: v0.90.10~4 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=33302592ddd30fc265e34c4420fe679efa4272a8;p=releng%2Fglobal-jjb.git Fix: Address RTDv3.sh documentation job failures Issue: RELENG-5469 It appears the feedback when a project needs creating has changed. The Global-JJB shell script was no longer catching this condition. Change-Id: I14958fdb294a826b5fa211ef157d9822c5de5131 Signed-off-by: Matthew Watkins --- diff --git a/shell/rtdv3.sh b/shell/rtdv3.sh index dab571c0..eb806833 100644 --- a/shell/rtdv3.sh +++ b/shell/rtdv3.sh @@ -62,7 +62,8 @@ echo "INFO: Read the Docs Master Project: https://$masterproject.readthedocs.io" if [[ "$JOB_NAME" =~ "verify" ]]; then - if [[ "$(lftools rtd project-details "$rtdproject" | yq -r '.detail')" == "Not found." ]]; then + if [[ "$(lftools rtd project-details "$rtdproject" | yq -r '.detail')" == \ + "No Project matches the given query." ]]; then echo "INFO: Project not found, merge will create project https://$rtdproject.readthedocs.io" fi echo "INFO: Verify job completed" @@ -77,7 +78,8 @@ if [[ "$JOB_NAME" =~ "merge" ]]; then declare -i cnt=0 while [[ $project_exists == "false" ]]; do - if [[ "$(lftools rtd project-details "$rtdproject" | yq -r '.detail')" == "Not found." ]]; then + if [[ "$(lftools rtd project-details "$rtdproject" | yq -r '.detail')" == \ + "No Project matches the given query." ]]; then echo "INFO: Project not found" if [[ $project_created == "false" ]]; then echo "INFO: Creating project https://$rtdproject.readthedocs.io"