summaryrefslogtreecommitdiffstats
path: root/jjb/doc/doc-post-rtd.sh
diff options
context:
space:
mode:
authorRich Bennett <rb2745@att.com>2019-01-09 11:31:16 -0500
committerRich Bennett <rb2745@att.com>2019-01-10 19:57:35 -0500
commit80d846fde3c1c1196afc260a496ce60080f6edc0 (patch)
tree341045a323c41c40b83e3c2de83c1135be523f0b /jjb/doc/doc-post-rtd.sh
parent236cc74eafbb55da327cc78ef540e8ce0536464a (diff)
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>
Diffstat (limited to 'jjb/doc/doc-post-rtd.sh')
-rw-r--r--jjb/doc/doc-post-rtd.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/jjb/doc/doc-post-rtd.sh b/jjb/doc/doc-post-rtd.sh
index 5c8d8c52f..78b8d0b56 100644
--- a/jjb/doc/doc-post-rtd.sh
+++ b/jjb/doc/doc-post-rtd.sh
@@ -6,4 +6,7 @@ else
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}