-
Notifications
You must be signed in to change notification settings - Fork 30
Task/unr 1905 improve slack hooks #69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Corresponding JIRA ticket: https://improbableio.atlassian.net/browse/UNR-1905 |
ci/deploy.ps1
Outdated
$json_message = [ordered]@{ | ||
text = "Example Project build created by $env:BUILDKITE_BUILD_CREATOR succeeded and a deployment has been launched." | ||
text = $(if ($env:BUILDKITE_NIGHTLY_BUILD -eq "true") {":night_with_stars: Nightly build of *Example Project*"} ` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer if this text is prepared outside this block and without the ternary op (looks a bit clunky).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's cleaner indeed. I've updated it now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few nits, looks great otherwise!
Co-Authored-By: improbable-valentyn <32096431+improbable-valentyn@users.noreply.github.com>
Co-Authored-By: improbable-valentyn <32096431+improbable-valentyn@users.noreply.github.com>
Co-Authored-By: improbable-valentyn <32096431+improbable-valentyn@users.noreply.github.com>
Co-Authored-By: improbable-valentyn <32096431+improbable-valentyn@users.noreply.github.com>
Co-Authored-By: improbable-valentyn <32096431+improbable-valentyn@users.noreply.github.com>
This change makes sure that a Slack notification is sent regardless of whether a deployment is started or not. The style and info of the Slack message itself has also been updated.
Testing
The Buildkite builds corresponding to this branch are green (https://buildkite.com/improbable/unrealgdkexampleproject-nightly/builds?branch=task%2FUNR-1905-improve-slack-hooks). The new messages can be seen in the
#unreal-gdk-builds
channelDocumentation
This change is not public-facing and has not been documented outside of its associated code.
QA
Create a new build of this branch on Buildkite and add the following to the "Environment Variables" form:
BUILDKITE_SLACK_NOTIFY=true
Reviewers
@improbable-valentyn @mattyoung-improbable