diff options
author | Fatih Degirmenci <fdegir@gmail.com> | 2018-09-21 09:42:13 +0200 |
---|---|---|
committer | Fatih Degirmenci <fdegir@gmail.com> | 2018-09-21 09:50:12 +0200 |
commit | a519f211bdd5f4f783edd55bbdcf6a846c818f17 (patch) | |
tree | 43aac248c3b2dbd7716ac75f600435003a8c9824 /jjb/openci | |
parent | be462e1563734889005ee8bd29854f0534636b41 (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')
-rwxr-xr-x | jjb/openci/create-ape.sh | 4 | ||||
-rwxr-xr-x | jjb/openci/create-cde.sh | 4 | ||||
-rwxr-xr-x | 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 <<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 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 <<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 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 |