diff --git a/hack/jenkins/windows_integration_setup.ps1 b/hack/jenkins/windows_integration_setup.ps1 index e1bcb027e5..510cccbfc3 100644 --- a/hack/jenkins/windows_integration_setup.ps1 +++ b/hack/jenkins/windows_integration_setup.ps1 @@ -12,9 +12,10 @@ # See the License for the specific language governing permissions and # limitations under the License. -$test_root="$env:HOMEDRIVE$env:HOMEPATH\minikube-integration" -$test_home="$test_root\$env:COMMIT" +$test_home="$env:HOMEDRIVE$env:HOMEPATH\minikube-integration" $env:KUBECONFIG="$test_home\kubeconfig" $env:MINIKUBE_HOME="$test_home\.minikube" +# delete in case previous test was unexpectedly ended and teardown wasn't run +rm -r -Force $test_home mkdir -p $test_home diff --git a/hack/jenkins/windows_integration_teardown.ps1 b/hack/jenkins/windows_integration_teardown.ps1 index 49f8e1272b..2dc1248f7e 100644 --- a/hack/jenkins/windows_integration_teardown.ps1 +++ b/hack/jenkins/windows_integration_teardown.ps1 @@ -12,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -$test_root="$env:HOMEDRIVE$env:HOMEPATH\minikube-integration" -$test_home="$test_root\$env:COMMIT" +$test_home="$env:HOMEDRIVE$env:HOMEPATH\minikube-integration" -rm -r $test_home +rm -r -Force $test_home