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'
31 node-eligibility: 'ignore-offline'
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'
64 node-eligibility: 'ignore-offline'
70 default: https://gerrit.opnfv.org/gerrit/opnfvdocs
71 description: 'Git URL to use on this Jenkins Slave'
74 - git-scm-with-submodules:
78 - gerrit-trigger-patchset-created:
79 server: 'gerrit.opnfv.org'
86 if [ "$GERRIT_PROJECT" != "opnfvdocs" ]; then
87 # Temporary hacky solution to handle local builds for projects
88 # that already moved away from submodules
89 if ! cd docs/submodules/$GERRIT_PROJECT 2 > /dev/null; then
90 rm -rf .* * 2 > /dev/null
91 git clone ${{GIT_BASE/opnfvdocs/$GERRIT_PROJECT}} .
93 git fetch origin $GERRIT_REFSPEC && git checkout FETCH_HEAD
96 git fetch origin $GERRIT_REFSPEC && git checkout FETCH_HEAD
98 if [ -d docs/subdmodules ]; then
99 for project in docs/submodules/*; do
100 cd $project && git submodule deinit -f . && cd -
104 sudo -H pip install virtualenv
105 virtualenv $WORKSPACE/venv
106 . $WORKSPACE/venv/bin/activate
107 pip install --upgrade pip
110 sed -i s,\-b\ html,\-b\ singlehtml,g tox.ini
112 - 'upload-review-docs'