Manage ODL Jenkins views with view-templates
[releng/builder.git] / jjb / docs / docs-rtd.yaml
index dee12dace4f733aeba0115b83916e846886eb906..53ed32f95cd24cd7fe9bb056a4e57c57951e1ad5 100644 (file)
       - gerrit-tox-verify
 
     stream:
+      - neon:
+          branch: 'master'
+      - fluorine:
+          branch: 'stable/fluorine'
       - oxygen:
-          branch: master
-      - nitrogen:
-          branch: stable/nitrogen
-      - carbon:
-          branch: stable/carbon
+          branch: 'stable/oxygen'
 
     project: docs
     project-name: docs
-    build-node: centos7-java-builder-2c-4g
-    rtd-project: opendaylight
-    archive-artifacts: ''
+    project-pattern: docs
+    build-node: centos7-builder-4c-4g
+    build-timeout: 60
+    rtd-build-url: https://readthedocs.org/api/v2/webhook/opendaylight/32322/
+    rtd-token: 86e54dd38c651e2164ea63c183ae601d19cd1f3c
 
-- job-template:
-    name: 'docs-merge-rtd-{stream}'
-    node: centos7-java-builder-2c-8g
-
-    project-type: freestyle
-
-    properties:
-      - opendaylight-infra-properties:
-          build-days-to-keep: 14
-
-    parameters:
-      - opendaylight-infra-parameters:
-          os-cloud: '{os-cloud}'
-          project: '{project}'
-          branch: '{branch}'
-          refspec: 'refs/heads/{branch}'
-          artifacts: '{archive-artifacts}'
-
-    wrappers:
-      - opendaylight-infra-wrappers:
-          build-timeout: '30'
-
-    triggers:
-      - gerrit:
-          server-name: '{server-name}'
-          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: !include-raw: docs-post-rtd.sh
-
-    publishers:
-      - email-notification:
-          email-recipients: '{email-recipients}'
-          email-prefix: '[docs]'
-      - lf-infra-publish
-
-- job-template:
-    # FIXME: Describe this job in docs/jenkins.rst
-    name: 'docs-verify-rtd-{stream}'
-    node: centos7-java-builder-2c-8g
-    concurrent: true
-
-    project-type: freestyle
-
-    properties:
-      - opendaylight-infra-properties:
-          build-days-to-keep: 14
-
-    parameters:
-      - opendaylight-infra-parameters:
-          os-cloud: '{os-cloud}'
-          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-trigger-patch-submitted:
-          server: '{server-name}'
-          project: '**'
-          branch: '{branch}'
-          files: '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
-          PYTHON="$WORKSPACE/venv/bin/python"
-          $PYTHON -m pip install --upgrade pip
-          $PYTHON -m pip install --upgrade pipdeptree
-          $PYTHON -m pip install tox
-          pipdeptree
-          tox -edocs
-
-          # Archive generated docs
-          mkdir -p "$WORKSPACE/archives"
-          mv docs/_build/html archives/
-
-    publishers:
-      - email-notification:
-          email-recipients: '{email-recipients}'
-          email-prefix: '[docs]'
-      - lf-infra-publish
+- project:
+    name: docs-view
+    views:
+      - project-view
+    project-name: docs