Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure devops group logs with collapsible buttons

Tags:

azure-devops

Microsoft documentation here says we can group logs with collapsible buttons. I tried out the following inline PowerShell script but didn't work. Am I doing anything wrong here?

Write-Host "##[group]Beginning of a group"
Write-Host "##[warning]Warning message"
Write-Host "##[error]Error message"
Write-Host "##[debug]Debug text"
Write-Host "##[command]Command-line being run"
Write-Host "##[endgroup]"

enter image description here enter image description here

Formatting commands

like image 264
Praveen Gaddam Avatar asked Sep 11 '25 03:09

Praveen Gaddam


1 Answers

Update:

These grouping commands are just integrated in pipeline ui (pipelines tab) Release management uses different logger ui and these are not integrated there.

I tested your sample script , on my side everything work well . What does 'didn't work' specifically refer to? Is there any message in the log?

enter image description here

enter image description here

enter image description here

like image 82
Hugh Lin Avatar answered Sep 13 '25 19:09

Hugh Lin