5 - 'docs-merge-rtd-{stream}'
6 - 'docs-verify-rtd-{stream}'
12 branch: 'stable/{stream}'
14 branch: 'stable/{stream}'
16 branch: 'stable/{stream}'
18 branch: 'stable/{stream}'
22 # TODO: Archive Artifacts
25 name: 'docs-merge-rtd-{stream}'
27 project-type: freestyle
33 description: 'Slave label on Jenkins'
35 node-eligibility: 'ignore-offline'
41 - gerrit-trigger-change-merged:
47 - 'remove-old-docs-from-opnfv-artifacts'
49 if [ $GERRIT_BRANCH == "master" ]; then
50 RTD_BUILD_VERSION=latest
52 RTD_BUILD_VERSION=${{GERRIT_BRANCH/\//-}}
54 curl -X POST --data "version_slug=$RTD_BUILD_VERSION" https://readthedocs.org/build/opnfvdocsdemo
58 name: 'docs-verify-rtd-{stream}'
60 project-type: freestyle
66 description: 'Slave label on Jenkins'
68 node-eligibility: 'ignore-offline'
74 default: https://gerrit.opnfv.org/gerrit/opnfvdocs
75 description: 'Git URL to use on this Jenkins Slave'
78 - git-scm-with-submodules:
82 - gerrit-trigger-patchset-created:
83 server: 'gerrit.opnfv.org'
90 if [ "$GERRIT_PROJECT" != "opnfvdocs" ]; then
91 # Temporary hacky solution to handle local builds for projects
92 # that already moved away from submodules
93 if ! cd docs/submodules/$GERRIT_PROJECT 2 > /dev/null; then
94 rm -rf .* * 2 > /dev/null
95 git clone ${{GIT_BASE/opnfvdocs/$GERRIT_PROJECT}} .
97 git fetch origin $GERRIT_REFSPEC && git checkout FETCH_HEAD
100 git fetch origin $GERRIT_REFSPEC && git checkout FETCH_HEAD
102 if [ -d docs/subdmodules ]; then
103 for project in docs/submodules/*; do
104 cd $project && git submodule deinit -f . && cd -
108 sudo -H pip install virtualenv
109 virtualenv $WORKSPACE/venv
110 . $WORKSPACE/venv/bin/activate
111 pip install --upgrade pip
114 sed -i s,\-b\ html,\-b\ singlehtml,g tox.ini
116 - 'upload-review-docs'