From a519f211bdd5f4f783edd55bbdcf6a846c818f17 Mon Sep 17 00:00:00 2001 From: Fatih Degirmenci Date: Fri, 21 Sep 2018 09:42:13 +0200 Subject: [PATCH] openci: Log eventBody to console before publishing It is necessary to log the eventBody to console before we attempt to publish it since it is not possible to see the event body in case if the publisher errors out due to invalid JSON. Change-Id: I79cb93f64f5e6e275e306b375210f5f2ed7bd53d Signed-off-by: Fatih Degirmenci --- jjb/openci/create-ape.sh | 4 ++-- jjb/openci/create-cde.sh | 4 ++-- jjb/openci/create-clme.sh | 6 ++++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/jjb/openci/create-ape.sh b/jjb/openci/create-ape.sh index 798fd9428..7c9b46cc6 100755 --- a/jjb/openci/create-ape.sh +++ b/jjb/openci/create-ape.sh @@ -37,11 +37,11 @@ cat < ./json_body.txt } EOF -python openci_publish -H 129.192.69.55 -U ${ACTIVEMQ_USER} -p ${ACTIVEMQ_PASSWORD} -n openci.prototype -B ./json_body.txt - echo "Constructed $PUBLISH_EVENT_TYPE" echo "--------------------------------------------" cat ./json_body.txt echo "--------------------------------------------" +python openci_publish -H 129.192.69.55 -U ${ACTIVEMQ_USER} -p ${ACTIVEMQ_PASSWORD} -n openci.prototype -B ./json_body.txt + deactivate diff --git a/jjb/openci/create-cde.sh b/jjb/openci/create-cde.sh index 8fb9f0041..9780119ce 100755 --- a/jjb/openci/create-cde.sh +++ b/jjb/openci/create-cde.sh @@ -37,11 +37,11 @@ cat < ./json_body.txt } EOF -python openci_publish -H 129.192.69.55 -U ${ACTIVEMQ_USER} -p ${ACTIVEMQ_PASSWORD} -n openci.prototype -B ./json_body.txt - echo "Constructed $PUBLISH_EVENT_TYPE" echo "--------------------------------------------" cat ./json_body.txt echo "--------------------------------------------" +python openci_publish -H 129.192.69.55 -U ${ACTIVEMQ_USER} -p ${ACTIVEMQ_PASSWORD} -n openci.prototype -B ./json_body.txt + deactivate diff --git a/jjb/openci/create-clme.sh b/jjb/openci/create-clme.sh index 200f131e9..2ece019b0 100755 --- a/jjb/openci/create-clme.sh +++ b/jjb/openci/create-clme.sh @@ -38,9 +38,11 @@ cat < ./json_body.txt } EOF -python openci_publish -H 129.192.69.55 -U ${ACTIVEMQ_USER} -p ${ACTIVEMQ_PASSWORD} -n openci.prototype -B ./json_body.txt - echo "Constructed $PUBLISH_EVENT_TYPE" echo "--------------------------------------------" cat ./json_body.txt echo "--------------------------------------------" + +python openci_publish -H 129.192.69.55 -U ${ACTIVEMQ_USER} -p ${ACTIVEMQ_PASSWORD} -n openci.prototype -B ./json_body.txt + +deactivate -- 2.16.6