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