Merge "Fill stable branch details"
[releng.git] / jjb / openci / create-cde.sh
index b4b273a..9780119 100755 (executable)
@@ -11,6 +11,8 @@ set -o errexit
 set -o nounset
 set -o pipefail
 
+export PS1=${PS1:-}
+
 # This script creates CompositionDefinedEvent
 
 git clone https://gitlab.openci.io/openci/prototypes.git
@@ -29,16 +31,17 @@ cat <<EOF > ./json_body.txt
     "buildUrl": "$BUILD_URL",
     "branch": "master",
     "origin": "$PUBLISH_EVENT_ORIGIN",
+    "scenario": "$DEPLOY_SCENARIO",
     "compositionName": "$DEPLOY_SCENARIO",
     "compositionMetadataUrl": "$SCENARIO_METADATA_LOCATION"
 }
 EOF
 
-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