Expand regex to non-arno project 79/1479/1
authorAric Gardner <agardner@linuxfoundation.org>
Thu, 10 Sep 2015 18:48:32 +0000 (14:48 -0400)
committerAric Gardner <agardner@linuxfoundation.org>
Thu, 10 Sep 2015 18:49:25 +0000 (14:49 -0400)
Also added merge job, but only matching releng

Change-Id: Id3cfb9876cc37c4458c856a9fd6c7ad26119ee6a
Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
jjb/opnfv/opnfv-docs.yml

index 1faf553..b89ca08 100644 (file)
@@ -1,5 +1,5 @@
 ########################
-# Job configuration for dovetail-docs
+# Job configuration for opnfv-docs
 ########################
 - project:
 
@@ -9,6 +9,7 @@
 
     jobs:
         - 'opnfv-docs-verify'
+        - 'opnfv-docs-merge'
 
     # stream:    branch with - in place of / (eg. stable-arno)
     # branch:    branch (eg. stable/arno)
                     comment-contains-value: 'reverify'
             projects:
               - project-compare-type: 'REG_EXP'
-                project-pattern: 'copper|releng'
+#Left out arno projects oscar|octopus|functest|genesis|pharos|opnfvdocs|vswitchperf|yardstick
+                project-pattern: 'apex|availability|bottlenecks|compass4nfv|conductor|copper|doctor|dovetail|dpacc|escalator|fastpathmetrics|fuel|inspector|ipv6|joid|kvmfornfv|lsoapi|moon|movie|multisite|onosfw|ovsnfv|parser|prediction|promise|qtip|releng|rs|sfc|vnf_forwarding_graph'
+                branches:
+                  - branch-compare-type: 'ANT'
+                    branch-pattern: '**/master'
+                file-paths:
+                  - compare-type: ANT
+                    pattern: 'docs/**'
+
+    builders:
+       - shell:
+           !include-raw ../../utils/docu-build-new.sh
+
+- job-template:
+    name: 'opnfv-docs-merge'
+
+    node: master
+
+    project-type: freestyle
+
+    logrotate:
+        daysToKeep: 30
+        numToKeep: 10
+        artifactDaysToKeep: -1
+        artifactNumToKeep: -1
+
+    parameters:
+        - project-parameter:
+            project: $GERRIT_PROJECT
+        - gerrit-parameter:
+            branch: 'master'
+
+    scm:
+        - gerrit-trigger-scm:
+            credentials-id: '{ssh-credentials}'
+            refspec: '$GERRIT_REFSPEC'
+            choosing-strategy: 'gerrit'
+
+    wrappers:
+        - ssh-agent-credentials:
+            user: '{ssh-credentials}'
+
+    triggers:
+        - gerrit:
+            trigger-on:
+                - change-merged-event
+                - comment-added-contains-event:
+                    comment-contains-value: 'remerge'
+            projects:
+              - project-compare-type: 'REG_EXP'
+                project-pattern: 'releng'
                 branches:
                   - branch-compare-type: 'ANT'
                     branch-pattern: '**/master'