using global tox verify job 89/72989/3
authorGeorg Kunz <georg.kunz@ericsson.com>
Tue, 26 Oct 2021 21:48:56 +0000 (23:48 +0200)
committerGeorg Kunz <georg.kunz@ericsson.com>
Tue, 30 Nov 2021 16:23:21 +0000 (17:23 +0100)
This patch replaces the old rtd verify job, which still defaulted to
Python 2, with the global tox verify job and a Python 3 environment.

Signed-off-by: Georg Kunz <georg.kunz@ericsson.com>
Change-Id: Ic6c1491460a067a930b10e7bdda75701768cdde6

jjb/opnfvdocs/docs-rtd.yaml

index 42dcf31..32cc5ea 100644 (file)
@@ -8,8 +8,11 @@
     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:
 
     builders:
       - 'remove-old-docs-from-opnfv-artifacts'
-
-- job-template:
-    name: 'docs-verify-rtd-{stream}'
-
-    project-type: freestyle
-
-    parameters:
-      - label:
-          name: SLAVE_LABEL
-          default: 'lf-build5'
-          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: 'opnfvdocs'
-          branch: '{branch}'
-          files: 'docs/**'
-
-    builders:
-      - 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'