From 80d846fde3c1c1196afc260a496ce60080f6edc0 Mon Sep 17 00:00:00 2001 From: Rich Bennett Date: Wed, 9 Jan 2019 11:31:16 -0500 Subject: 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 --- jjb/doc/doc-post-rtd.sh | 5 ++++- jjb/doc/doc-templates-rtd.yaml | 4 ++++ jjb/doc/doc.yaml | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) (limited to 'jjb') 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} diff --git a/jjb/doc/doc-templates-rtd.yaml b/jjb/doc/doc-templates-rtd.yaml index 77cea696f..234a767ca 100644 --- a/jjb/doc/doc-templates-rtd.yaml +++ b/jjb/doc/doc-templates-rtd.yaml @@ -134,6 +134,10 @@ wrappers: - infra-wrappers: build-timeout: '{build-timeout}' + - credentials-binding: + - text: + credential-id: docs-token + variable: DOCS_RTD_TOKEN triggers: - gerrit: diff --git a/jjb/doc/doc.yaml b/jjb/doc/doc.yaml index 6986dffd2..8515d7378 100644 --- a/jjb/doc/doc.yaml +++ b/jjb/doc/doc.yaml @@ -14,7 +14,7 @@ - '{project-name}-{stream}-merge-rtd' project: 'doc' - rtdproject: 'onap' + rtdproject: 'onap/58810/' mvn-settings: 'doc-settings' stream: - master: -- cgit 1.2.3-korg