summaryrefslogtreecommitdiffstats
path: root/jjb/opnfvdocs/docs-post-rtd.sh
diff options
context:
space:
mode:
authorAric Gardner <agardner@linuxfoundation.org>2017-02-08 13:34:21 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-02-08 13:34:21 +0000
commit061fe62c5eed47f14b5d2c782346be3c66f41ce6 (patch)
treeb9737af306db3b826e448fb35331e8022ee050e1 /jjb/opnfvdocs/docs-post-rtd.sh
parenteabda5925636340865f5af11b12a6ac0887c5b46 (diff)
parentfd8d915b212fb8adc943a74b537b5b5efffeaaad (diff)
Merge "Add new jobs for doc merge and verify"
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}