5 - 'docs-merge-rtd-{stream}'
6 - 'docs-verify-rtd-{stream}'
12 branch: 'stable/{stream}'
14 branch: 'stable/{stream}'
18 # TODO: Archive Artifacts
21 name: 'docs-merge-rtd-{stream}'
23 project-type: freestyle
29 description: 'Slave label on Jenkins'
35 - gerrit-trigger-change-merged:
41 - 'remove-old-docs-from-opnfv-artifacts'
43 if [ $GERRIT_BRANCH == "master" ]; then
44 RTD_BUILD_VERSION=latest
46 RTD_BUILD_VERSION=${{GERRIT_BRANCH/\//-}}
48 curl -X POST --data "version_slug=$RTD_BUILD_VERSION" https://readthedocs.org/build/opnfvdocsdemo
52 name: 'docs-verify-rtd-{stream}'
54 project-type: freestyle
60 description: 'Slave label on Jenkins'
66 default: https://gerrit.opnfv.org/gerrit/opnfvdocs
67 description: 'Git URL to use on this Jenkins Slave'
70 - git-scm-with-submodules:
74 - gerrit-trigger-patchset-created:
75 server: 'gerrit.opnfv.org'
82 if [ "$GERRIT_PROJECT" != "opnfvdocs" ]; then
83 cd docs/submodules/$GERRIT_PROJECT
84 git fetch origin $GERRIT_REFSPEC && git checkout FETCH_HEAD
86 git fetch origin $GERRIT_REFSPEC && git checkout FETCH_HEAD
89 sudo pip install virtualenv
90 virtualenv $WORKSPACE/venv
91 . $WORKSPACE/venv/bin/activate
92 pip install --upgrade pip
95 sed -i s,\-b\ html,\-b\ singlehtml,g tox.ini
97 - 'upload-review-docs'