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'
33 node-eligibility: 'ignore-offline'
39 - gerrit-trigger-change-merged:
45 - 'remove-old-docs-from-opnfv-artifacts'
47 if [ $GERRIT_BRANCH == "master" ]; then
48 RTD_BUILD_VERSION=latest
50 RTD_BUILD_VERSION=${{GERRIT_BRANCH/\//-}}
52 curl -X POST --data "version_slug=$RTD_BUILD_VERSION" https://readthedocs.org/build/opnfvdocsdemo
56 name: 'docs-verify-rtd-{stream}'
58 project-type: freestyle
64 description: 'Slave label on Jenkins'
66 node-eligibility: 'ignore-offline'
72 default: https://gerrit.opnfv.org/gerrit/opnfvdocs
73 description: 'Git URL to use on this Jenkins Slave'
76 - git-scm-with-submodules:
80 - gerrit-trigger-patchset-created:
81 server: 'gerrit.opnfv.org'
88 if [ "$GERRIT_PROJECT" != "opnfvdocs" ]; then
89 cd docs/submodules/$GERRIT_PROJECT
90 git fetch origin $GERRIT_REFSPEC && git checkout FETCH_HEAD
93 git fetch origin $GERRIT_REFSPEC && git checkout FETCH_HEAD
95 if [ -d docs/subdmodules ]; then
96 for project in docs/submodules/*; do
97 cd $project && git submodule deinit -f . && cd -
101 sudo -H pip install virtualenv
102 virtualenv $WORKSPACE/venv
103 . $WORKSPACE/venv/bin/activate
104 pip install --upgrade pip
107 sed -i s,\-b\ html,\-b\ singlehtml,g tox.ini
109 - 'upload-review-docs'