Merge "Update Ubuntu docker image"
[releng/builder.git] / jjb / docs / docs-rtd.yaml
index c1a1dd31de8229ee8c269653fe19ac986b95c177..ac14197063a0523b4a5466bc3e2f2418f1c63a15 100644 (file)
+---
 - project:
     name: docs-rtd
     jobs:
-        - 'docs-merge-rtd-{stream}'
-        - 'docs-verify-rtd-{stream}'
+      - '{project-name}-rtd-jobs'
+      - gerrit-tox-verify
 
     stream:
-        - carbon:
-            branch: 'master'
-        - boron:
-            branch: 'stable/boron'
-        - beryllium:
-            branch: 'stable/beryllium'
-
-    project: 'docs'
-    rtdproject: 'opendaylight'
-    archive-artifacts: 'docs/_build/html/**'
-
-- job-template:
-    name: 'docs-merge-rtd-{stream}'
-    node: centos7-java-builder-2c-8g
-
-    project-type: freestyle
-
-    logrotate:
-        daysToKeep: 14
-
-    parameters:
-        - opendaylight-infra-parameters:
-            project: '{project}'
-            branch: '{branch}'
-            refspec: 'refs/heads/{branch}'
-            artifacts: '{archive-artifacts}'
-
-    wrappers:
-        - opendaylight-infra-wrappers:
-            build-timeout: '30'
-
-    triggers:
-        - gerrit:
-            server-name: 'OpenDaylight'
-            trigger-on:
-                - change-merged-event
-                - comment-added-contains-event:
-                    comment-contains-value: 'remerge'
-            projects:
-              - project-compare-type: 'ANT'
-                project-pattern: '**'
-                branches:
-                  - branch-compare-type: 'ANT'
-                    branch-pattern: '**/{branch}'
-                file-paths:
-                    - compare-type: ANT
-                      pattern: docs/**/*.rst
-
-    builders:
-        - shell: |
-            curl -X POST https://readthedocs.org/build/{rtdproject}
-
-    publishers:
-        - email-notification:
-            email-prefix: '[docs]'
-        - opendaylight-infra-shiplogs:
-            maven-version: '{mvn33}'
-
-- job-template:
-    name: 'docs-verify-rtd-{stream}'
-    node: centos7-java-builder-2c-8g
-
-    project-type: freestyle
-
-    logrotate:
-        daysToKeep: 14
-
-    parameters:
-        - opendaylight-infra-parameters:
-            project: '{project}'
-            branch: '{branch}'
-            refspec: 'refs/heads/{branch}'
-            artifacts: '{archive-artifacts}'
-
-    scm:
-        - git-scm-with-submodules:
-            branch: '{branch}'
-
-    wrappers:
-        - opendaylight-infra-wrappers:
-            build-timeout: '{build-timeout}'
-
-    triggers:
-        - gerrit:
-            server-name: 'OpenDaylight'
-            trigger-on:
-                - patchset-created-event:
-                    exclude-drafts: 'true'
-                    exclude-trivial-rebase: 'true'
-                    exclude-no-code-change: 'true'
-                - draft-published-event
-                - comment-added-contains-event:
-                    comment-contains-value: 'recheck'
-            projects:
-              - project-compare-type: 'ANT'
-                project-pattern: '**'
-                branches:
-                  - branch-compare-type: 'ANT'
-                    branch-pattern: '**/{branch}'
-                file-paths:
-                    - compare-type: ANT
-                      pattern: docs/**/*.rst
-        - timed: 'H H * * *'
-
-    builders:
-        - shell: |
-            if [ "$GERRIT_PROJECT" != "docs" ]; then
-                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: |
-            virtualenv $WORKSPACE/venv
-            source $WORKSPACE/venv/bin/activate
-            pip install --upgrade pip
-            pip freeze
-            pip install tox
-            tox -edocs
-
-    publishers:
-        - email-notification:
-            email-prefix: '[docs]'
-        - opendaylight-infra-shiplogs:
-            maven-version: '{mvn33}'
+      - fluorine:
+          branch: 'master'
+      - oxygen:
+          branch: 'stable/oxygen'
+
+    project: docs
+    project-name: docs
+    build-node: centos7-builder-4c-4g
+    build-timeout: 60
+    rtd-build-url: https://readthedocs.org/api/v2/webhook/opendaylight/32322/
+    rtd-token: 86e54dd38c651e2164ea63c183ae601d19cd1f3c