How to show output text as a warning?
Answered
How can I write output to the build log and have it show up as a warning (in orange)?
In PowerShell, I've tried Write-Warning, but while it does say that it's a warning, it's not displayed in orange.
Please sign in to leave a comment.
Hi. Assuming you are usinh]g the PowerShell runner, currently it only highlights the stderr output (in red). And Write-Warning writes only to the PowerShell warning stream. It does not generate any other output. You can vote for this feature request:
https://youtrack.jetbrains.com/issue/TW-71793
In the meantime, the following workaround is available:
Please find more details here:
https://www.jetbrains.com/help/teamcity/service-messages.html#Reporting+Messages+for+Build+Log