diff options
author | Rich Bennett <rb2745@att.com> | 2019-01-09 11:31:16 -0500 |
---|---|---|
committer | Rich Bennett <rb2745@att.com> | 2019-01-10 19:57:35 -0500 |
commit | 80d846fde3c1c1196afc260a496ce60080f6edc0 (patch) | |
tree | 341045a323c41c40b83e3c2de83c1135be523f0b /jjb | |
parent | 236cc74eafbb55da327cc78ef540e8ce0536464a (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')
-rw-r--r-- | jjb/doc/doc-post-rtd.sh | 5 | ||||
-rw-r--r-- | jjb/doc/doc-templates-rtd.yaml | 4 | ||||
-rw-r--r-- | jjb/doc/doc.yaml | 2 |
3 files changed, 9 insertions, 2 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} 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: |