From 0dadfdbaefbb783cf8133c840a9dcb892a5af461 Mon Sep 17 00:00:00 2001 From: Rishabh Dave Date: Tue, 11 Jun 2024 11:43:30 +0530 Subject: [PATCH] srcipt/ceph-backports: add redmine ticket's JSON to debug output Add ticket received as JSON to debug output of ceph-backports.sh since it is pretty helpful while debugging errors related to ticket's field. This issue was discovered while running - ./src/script/ceph-backport.sh --existing-pr --debug Signed-off-by: Rishabh Dave --- src/script/ceph-backport.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/src/script/ceph-backport.sh b/src/script/ceph-backport.sh index 051e0b688c54d..f4f88499409f3 100755 --- a/src/script/ceph-backport.sh +++ b/src/script/ceph-backport.sh @@ -1570,6 +1570,7 @@ redmine_url="$(number_to_url "redmine" "${issue}")" debug "Considering Redmine issue: $redmine_url - is it in the Backport tracker?" remote_api_output="$(curl --silent "${redmine_url}.json")" +debug $remote_api_output tracker="$(echo "$remote_api_output" | jq -r '.issue.tracker.name')" if [ "$tracker" = "Backport" ]; then debug "Yes, $redmine_url is a Backport issue" -- 2.39.5