Added missing trigger logic to JJB template 34/134/1
authorEby, Robert (re2429) <re2429@att.com>
Thu, 26 Jul 2018 20:33:38 +0000 (16:33 -0400)
committerEby, Robert (re2429) <re2429@att.com>
Thu, 26 Jul 2018 20:33:38 +0000 (16:33 -0400)
Change-Id: I4b7d37f86548c3b8893012663e72a0e2c62b0245
Signed-off-by: Eby, Robert (re2429) <re2429@att.com>
jjb/addon-onap/addon-onap.yaml
jjb/akraino-templates/akraino-jjb-templates.yaml

index 8f5acee..def81af 100644 (file)
@@ -39,3 +39,4 @@
      - akraino-project-stream-release-config
     views:
       - common-view
+    cron: 'H H * * 0'  # push fresh snapshot weekly
index f08dcea..d0cd987 100644 (file)
     project-type: freestyle
     node: '{build-node}'
 
+    gerrit_merge_triggers:
+      - change-merged-event
+      - comment-added-contains-event:
+          comment-contains-value: remerge$
+
+    gerrit_trigger_file_paths:
+      - compare-type: REG_EXP
+        pattern: '.*'
+
     parameters:
       - lf-infra-parameters:
           project: '{project}'
           - ../global-jjb/shell/lftools-install.sh
           - ../global-jjb/shell/deploy-maven-file.sh
       - lf-provide-maven-settings-cleanup
+
+    triggers:
+      - timed: '{obj:cron}'
+      - gerrit:
+          server-name: '{gerrit-server-name}'
+          trigger-on: '{obj:gerrit_merge_triggers}'
+          projects:
+            - project-compare-type: ANT
+              project-pattern: '{project}'
+              branches:
+                - branch-compare-type: ANT
+                  branch-pattern: '**/{branch}'
+              file-paths: '{obj:gerrit_trigger_file_paths}'