openci: Log eventBody to console before publishing 91/62691/2
authorFatih Degirmenci <fdegir@gmail.com>
Fri, 21 Sep 2018 07:42:13 +0000 (09:42 +0200)
committerFatih Degirmenci <fdegir@gmail.com>
Fri, 21 Sep 2018 07:50:12 +0000 (09:50 +0200)
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>
jjb/openci/create-ape.sh
jjb/openci/create-cde.sh
jjb/openci/create-clme.sh

index 798fd94..7c9b46c 100755 (executable)
@@ -37,11 +37,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
index 8fb9f00..9780119 100755 (executable)
@@ -37,11 +37,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
index 200f131..2ece019 100755 (executable)
@@ -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