- 'docs-verify-rtd-{stream}'
stream:
- - danube:
+ - master:
branch: 'master'
- - colorado:
- branch: 'stable/colorado'
project: 'opnfvdocs'
rtdproject: 'opnfv'
project-type: freestyle
parameters:
+ - label:
+ name: SLAVE_LABEL
+ default: 'lf-build1'
+ description: 'Slave label on Jenkins'
- project-parameter:
project: '{project}'
branch: '{branch}'
+ - string:
+ name: GIT_BASE
+ default: https://gerrit.opnfv.org/gerrit/releng
+ description: 'Git URL to use on this Jenkins Slave'
scm:
- git-scm
project-type: freestyle
parameters:
+ - label:
+ name: SLAVE_LABEL
+ default: 'lf-build2'
+ description: 'Slave label on Jenkins'
- project-parameter:
project: '{project}'
branch: '{branch}'
+ - string:
+ name: GIT_BASE
+ default: https://gerrit.opnfv.org/gerrit/opnfvdocs
+ description: 'Git URL to use on this Jenkins Slave'
scm:
- - git-scm
+ - git-scm-with-submodules:
+ branch: '{branch}'
triggers:
- gerrit-trigger-patchset-created:
builders:
- shell: |
if [ "$GERRIT_PROJECT" != "opnfvdocs" ]; then
- cd opnfvdocs/submodules/$GERRIT_PROJECT
+ cd docs/submodules/$GERRIT_PROJECT
git fetch origin $GERRIT_REFSPEC && git checkout FETCH_HEAD
else
git fetch origin $GERRIT_REFSPEC && git checkout FETCH_HEAD
fi
- shell: |
+ sudo pip install virtualenv
virtualenv $WORKSPACE/venv
source $WORKSPACE/venv/bin/activate
pip install --upgrade pip
pip freeze
pip install tox
- tox -edocs
\ No newline at end of file
+ tox -edocs