Commit 58218161 authored by Ben Cooksley's avatar Ben Cooksley

Cleanup afterwards, and make sure it exists before we try to delete as...

Cleanup afterwards, and make sure it exists before we try to delete as Windows/cmd/bat scripting is very particular about this
parent 6aaf873b
......@@ -12,7 +12,7 @@ timestamps {
// This includes any potential install directory
bat """
rmdir /s /q "C:\\CI\\Software Installs\\Dependencies"
if exist "C:\\CI\\Software Installs\\Dependencies" rmdir /s /q "C:\\CI\\Software Installs\\Dependencies"
"""
// Our CI scripts
......@@ -64,6 +64,11 @@ timestamps {
// As the Windows Slaves are permanent ones, we erase the Workspace as the last thing we do
deleteDir()
// This includes any potential install directory
bat """
if exist "C:\\CI\\Software Installs\\Dependencies" rmdir /s /q "C:\\CI\\Software Installs\\Dependencies"
"""
// Let's determine if we need to send out notifications
// What happened in our previous build?
def previousResult = currentBuild.previousBuild?.result
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment