# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
##############################################################################
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
##############################################################################
# RTD_BUILD_URL: The unique build URL for the project.
# Check Admin > Integrations > Generic API incoming webhook.
#
# RTD_BUILD_URL: The unique build URL for the project.
# Check Admin > Integrations > Generic API incoming webhook.
#
json=$(curl -X POST -d "branches=${GERRIT_BRANCH}" -d "token=$RTD_TOKEN" "$RTD_BUILD_URL")
build_triggered=$(echo "$json" | jq -r .build_triggered)
if [ "$build_triggered" != "true" ]; then
json=$(curl -X POST -d "branches=${GERRIT_BRANCH}" -d "token=$RTD_TOKEN" "$RTD_BUILD_URL")
build_triggered=$(echo "$json" | jq -r .build_triggered)
if [ "$build_triggered" != "true" ]; then