Add triggers to ci-build job. 30/1930/1
authorTamas Lendvay <tamas.lendvay@nokia.com>
Thu, 7 Nov 2019 09:55:15 +0000 (11:55 +0200)
committerTamas Lendvay <tamas.lendvay@nokia.com>
Thu, 7 Nov 2019 09:57:18 +0000 (11:57 +0200)
Triggers if manifest and build-tools repo changed.

Signed-off-by: Tamas Lendvay <tamas.lendvay@nokia.com>
Issue: REC-30
Change-Id: I8ba22ddc541c9c8d03fb95dd8ddbcdbf223b9e6b
Signed-off-by: Tamas Lendvay <tamas.lendvay@nokia.com>
jjb/akraino-templates/akraino-ta-common-templates.yaml

index d340775..5757189 100644 (file)
           build-timeout: '{build-timeout}'
           jenkins-ssh-credential: '{jenkins-ssh-credential}'
 
+    triggers:
+      - gerrit:
+          server-name: '{gerrit-server-name}'
+          trigger-on:
+            - ref-updated-event
+          projects:
+            - project-compare-type: 'ANT'
+              project-pattern: 'ta/manifest'
+              branches:
+                - branch-compare-type: 'ANT'
+                  branch-pattern: '**/{branch}'
+            - project-compare-type: 'ANT'
+              project-pattern: 'ta/build-tools'
+              branches:
+                - branch-compare-type: 'ANT'
+                  branch-pattern: '**/{branch}'
+
     builders:
       - lf-display-node-uuid
       - ta-builder-scm: