refactor email recipients to parameter with default value
[releng/builder.git] / jjb / docs / docs-rtd.yaml
index 01554ad078f08d92d62a1e7f4d471ec99dfa802a..a24dcceee5fadaee764f1526d1ea6ff1df229fb6 100644 (file)
@@ -5,15 +5,20 @@
         - '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
 
         daysToKeep: 14
 
     parameters:
-        - project-parameter:
-            project: '{project}'
-        - gerrit-parameters:
+        - opendaylight-infra-parameters:
             project: '{project}'
             branch: '{branch}'
             refspec: 'refs/heads/{branch}'
+            artifacts: '{archive-artifacts}'
 
     wrappers:
-        - ssh-agent-credentials:
-            users:
-                - '{ssh-credentials}'
+        - opendaylight-infra-wrappers:
+            build-timeout: '30'
 
     triggers:
         - gerrit:
+            server-name: 'OpenDaylight'
             trigger-on:
                 - change-merged-event
                 - comment-added-contains-event:
@@ -47,7 +51,7 @@
                     branch-pattern: '**/{branch}'
                 file-paths:
                     - compare-type: ANT
-                      pattern: docs/**
+                      pattern: docs/**/*.rst
 
     builders:
         - shell: |
 
     publishers:
         - email-notification:
+            email-recipients: '{email-recipients}'
             email-prefix: '[docs]'
+        - opendaylight-infra-shiplogs:
+            maven-version: 'mvn33'
 
 - job-template:
     name: 'docs-verify-rtd-{stream}'
-    node: dynamic_verify
+    node: centos7-java-builder-2c-8g
 
     project-type: freestyle
 
         daysToKeep: 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:
-            credentials-id: '{ssh-credentials}'
             branch: '{branch}'
 
     wrappers:
-        - ssh-agent-credentials:
-            users:
-                - '{ssh-credentials}'
+        - 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-trivial-rebase: 'false'
                     exclude-no-code-change: 'true'
                 - draft-published-event
                 - comment-added-contains-event:
                     comment-contains-value: 'recheck'
+                - comment-added-contains-event:
+                    comment-contains-value: 'redocs'
+                    # FIXME: Describe this job in docs/jenkins.rst including the BEWARE section.
             projects:
               - project-compare-type: 'ANT'
                 project-pattern: '**'
                     branch-pattern: '**/{branch}'
                 file-paths:
                     - compare-type: ANT
-                      pattern: docs/**
+                      pattern: docs/**/*.rst
+        - timed: 'H H * * *'
 
     builders:
         - shell: |
 
     publishers:
         - email-notification:
+            email-recipients: '{email-recipients}'
             email-prefix: '[docs]'
+        - opendaylight-infra-shiplogs:
+            maven-version: 'mvn33'