Switch to RTD Generic Webhook API
API in use has been deprecated
Switch to the Generic API ...api/v2/webhook/...
Use credentials-binding wrapper for RTD token
Change-Id: I39252db79f8f3cd9f948bc66e8a543203a8a5b76
Issue-ID: CIMAN-230
Signed-off-by: Rich Bennett <rb2745@att.com>
diff --git a/jjb/doc/doc-post-rtd.sh b/jjb/doc/doc-post-rtd.sh
index 5c8d8c5..78b8d0b 100644
--- a/jjb/doc/doc-post-rtd.sh
+++ b/jjb/doc/doc-post-rtd.sh
@@ -6,4 +6,7 @@
fi
# shellcheck disable=SC1083
-curl -X POST --data "version_slug=$RTD_BUILD_VERSION" https://readthedocs.org/build/{rtdproject}
+curl -X POST \
+ -d "branches=$RTD_BUILD_VERSION" \
+ -d "token=$DOCS_RTD_TOKEN" \
+ https://readthedocs.org/api/v2/webhook/{rtdproject}