Summary
https://learn.microsoft.com/en-us/azure/devops/pipelines/scripts/logging-commands?view=azure-devops&tabs=bash
Logging an error can be done by printing:
##vso[task.logissue type=error]Error Message.
Or warning:
##vso[task.logissue type=warning]Warning Message."
Background and Motivation
My first motivation is that logging an error with output device is only doing "red color" today, and doesn't fail the run. Output device cannot control exit code today, as it's only about "output".
I think it may make sense to log with AzDO syntax when running there.
Summary
https://learn.microsoft.com/en-us/azure/devops/pipelines/scripts/logging-commands?view=azure-devops&tabs=bash
Logging an error can be done by printing:
Or warning:
Background and Motivation
My first motivation is that logging an error with output device is only doing "red color" today, and doesn't fail the run. Output device cannot control exit code today, as it's only about "output".
I think it may make sense to log with AzDO syntax when running there.