Code Review
/
releng.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "substitute with testapi img"
[releng.git]
/
jjb
/
opnfvdocs
/
docs-rtd.yaml
diff --git
a/jjb/opnfvdocs/docs-rtd.yaml
b/jjb/opnfvdocs/docs-rtd.yaml
index
40e91ca
..
864626b
100644
(file)
--- a/
jjb/opnfvdocs/docs-rtd.yaml
+++ b/
jjb/opnfvdocs/docs-rtd.yaml
@@
-5,10
+5,10
@@
- 'docs-verify-rtd-{stream}'
stream:
- 'docs-verify-rtd-{stream}'
stream:
- -
danube
:
+ -
master
:
branch: 'master'
branch: 'master'
- -
colorado
:
- branch: 'stable/
colorado
'
+ -
danube
:
+ branch: 'stable/
{stream}
'
project: 'opnfvdocs'
rtdproject: 'opnfv'
project: 'opnfvdocs'
rtdproject: 'opnfv'
@@
-27,18
+27,22
@@
- project-parameter:
project: '{project}'
branch: '{branch}'
- 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
triggers:
triggers:
- - gerrit-trigger-change-merged
+ - gerrit-trigger-change-merged:
+ project: '**'
+ branch: '{branch}'
+ files: 'docs/**/*.*'
builders:
builders:
- - shell: !include-raw: docs-post-rtd.sh
+ - shell: |
+ if [ $GERRIT_BRANCH == "master" ]; then
+ RTD_BUILD_VERSION=latest
+ else
+ RTD_BUILD_VERSION=${{GERRIT_BRANCH/\//-}}
+ fi
+ curl -X POST --data "version_slug=$RTD_BUILD_VERSION" https://readthedocs.org/build/opnfvdocsdemo
+
- job-template:
name: 'docs-verify-rtd-{stream}'
- job-template:
name: 'docs-verify-rtd-{stream}'
@@
-48,43
+52,40
@@
parameters:
- label:
name: SLAVE_LABEL
parameters:
- label:
name: SLAVE_LABEL
- default: 'lf-build
1
'
+ default: 'lf-build
2
'
description: 'Slave label on Jenkins'
- project-parameter:
project: '{project}'
branch: '{branch}'
- string:
name: GIT_BASE
description: 'Slave label on Jenkins'
- project-parameter:
project: '{project}'
branch: '{branch}'
- string:
name: GIT_BASE
- default: https://gerrit.opnfv.org/gerrit/
releng
+ default: https://gerrit.opnfv.org/gerrit/
opnfvdocs
description: 'Git URL to use on this Jenkins Slave'
scm:
description: 'Git URL to use on this Jenkins Slave'
scm:
- - git-scm-gerrit
+ - git-scm-with-submodules:
+ branch: '{branch}'
triggers:
- gerrit-trigger-patchset-created:
server: 'gerrit.opnfv.org'
project: '**'
branch: '{branch}'
triggers:
- gerrit-trigger-patchset-created:
server: 'gerrit.opnfv.org'
project: '**'
branch: '{branch}'
- files: 'docs/**/*.rst'
- skip-vote:
- successful: true
- failed: true
- unstable: true
- notbuilt: true
+ files: 'docs/**/*.*'
- timed: 'H H * * *'
builders:
- shell: |
if [ "$GERRIT_PROJECT" != "opnfvdocs" ]; then
- timed: 'H H * * *'
builders:
- shell: |
if [ "$GERRIT_PROJECT" != "opnfvdocs" ]; then
- cd
opnfv
docs/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: |
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
virtualenv $WORKSPACE/venv
-
source
$WORKSPACE/venv/bin/activate
+
.
$WORKSPACE/venv/bin/activate
pip install --upgrade pip
pip freeze
pip install tox
pip install --upgrade pip
pip freeze
pip install tox
- tox -edocs
\ No newline at end of file
+ tox -edocs