summaryrefslogtreecommitdiffstats
path: root/jjb/opnfvdocs/docs-post-rtd.sh
blob: e3dc9b5f055830166f1d7b2df24dda29e3490b20 (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/opnfvdocsdemo