Add DOC project JJB jobs and RTD job templates
Job template for verify sphinx/restructured text source
Job template for merge/publish to readthedocs.io
Issue-ID: DOC-12
Change-Id: Id344df0f4a0c517ca3ca80dff1631560ec5c2a71
Signed-off-by: Rich Bennett <rb2745@att.com>
diff --git a/jjb/doc/doc-post-rtd.sh b/jjb/doc/doc-post-rtd.sh
new file mode 100644
index 0000000..5c8d8c5
--- /dev/null
+++ b/jjb/doc/doc-post-rtd.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+if [ "$GERRIT_BRANCH" == "master" ]; then
+ RTD_BUILD_VERSION=latest
+else
+ RTD_BUILD_VERSION="${{GERRIT_BRANCH/\//-}}"
+fi
+
+# shellcheck disable=SC1083
+curl -X POST --data "version_slug=$RTD_BUILD_VERSION" https://readthedocs.org/build/{rtdproject}