X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Frtd-trigger-build.sh;h=e0a6f002ac4c09b4e48cee1d400c7f6dcaed005a;hb=refs%2Fchanges%2F50%2F72650%2F2;hp=d272c2d7f8e8ec680df5b3b15b4dbf8c274133ad;hpb=b0f1970ac95d59eef51a0091f0660b8ea2bacbe9;p=releng%2Fglobal-jjb.git diff --git a/shell/rtd-trigger-build.sh b/shell/rtd-trigger-build.sh index d272c2d7..e0a6f002 100644 --- a/shell/rtd-trigger-build.sh +++ b/shell/rtd-trigger-build.sh @@ -8,9 +8,9 @@ # which accompanies this distribution, and is available at # http://www.eclipse.org/legal/epl-v10.html ############################################################################## -# Call cURL to trigger a build in RTD via the Generic API +# Calls cURL to trigger a build in RTD via the Generic API # -# Paramters: +# Parameters: # RTD_BUILD_URL: The unique build URL for the project. # Check Admin > Integrations > Generic API incoming webhook. # @@ -35,9 +35,10 @@ json=$(curl -X POST -d "branches=${GERRIT_BRANCH}" -d "token=$RTD_TOKEN" "$RTD_B build_triggered=$(echo "$json" | jq -r .build_triggered) if [ "$build_triggered" != "true" ]; then - echo "ERROR: Build was not triggered." - echo "$json" | jq -r + echo "ERROR: Build was not triggered, ReadTheDocs response follows:" + echo "$json" exit 1 fi echo "Build triggered for $GERRIT_PROJECT in ReadTheDocs." +echo "---> rtd-trigger-build.sh ends"