Skip to content

Commit

Permalink
Fix: Address RTDv3.sh documentation job failures
Browse files Browse the repository at this point in the history
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 <mwatkins@linuxfoundation.org>
  • Loading branch information
ModeSevenIndustrialSolutions committed Jul 1, 2024
1 parent 7482b27 commit 3330259
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions shell/rtdv3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit 3330259

Please sign in to comment.