X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fopnfvdocs%2Fdocs-rtd.yaml;h=32cc5ea018ea975a4aa50a5cfe84b2aca2664b6f;hb=7b8b640fc0e225e37bae0b494bb0451822d66d27;hp=fbf2969bd9ef722f6515361031fe2c60b2bb9a48;hpb=9c1f49b94c005a48f57a30f2b4303793f52a2d84;p=releng.git diff --git a/jjb/opnfvdocs/docs-rtd.yaml b/jjb/opnfvdocs/docs-rtd.yaml index fbf2969bd..32cc5ea01 100644 --- a/jjb/opnfvdocs/docs-rtd.yaml +++ b/jjb/opnfvdocs/docs-rtd.yaml @@ -1,26 +1,27 @@ --- - project: name: docs-rtd + project: 'opnfvdocs' + project-name: 'opnfvdocs' + rtd-build-url: 'https://readthedocs.org/api/v2/webhook/opnfvdocsdemo/79560/' + rtd-token: 'a96c3622a270344cf9bf3f73b0dfa04f59fc59c0' + project-pattern: 'opnfvdocs' jobs: + - '{project-name}-rtd-jobs' + - 'gerrit-tox-verify': + python-version: python3 + tox-envs: "docs" + build-days-to-keep: 7 - 'docs-merge-rtd-{stream}' - - 'docs-verify-rtd-{stream}' stream: - master: branch: 'master' - - gambia: - branch: 'stable/{stream}' - - fraser: + - iruya: branch: 'stable/{stream}' - - danube: - branch: 'stable/{stream}' - - euphrates: + - jerma: branch: 'stable/{stream}' - project: 'opnfvdocs' - rtdproject: 'opnfv' - # TODO: Archive Artifacts - - job-template: name: 'docs-merge-rtd-{stream}' @@ -29,7 +30,7 @@ parameters: - label: name: SLAVE_LABEL - default: 'lf-build1' + default: 'lf-build5' description: 'Slave label on Jenkins' all-nodes: false node-eligibility: 'ignore-offline' @@ -45,72 +46,3 @@ builders: - 'remove-old-docs-from-opnfv-artifacts' - - 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}' - - project-type: freestyle - - parameters: - - label: - name: SLAVE_LABEL - default: 'lf-build2' - description: 'Slave label on Jenkins' - all-nodes: false - node-eligibility: 'ignore-offline' - - 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-with-submodules: - branch: '{branch}' - - triggers: - - gerrit-trigger-patchset-created: - server: 'gerrit.opnfv.org' - project: '**' - branch: '{branch}' - files: 'docs/**' - - builders: - - shell: | - if [ "$GERRIT_PROJECT" != "opnfvdocs" ]; then - # Temporary hacky solution to handle local builds for projects - # that already moved away from submodules - if ! cd docs/submodules/$GERRIT_PROJECT 2 > /dev/null; then - rm -rf .* * 2 > /dev/null - git clone ${{GIT_BASE/opnfvdocs/$GERRIT_PROJECT}} . - fi - git fetch origin $GERRIT_REFSPEC && git checkout FETCH_HEAD - cd - - else - git fetch origin $GERRIT_REFSPEC && git checkout FETCH_HEAD - fi - if [ -d docs/subdmodules ]; then - for project in docs/submodules/*; do - cd $project && git submodule deinit -f . && cd - - done - fi - - shell: | - sudo -H pip install virtualenv - virtualenv $WORKSPACE/venv - . $WORKSPACE/venv/bin/activate - pip install --upgrade pip - pip freeze - pip install tox - sed -i s,\-b\ html,\-b\ singlehtml,g tox.ini - tox -edocs - - 'upload-review-docs'