Remove project distribution job
[releng/builder.git] / jjb / docs / docs-rtd.yaml
index 3cc61844c5da83eaa23986c4f073fd5eaaf4ac6a..4ee3c238dbb05c3a675f3e82196393369c1197a3 100644 (file)
@@ -5,28 +5,33 @@
         - 'docs-verify-rtd-{stream}'
 
     stream:
-        - boron:
+        - 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: dynamic_verify
+    node: centos7-java-builder-2c-8g
 
     project-type: freestyle
 
-    logrotate:
-        daysToKeep: 14
+    properties:
+        - opendaylight-infra-properties:
+            build-days-to-keep: 14
 
     parameters:
-        - project-parameter:
-            project: '{project}'
-        - gerrit-parameters:
+        - opendaylight-infra-parameters:
             project: '{project}'
             branch: '{branch}'
             refspec: 'refs/heads/{branch}'
+            artifacts: '{archive-artifacts}'
 
     wrappers:
         - opendaylight-infra-wrappers:
@@ -34,7 +39,7 @@
 
     triggers:
         - gerrit:
-            server-name: 'OpenDaylight'
+            server-name: '{server-name}'
             trigger-on:
                 - change-merged-event
                 - comment-added-contains-event:
                     branch-pattern: '**/{branch}'
                 file-paths:
                     - compare-type: ANT
-                      pattern: docs/**
+                      pattern: docs/**/*.rst
 
     builders:
-        - shell: |
-            curl -X POST https://readthedocs.org/build/{rtdproject}
+        - shell: !include-raw: docs-post-rtd.sh
 
     publishers:
         - email-notification:
+            email-recipients: '{email-recipients}'
             email-prefix: '[docs]'
+        - opendaylight-infra-shiplogs:
+            maven-version: 'mvn33'
 
 - job-template:
+    # FIXME: Describe this job in docs/jenkins.rst
     name: 'docs-verify-rtd-{stream}'
-    node: dynamic_verify
+    node: centos7-java-builder-2c-8g
 
     project-type: freestyle
 
-    logrotate:
-        daysToKeep: 14
+    properties:
+        - opendaylight-infra-properties:
+            build-days-to-keep: 14
 
     parameters:
-        - project-parameter:
-            project: '{project}'
-        - gerrit-parameters:
+        - opendaylight-infra-parameters:
             project: '{project}'
             branch: '{branch}'
             refspec: 'refs/heads/{branch}'
+            artifacts: '{archive-artifacts}'
 
     scm:
         - git-scm-with-submodules:
             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/**
+        - gerrit-trigger-patch-submitted:
+            server: '{server-name}'
+            project: '**'
+            branch: '{branch}'
+            files: 'docs/**/*.rst'
         - timed: 'H H * * *'
 
     builders:
 
     publishers:
         - email-notification:
+            email-recipients: '{email-recipients}'
             email-prefix: '[docs]'
+        - opendaylight-infra-shiplogs:
+            maven-version: 'mvn33'