Skip to content

Commit 63a6804

Browse files
authored
Replaced removal of baseline file with -Force switch (#21422)
1 parent 6741dfb commit 63a6804

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.azure-pipelines/test-coverage.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,10 @@ jobs:
111111
pwsh: true
112112
targetType: inline
113113
script: |
114+
git checkout -b testcoverage-baseline
114115
$blDir = "./tools/TestFx/Coverage"
115116
$blCsv = Join-Path -Path $blDir -ChildPath "Baseline.csv"
116-
if (Test-Path -Path $blCsv) {
117-
Remove-Item -Path $blCsv -Force
118-
}
119-
120-
git checkout -b testcoverage-baseline
121-
Copy-Item -Path "$(Pipeline.Workspace)/artifacts/TestCoverageAnalysis/Results/Baseline.csv" -Destination $blDir
117+
Copy-Item -Path "$(Pipeline.Workspace)/artifacts/TestCoverageAnalysis/Results/Baseline.csv" -Destination $blDir -Force
122118
git config user.email "[email protected]"
123119
git config user.name "azure-powershell-bot"
124120
git add $blCsv

0 commit comments

Comments
 (0)