From: Rishabh Dave Date: Tue, 11 Jun 2024 06:13:30 +0000 (+0530) Subject: srcipt/ceph-backports: add redmine ticket's JSON to debug output X-Git-Tag: v20.0.0~1753^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0dadfdbaefbb783cf8133c840a9dcb892a5af461;p=ceph.git 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 --- diff --git a/src/script/ceph-backport.sh b/src/script/ceph-backport.sh index 051e0b688c54..f4f88499409f 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"