summaryrefslogtreecommitdiffstats
path: root/jjb/openci/create-clme.sh
diff options
context:
space:
mode:
authorFatih Degirmenci <fdegir@gmail.com>2018-09-21 09:42:13 +0200
committerFatih Degirmenci <fdegir@gmail.com>2018-09-21 09:50:12 +0200
commita519f211bdd5f4f783edd55bbdcf6a846c818f17 (patch)
tree43aac248c3b2dbd7716ac75f600435003a8c9824 /jjb/openci/create-clme.sh
parentbe462e1563734889005ee8bd29854f0534636b41 (diff)
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 <fdegir@gmail.com>
Diffstat (limited to 'jjb/openci/create-clme.sh')
-rwxr-xr-xjjb/openci/create-clme.sh6
1 files changed, 4 insertions, 2 deletions
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 <<EOF > ./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