5 - 'docs-merge-rtd-{stream}'
6 - 'docs-verify-rtd-{stream}'
12 branch: 'stable/{stream}'
14 branch: 'stable/{stream}'
16 branch: 'stable/{stream}'
20 # TODO: Archive Artifacts
23 name: 'docs-merge-rtd-{stream}'
25 project-type: freestyle
31 description: 'Slave label on Jenkins'
37 - gerrit-trigger-change-merged:
43 - 'remove-old-docs-from-opnfv-artifacts'
45 if [ $GERRIT_BRANCH == "master" ]; then
46 RTD_BUILD_VERSION=latest
48 RTD_BUILD_VERSION=${{GERRIT_BRANCH/\//-}}
50 curl -X POST --data "version_slug=$RTD_BUILD_VERSION" https://readthedocs.org/build/opnfvdocsdemo
54 name: 'docs-verify-rtd-{stream}'
56 project-type: freestyle
62 description: 'Slave label on Jenkins'
68 default: https://gerrit.opnfv.org/gerrit/opnfvdocs
69 description: 'Git URL to use on this Jenkins Slave'
72 - git-scm-with-submodules:
76 - gerrit-trigger-patchset-created:
77 server: 'gerrit.opnfv.org'
84 if [ "$GERRIT_PROJECT" != "opnfvdocs" ]; then
85 cd docs/submodules/$GERRIT_PROJECT
86 git fetch origin $GERRIT_REFSPEC && git checkout FETCH_HEAD
88 git fetch origin $GERRIT_REFSPEC && git checkout FETCH_HEAD
91 sudo pip install virtualenv
92 virtualenv $WORKSPACE/venv
93 . $WORKSPACE/venv/bin/activate
94 pip install --upgrade pip
97 sed -i s,\-b\ html,\-b\ singlehtml,g tox.ini
99 - 'upload-review-docs'