Skip to content

Commit 815196a

Browse files
committed
retries on the cleandir
1 parent 1b500c7 commit 815196a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

build.fsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,17 @@ let createNugetPackages _ =
162162
DeleteDir dir
163163
not (directoryExists dir)
164164
runWithRetries del 3 |> ignore
165-
165+
166+
let cleanupDir dir =
167+
let cdr _ =
168+
CleanDir dir
169+
runWithRetries cdr 3 |> ignore
170+
166171
ensureDirectory nugetDir
167172
for nuspec in !! "src/**/*.nuspec" do
168173
printfn "Creating nuget packages for %s" nuspec
169174

170-
CleanDir workingDir
175+
cleanupDir workingDir
171176

172177
let project = Path.GetFileNameWithoutExtension nuspec
173178
let projectDir = Path.GetDirectoryName nuspec

0 commit comments

Comments
 (0)