Skip to content

Commit

Permalink
Replaced removal of baseline file with -Force switch (Azure#21422)
Browse files Browse the repository at this point in the history
  • Loading branch information
vidai-msft authored Apr 4, 2023
1 parent 6741dfb commit 63a6804
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .azure-pipelines/test-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,10 @@ jobs:
pwsh: true
targetType: inline
script: |
git checkout -b testcoverage-baseline
$blDir = "./tools/TestFx/Coverage"
$blCsv = Join-Path -Path $blDir -ChildPath "Baseline.csv"
if (Test-Path -Path $blCsv) {
Remove-Item -Path $blCsv -Force
}
git checkout -b testcoverage-baseline
Copy-Item -Path "$(Pipeline.Workspace)/artifacts/TestCoverageAnalysis/Results/Baseline.csv" -Destination $blDir
Copy-Item -Path "$(Pipeline.Workspace)/artifacts/TestCoverageAnalysis/Results/Baseline.csv" -Destination $blDir -Force
git config user.email "65331932+azure-powershell-bot@users.noreply.github.com"
git config user.name "azure-powershell-bot"
git add $blCsv
Expand Down

0 comments on commit 63a6804

Please sign in to comment.