summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShubhamRathi <shubhamiiitbackup@gmail.com>2017-03-21 21:21:03 +0530
committerShubhamRathi <shubhamiiitbackup@gmail.com>2017-03-21 21:25:09 +0530
commitb8b0ad696a1924ee267660c81620f6fdd75f80bd (patch)
tree364a930c0e6a326119cd6f1433f3a333185a4d91
parent48903d301dd4966ac07bbfb34f8eb69f54bb57a9 (diff)
Remove cloning
Change-Id: Idd7c48095f74985a129b968b320b99d1bc606b58 Signed-off-by: ShubhamRathi <shubhamiiitbackup@gmail.com>
-rw-r--r--jjb/opnfvdocs/docs-rtd.yaml14
1 files changed, 8 insertions, 6 deletions
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}'