Closed devilleweppenaar closed 7 years ago
Let's continue in our support system! :)
Thanks @gergelyke. :)
For anyone else running into a similar issue. The problem was that our TRACE_SERVICE_NAME
variable contained spaces.
To fix that we updated the script to encode the URL, as follows:
#!/bin/sh
URL_RAW="https://api.trace.risingstack.com/service/${TRACE_SERVICE_NAME}/deployment"
URL_ENCODED="$(echo $URL_RAW | sed 's/ /%20/g')"
echo Deployment hook URL:\\n"$URL_ENCODED"
curl "$URL_ENCODED" \
-X POST \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${TRACE_API_KEY}" \
-d "{
\"revision\": \"$IMAGE_TAG\",
\"description\": \"CI deployment via wercker\",
\"user\": \"$WERCKER_STARTED_BY\"
}"
We've noticed that the Trace Deployment Hook we have set up in our CI (wercker) no longer works.
It used to display deployments on metrics charts on the dashboard, but that is no longer the case.
Here is an example screenshot where we did a deploy 11:40 and 11:45am:
Here is the configuration that our CI executes:
We set
IMAGE_TAG
to the git commit hash for development, and the package.json version for master, and theWERCKER_STARTED_BY
is set to our wercker username.The POST request to Trace succeeds, but doesn't result in the deployment showing up on the dashboard.