Skip to content

Should output device log issues with Azure syntax when running on Azure? #5979

Description

@Youssef1313

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.

Metadata

Metadata

Assignees

Labels

area/mtpMicrosoft.Testing.Platform core library.state/needs-approvalAwaiting maintainer approval of the proposal/design before work proceeds.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions