File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change 77
77
pathToPublish : $(Build.ArtifactStagingDirectory)
78
78
artifactName : ${{ parameters.name }} $(_config_short)
79
79
artifactType : container
80
+ - ${{ if eq(parameters.buildScript, 'build.cmd') }} :
81
+ - powershell : |
82
+ $taskListOutput = & TaskList /FI "IMAGENAME eq dotnet.exe" | Out-String
83
+ if ($taskListOutput.Contains("dotnet.exe"))
84
+ {
85
+ Write-Output "Killing dotnet.exe processes..."
86
+ & taskkill /IM dotnet.exe /F
87
+ }
88
+
89
+ if (Test-Path .\packages\)
90
+ {
91
+ Write-Output "Removing nuget cache dir..."
92
+ Remove-Item -Force -Recurse .\packages\
93
+ }
94
+
95
+ if (Test-Path .\test\data\external\)
96
+ {
97
+ Write-Output "Removing external test data..."
98
+ Remove-Item -Force -Recurse .\test\data\external\
99
+ }
100
+
101
+ mkdir .\tmp\
102
+ Move-Item .\bin\obj\packages .\tmp\
103
+ Write-Output "Removing bin dir..."
104
+ Remove-Item -Force -Recurse .\bin\
105
+ mkdir .\bin\obj\
106
+ Move-Item .\tmp\packages\ .\bin\obj\
107
+ Remove-Item -Force -Recurse .\tmp\
108
+ Write-Output "Done cleaning up binary folder..."
109
+ displayName: Clean up test data
80
110
- script : ${{ parameters.buildScript }} -buildPackages
81
111
displayName : Build Packages
You can’t perform that action at this time.
0 commit comments