From: Lott, Christopher (cl778h) Date: Fri, 8 Nov 2019 10:36:38 +0000 (-0500) Subject: Report POST details in rtd-trigger-build.sh X-Git-Tag: v0.48.0~2 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=b0f1970ac95d59eef51a0091f0660b8ea2bacbe9;p=releng%2Fglobal-jjb.git Report POST details in rtd-trigger-build.sh Add echo to rtd-trigger-build.sh to report branch and URL used at readthedocs.io, both of which may be modified in the script. Change-Id: I301449b5f1c0359f3ee8fef823fc6dff13298b78 Signed-off-by: Lott, Christopher (cl778h) --- diff --git a/shell/rtd-trigger-build.sh b/shell/rtd-trigger-build.sh index 30a04ca6..d272c2d7 100644 --- a/shell/rtd-trigger-build.sh +++ b/shell/rtd-trigger-build.sh @@ -30,6 +30,7 @@ last_char=${RTD_BUILD_URL:length-1:1} # Handle case for gerrit event type is ref-updated when new tag are pushed [[ $GERRIT_EVENT_TYPE =~ "ref-updated" ]] && GERRIT_BRANCH=${GERRIT_REFNAME##*/} +echo "INFO: Posting request for branch $GERRIT_BRANCH to URL $RTD_BUILD_URL" json=$(curl -X POST -d "branches=${GERRIT_BRANCH}" -d "token=$RTD_TOKEN" "$RTD_BUILD_URL") build_triggered=$(echo "$json" | jq -r .build_triggered)