Enable merge jobs to trigger downstream job 92/1192/2
authorEric Ball <eball@linuxfoundation.org>
Mon, 15 Jul 2019 21:20:58 +0000 (14:20 -0700)
committerEric Ball <eball@linuxfoundation.org>
Wed, 17 Jul 2019 23:07:54 +0000 (16:07 -0700)
Enable all merge jobs in ta project to trigger
a downstream ta-ci-build job, so that ta-ci-build
is triggered on every successful merge.

Issue: IT-16719
Change-Id: Ib0debc513f697e0ad77d49a89329cc66bb27f46b
Signed-off-by: Eric Ball <eball@linuxfoundation.org>
jjb/akraino-templates/akraino-ta-common-macros.yaml
jjb/akraino-templates/akraino-ta-common-templates.yaml

index 8ed76b5..24436b9 100644 (file)
 - publisher:
     name: ta-publisher-job-verify
     publishers:
-        - lf-infra-publish
+      - lf-infra-publish
 
 - publisher:
     name: ta-publisher-job-merge
     publishers:
-        - lf-infra-publish
+      - lf-infra-publish
+      - trigger-parameterized-builds:
+          - project: 'ta-ci-build'
+            condition: UNSTABLE_OR_BETTER
+            trigger-with-no-params: true
index f0e868b..e1ecc08 100644 (file)
           build-timeout: '{build-timeout}'
           jenkins-ssh-credential: '{jenkins-ssh-credential}'
 
-    # TODO: define how it should be triggered
-    # Ideally should build whenever RPM is uploaded to nexus
-    triggers:
-      - timed: "@daily"
-
     builders:
       - ta-builder-scm:
           git-url: '{git-url}'