Skip to content

Commit 981e765

Browse files
authored
Show DONE trace outside of the collapse build step block (#10138)
1 parent ef1455c commit 981e765

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

build/common.ps1

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ Function Invoke-BuildStep {
161161
if ($env:TF_BUILD) {
162162
Write-Output "##[group]$BuildStep"
163163
}
164-
165164
Trace-Log "[BEGIN] $BuildStep"
166165
$sw = [Diagnostics.Stopwatch]::StartNew()
167166
$completed = $false
@@ -173,6 +172,9 @@ Function Invoke-BuildStep {
173172
finally {
174173
$sw.Stop()
175174
Reset-Colors
175+
if ($env:TF_BUILD) {
176+
Write-Output "##[endgroup]"
177+
}
176178
if ($completed) {
177179
Trace-Log "[DONE +$(Format-ElapsedTime $sw.Elapsed)] $BuildStep"
178180
}
@@ -184,14 +186,10 @@ Function Invoke-BuildStep {
184186
Error-Log "[FAILED +$(Format-ElapsedTime $sw.Elapsed)] $BuildStep"
185187
}
186188
}
187-
188-
if ($env:TF_BUILD) {
189-
Write-Output "##[endgroup]"
190-
}
191189
}
192190
}
193191
else {
194-
Warning-Log "[SKIP] $BuildStep"
192+
Trace-Log "[SKIP] $BuildStep"
195193
}
196194
}
197195

0 commit comments

Comments
 (0)