kasunkv / slack-notification

Slack Notification task with advanced slack message customization for Visual Studio Team Services
MIT License
20 stars 9 forks source link

Support setting color using a variable #24

Closed robertjahn closed 5 years ago

robertjahn commented 5 years ago

For example $(slackColor). This would allow a script task to set message and a color as variables.

robertjahn commented 5 years ago

I tested this out and it is supported already. One can do this in a script task before the slack task $slackColor="danger" Write-Host ("##vso[task.setvariable variable=slackColor]$slackColor")