summaryrefslogtreecommitdiffstats
path: root/jjb/opnfvdocs/docs-post-rtd.sh
diff options
context:
space:
mode:
authorAric Gardner <agardner@linuxfoundation.org>2017-02-15 16:31:32 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-02-15 16:31:32 +0000
commitf4f9d323a63ec935cb33af98e4d123c223a730e4 (patch)
tree93a8a5117b940cfdffb511f107d31188683b9c5b /jjb/opnfvdocs/docs-post-rtd.sh
parenta6e69f43e9d791cbe00d9b6fb53fed7dcb3fd742 (diff)
parentbddede8bc119ac7c289b1fb1e515c41ded5112fb (diff)
Merge "New doc jobs on lf-build1"
Diffstat (limited to 'jjb/opnfvdocs/docs-post-rtd.sh')
-rw-r--r--jjb/opnfvdocs/docs-post-rtd.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/jjb/opnfvdocs/docs-post-rtd.sh b/jjb/opnfvdocs/docs-post-rtd.sh
new file mode 100644
index 000000000..7faa26f38
--- /dev/null
+++ b/jjb/opnfvdocs/docs-post-rtd.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+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/{rtdproject}