Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to display and raise warnings in release pipeline for Azure devops

Tags:

azure-devops

In my azure devops release pipeline, i'm running a python script, which eventually logs warning or error based on the my custom logger package. So, in my std output of the azuredevops I see it's working fine.

But, I'm wondering is it possible to display the number of warnings or error on the badge like this below image. I think, you have to use command line loggings. But question comes how can I track the warnings or errors from AzDevops standard output using python.

Any idea and suggestions are welcome.

enter image description here

like image 280
change198 Avatar asked Nov 15 '25 23:11

change198


1 Answers

I tried using this in my python package and it works the way I wanted to.

subprocess.call(["echo", "##vso[task.logissue type=warning;]some warning"])

May be someone can get help out of this.

like image 71
change198 Avatar answered Nov 17 '25 21:11

change198