diff options
Diffstat (limited to 'jjb/doc')
-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: |