From 9e73ad1faf545917a5b447adf6d598852927f3cc Mon Sep 17 00:00:00 2001
From: Yolanda Robla <yroblamo@redhat.com>
Date: Thu, 20 Sep 2018 13:39:31 +0200
Subject: Add scenario to publisher and filter

Change-Id: I52d4ecb5f305f190a9e06c13407fd0927bc45a29
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
---
 jjb/openci/create-cde.sh                | 1 +
 jjb/openci/openci-opnfv-daily-jobs.yaml | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/jjb/openci/create-cde.sh b/jjb/openci/create-cde.sh
index ae50b3d73..8fb9f0041 100755
--- a/jjb/openci/create-cde.sh
+++ b/jjb/openci/create-cde.sh
@@ -31,6 +31,7 @@ cat <<EOF > ./json_body.txt
     "buildUrl": "$BUILD_URL",
     "branch": "master",
     "origin": "$PUBLISH_EVENT_ORIGIN",
+    "scenario": "$DEPLOY_SCENARIO",
     "compositionName": "$DEPLOY_SCENARIO",
     "compositionMetadataUrl": "$SCENARIO_METADATA_LOCATION"
 }
diff --git a/jjb/openci/openci-opnfv-daily-jobs.yaml b/jjb/openci/openci-opnfv-daily-jobs.yaml
index 0093a3e4a..2be30ceb4 100644
--- a/jjb/openci/openci-opnfv-daily-jobs.yaml
+++ b/jjb/openci/openci-opnfv-daily-jobs.yaml
@@ -112,7 +112,7 @@
     triggers:
       - jms-messaging:
           provider-name: openci.activemq
-          selector: JMSType = 'CompositionDefinedEvent' and JMSOrigin = 'OPNFV'
+          selector: JMSType = 'CompositionDefinedEvent' and JMSOrigin = 'OPNFV' and JMSScenario = '{scenario}'
 
     builders:
       - shell: |
-- 
cgit