Skip to content
This repository has been archived by the owner on Jun 25, 2019. It is now read-only.

Commit

Permalink
Merge pull request #15 from caroline-church/master
Browse files Browse the repository at this point in the history
Send back urls to helios
  • Loading branch information
cazfletch authored May 31, 2018
2 parents 6e16918 + f2482c3 commit 0d3c496
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .bluemix/pipeline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,32 @@ detect_exit() {

update_status() {
echo "Updating Deployment Status - ${NETWORKID}"

echo '{"app": "'"$CF_APP"'", "url": "'"$APP_URL"'", "completed_step": "'"$COMPLETED_STEP"'"}' \
echo curl -X PUT -s -S\
"$API_HOST/api/v1/networks/$NETWORKID/sample/vehicle_manufacture" \
-H 'Cache-Control: no-cache' \
-H 'Content-Type: application/json' \
-u $USERID:$PASSWORD \
-d '{"app": "'"$CF_APP"'", "url": "'"$APP_URL"'", "completed_step": "'"$COMPLETED_STEP"'"}'
curl -X PUT -s -S\

if [ "$COMPLETED_STEP" == "6" ]; then
curl -X PUT -s -S\
"$API_HOST/api/v1/networks/$NETWORKID/sample/vehicle_manufacture" \
-H 'Cache-Control: no-cache' \
-H 'Content-Type: application/json' \
-u $USERID:$PASSWORD \
-d '{"app": "'"$CF_APP"'", "url": "'"$APP_URL"'", "completed_step": "'"$COMPLETED_STEP"'", "meta": { "urls": {"playground": "https://'${REST_SERVER_URL}'", "rest": "https://'${PLAYGROUND_URL}'" }}' \
| jq '.' || true
else
curl -X PUT -s -S\
"$API_HOST/api/v1/networks/$NETWORKID/sample/vehicle_manufacture" \
-H 'Cache-Control: no-cache' \
-H 'Content-Type: application/json' \
-u $USERID:$PASSWORD \
-d '{"app": "'"$CF_APP"'", "url": "'"$APP_URL"'", "completed_step": "'"$COMPLETED_STEP"'"}' \
| jq '.' || true
fi
}

get_connection_profile() {
Expand Down

0 comments on commit 0d3c496

Please sign in to comment.