set -o nounset
set -o pipefail
+export PS1=${PS1:-}
+
# This script creates CompositionDefinedEvent
git clone https://gitlab.openci.io/openci/prototypes.git
"buildUrl": "$BUILD_URL",
"branch": "master",
"origin": "$PUBLISH_EVENT_ORIGIN",
+ "scenario": "$DEPLOY_SCENARIO",
"compositionName": "$DEPLOY_SCENARIO",
"compositionMetadataUrl": "$SCENARIO_METADATA_LOCATION"
}
EOF
-# temporary: until we can embed credentials plugin
-ACTIVEMQ_USER="openci"
-ACTIVEMQ_PASSWORD="openciP@ssw0rd"
-
-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