diff options
author | Thomas Powell <powell@progress.com> | 2022-11-01 08:25:28 -0400 |
---|---|---|
committer | Thomas Powell <powell@progress.com> | 2022-11-01 08:25:28 -0400 |
commit | 04f319dd99189373510d61f1fad6855644a7fe5e (patch) | |
tree | 65d9c817f78d3f079e88653c77697827b3b033de | |
parent | a38df4b00d424cd1a742cad0eb46fcfc3ebbcb5b (diff) | |
download | chef-tp/jfm-habitat_failing.tar.gz |
See if we can Invoke-Verify in plan.ps1tp/jfm-habitat_failing
-rw-r--r-- | habitat/plan.ps1 | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/habitat/plan.ps1 b/habitat/plan.ps1 index dfb0c9cdcc..1c27a2a86c 100644 --- a/habitat/plan.ps1 +++ b/habitat/plan.ps1 @@ -138,6 +138,19 @@ function Invoke-Verify { return 0 } +function Invoke-Clean { + Write-BuildLine "PLAN.PS1 Clean the cache" + $src = "$HAB_CACHE_SRC_PATH\$pkg_dirname" + try { + if (Test-Path "$src") { + Remove-Item "$src" -Recurse -Force + } + Write-BuildLine "Recursive Remove-Item succeeded" + } catch { + Write-BuildLine "Recursive Remove-Item failed" + } +} + function Invoke-Prepare { Write-BuildLine " ** Invoke Prepare Top" $env:GEM_HOME = "$pkg_prefix/vendor" |