From 5768a9216a604f37c5ae473afccb685e1ceee72d Mon Sep 17 00:00:00 2001 From: Rich Bennett Date: Fri, 11 Aug 2017 14:18:48 -0400 Subject: 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 --- jjb/doc/doc-post-rtd.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 jjb/doc/doc-post-rtd.sh (limited to 'jjb/doc/doc-post-rtd.sh') diff --git a/jjb/doc/doc-post-rtd.sh b/jjb/doc/doc-post-rtd.sh new file mode 100644 index 000000000..5c8d8c52f --- /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} -- cgit 1.2.3-korg