Open rushfrisby opened 6 years ago
you should create a powershell task that runs before your slack notification task. on that powershell task you can have your check and then create a vsts variable as a result of your check. then just use the variable on the border color field
Thanks I'll give this a try
@rushfrisby did you wrote something like that?
How do you write a conditional statement for setting the border color?
I want to set the border based on the status. This would be the C# equivalent...
$(Agent.JobStatus) == "Succeeded" ? "good" : ($(Agent.JobStatus) == "Failed" ? "danger" : "warning")
I'm not sure how to write this as the value to put into the Border Color property though.