Skip to content

Commit

Permalink
remove test data clean up step (dotnet#5272)
Browse files Browse the repository at this point in the history
  • Loading branch information
frank-dong-ms-zz authored Jul 1, 2020
1 parent fa54370 commit 187dc6d
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions build/ci/job-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -181,36 +181,6 @@ jobs:
pathToPublish: $(Build.ArtifactStagingDirectory)
artifactName: ${{ parameters.name }} $(_config_short)
artifactType: container
- ${{ if and(eq(parameters.nightlyBuild, 'false'), eq(parameters.buildScript, 'build.cmd')) }}:
- powershell: |
$taskListOutput = & TaskList /FI "IMAGENAME eq dotnet.exe" | Out-String
if ($taskListOutput.Contains("dotnet.exe"))
{
Write-Output "Killing dotnet.exe processes..."
& taskkill /IM dotnet.exe /F
}
if (Test-Path .\packages\)
{
Write-Output "Removing nuget cache dir..."
Remove-Item -Force -Recurse .\packages\
}
if (Test-Path .\test\data\external\)
{
Write-Output "Removing external test data..."
Remove-Item -Force -Recurse .\test\data\external\
}
mkdir .\tmp\
Move-Item .\bin\obj\packages .\tmp\
Write-Output "Removing bin dir..."
Remove-Item -Force -Recurse .\bin\
mkdir .\bin\obj\
Move-Item .\tmp\packages\ .\bin\obj\
Remove-Item -Force -Recurse .\tmp\
Write-Output "Done cleaning up binary folder..."
displayName: Clean up test data
- ${{ if eq(parameters.nightlyBuild, 'false') }}:
- script: ${{ parameters.buildScript }} -buildPackages
displayName: Build Packages

0 comments on commit 187dc6d

Please sign in to comment.