summaryrefslogtreecommitdiffstats
path: root/jjb/doc/doc-post-rtd.sh
blob: 5c8d8c52f516feac6581b2dde1f72f2248fe62d3 (plain)
1
2
3
4
5
6
7
8
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}