Skip to content

Conversation

ImprobableVlad
Copy link
Contributor

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 channel

Documentation
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

@improbable-prow-robot
Copy link

Corresponding JIRA ticket: https://improbableio.atlassian.net/browse/UNR-1905

@improbable-prow-robot improbable-prow-robot added jira/UNR size/M Denotes a PR that changes 40-149 lines, ignoring generated files. labels Nov 5, 2019
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*"} `
Copy link
Contributor

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).

Copy link
Contributor Author

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.

Copy link
Contributor

@improbable-valy improbable-valy left a 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!

ImprobableVlad and others added 6 commits November 5, 2019 14:13
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>
@ImprobableVlad ImprobableVlad merged commit cb6aa0c into master Nov 5, 2019
@ImprobableVlad ImprobableVlad deleted the task/UNR-1905-improve-slack-hooks branch November 5, 2019 14:47
@ImprobableVlad ImprobableVlad restored the task/UNR-1905-improve-slack-hooks branch November 6, 2019 10:20
@ImprobableVlad ImprobableVlad deleted the task/UNR-1905-improve-slack-hooks branch November 6, 2019 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

jira/UNR size/M Denotes a PR that changes 40-149 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants