File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments