Skip to content

Slack for IBM UrbanCode Release - Steps

Steps

Resources

—-

To use the Slack plug-in you must define the integration and configure the notification messages to be sent to the channel.

Step palette

To access this plug-in in the palette, click Tools > Notification.

Process steps in the Slack Plugin plug-in

SlackPluginConfiguration

EventNotification

Slack Event Notification

This step has no input properties.

Notification

Use this step to send Slack notifications.

|

NameTypeDescriptionRequiredProperty Name
MessageStringThe message
to post on the Slack channel.Nomessage
Slack Hook URLStringThe Slack webhook URL. For example:
https://hooks.slack.com/services/xxxx.NohookUrl

SlackPluginConfiguration

Use this step to configure Slack notifications.

NameTypeDescriptionRequiredProperty Name
Deployment Cancellation MessageStringThe message to post when the deployment is canceled.NoAtDeploymentAbort
Deployment Creation MessageStringThe message to post when the deployment is created.NoAtDeploymentCreated
Deployment End MessageStringThe message to post when the deployment ends.NoAtDeploymentEnd
Deployment Failure MessageStringThe message to post when the deployment fails.NoAtDeploymentFailure
Deployment Start MessageStringThe message to post when the deployment starts.NoAtDeploymentStart
HTTP Proxy HostStringThe hostname of the HTTP proxy used to connect to Slack. For example: proxy.domain.com.NoproxyHost
HTTP Proxy PasswordPasswordThe password to authenticate with the HTTP proxy.NoproxyPass
HTTP Proxy PortStringThe port number of the HTTP proxy to use to connect to Slack.NoproxyPort
HTTP Proxy UsernameStringThe user name to authenticate with the HTTP proxy.NoproxyUser
Host Authentication TokenPasswordThe authentication token to use to create a channel, invite people, and obtain the user’s data.NohostToken
MessageStringThe message to post on the channel.Nomessage
PhasesStringThe phases for which notifications are sent.NoreleasePhases
Release and phase names to apply notificationsThe list of phases and releases that send notifications to the Slack channel. Seperate each list item with a comma. Leave this field blank to always send notifications.NoincludeInstructions
ReleasesStringThe releases for which notification are sent.NoreleaseNames
Scheduled Deployment NotificationsThe scheduled deployment events for which notifications are sent.NodeploymentInstructions
Slack Notification Plug-in ConfigurationThis plug-in triggers notifications to be sent to a slack channel.Nointro
Slack Webhook URLStringThe URL of the Slack webhook. For example: https://hooks.slack.com/services/xxxx.NohookUrl
Task Failure MessageStringThe message to post when a task fails.NoAtTaskFailure
Task NotificationsThe notification content to send to a slack channel when a specific task events occur.NotaskNotifications
Teams to notifyStringThe teams to notify when a deployment is started.NoteamNames

Example

The following example can be used as a template for the message to be sent to the slack channel at deployment start.


"Deployment has started!
*``${sd.displayName}``*
Link: ``${sd.link}``
Release: ``${sd.release.name}``

Phase: ``${sd.phase.phaseModel.name}``
Status: ``${sd.statusText}``
State: ``${sd.statusState}``
Note:
``${sd.notes}``
Versions:
``${sd.appAndVersions}``