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 # Temporary hacky solution to handle local builds for projects
90 # that already moved away from submodules
91 if ! cd docs/submodules/$GERRIT_PROJECT 2 > /dev/null; then
92 rm -rf .* * 2 > /dev/null
93 git clone ${{GIT_BASE/opnfvdocs/$GERRIT_PROJECT}} .
95 git fetch origin $GERRIT_REFSPEC && git checkout FETCH_HEAD
98 git fetch origin $GERRIT_REFSPEC && git checkout FETCH_HEAD
100 if [ -d docs/subdmodules ]; then
101 for project in docs/submodules/*; do
102 cd $project && git submodule deinit -f . && cd -
106 sudo -H pip install virtualenv
107 virtualenv $WORKSPACE/venv
108 . $WORKSPACE/venv/bin/activate
109 pip install --upgrade pip
112 sed -i s,\-b\ html,\-b\ singlehtml,g tox.ini
114 - 'upload-review-docs'