From b8b0ad696a1924ee267660c81620f6fdd75f80bd Mon Sep 17 00:00:00 2001 From: ShubhamRathi Date: Tue, 21 Mar 2017 21:21:03 +0530 Subject: Remove cloning Change-Id: Idd7c48095f74985a129b968b320b99d1bc606b58 Signed-off-by: ShubhamRathi --- jjb/opnfvdocs/docs-rtd.yaml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'jjb') diff --git a/jjb/opnfvdocs/docs-rtd.yaml b/jjb/opnfvdocs/docs-rtd.yaml index 4f9e11ac5..864626b06 100644 --- a/jjb/opnfvdocs/docs-rtd.yaml +++ b/jjb/opnfvdocs/docs-rtd.yaml @@ -27,11 +27,6 @@ - project-parameter: project: '{project}' branch: '{branch}' - - string: - name: GIT_BASE - description: 'Git URL to use on this Jenkins Slave' - scm: - - git-scm triggers: - gerrit-trigger-change-merged: @@ -40,7 +35,14 @@ files: 'docs/**/*.*' builders: - - shell: !include-raw: docs-post-rtd.sh + - shell: | + if [ $GERRIT_BRANCH == "master" ]; then + RTD_BUILD_VERSION=latest + else + RTD_BUILD_VERSION=${{GERRIT_BRANCH/\//-}} + fi + curl -X POST --data "version_slug=$RTD_BUILD_VERSION" https://readthedocs.org/build/opnfvdocsdemo + - job-template: name: 'docs-verify-rtd-{stream}' -- cgit 1.2.3-korg