diff options
author | John McCrae <john.mccrae@progress.com> | 2022-10-30 11:35:30 +0600 |
---|---|---|
committer | John McCrae <john.mccrae@progress.com> | 2022-10-30 11:35:30 +0600 |
commit | 786f92b725d5fa34e86ffcc2afad5b31f3d2a3eb (patch) | |
tree | 0ee40f1ac83dc2aac9b1b513e18baefa2db733b7 | |
parent | dc6b0c96b93456e7edd2e7944d179f0592652c01 (diff) | |
download | chef-786f92b725d5fa34e86ffcc2afad5b31f3d2a3eb.tar.gz |
Trying to get more detail on what is failing here
Signed-off-by: John McCrae <john.mccrae@progress.com>
-rw-r--r-- | habitat/plan.ps1 | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/habitat/plan.ps1 b/habitat/plan.ps1 index 53f7874310..1645a3e872 100644 --- a/habitat/plan.ps1 +++ b/habitat/plan.ps1 @@ -59,15 +59,16 @@ function Invoke-Download() { # # Get-Command "Git" # Write-Output "Hab source path is : ${HAB_CACHE_SRC_PATH}`n" # Write-Output "Package Filename is : ${pkg_filename}" - # # [System.Diagnostics.Process]::Start("c:\\Program Files\\Git\\cmd\\git.exe archive --format=zip --output=${HAB_CACHE_SRC_PATH}\\${pkg_filename} HEAD") + [System.Diagnostics.Process]::Start("c:\\Program Files\\Git\\cmd\\git.exe archive --format=zip --output=${HAB_CACHE_SRC_PATH}\\${pkg_filename} HEAD") # Write-Output "Now archiving the repo" - # [System.Diagnostics.Process]::Start("$full_git_path archive --format=zip --output=${HAB_CACHE_SRC_PATH}\\${pkg_filename} HEAD --verbose") -ErrorAction Start- - Invoke-Expression -Command "$($full_git_path) archive --format=zip --output=${HAB_CACHE_SRC_PATH}\\${pkg_filename} HEAD --verbose" + # [System.Diagnostics.Process]::Start("$full_git_path archive --format=zip --output=${HAB_CACHE_SRC_PATH}\\${pkg_filename} HEAD --verbose") + # Invoke-Expression -Command "$($full_git_path) archive --format=zip --output=${HAB_CACHE_SRC_PATH}\\${pkg_filename} HEAD --verbose" # Write-Output "Zipping the Repo is finished" # Start-Sleep -Seconds 30 # Write-Output " *** Finished Creating the Archive *** `n" # # getting an error about the archive being in use, adding the sleep to let other handles on the file finish. # if (-not $?) { throw "unable to create archive of source" } + Write-Output "Made it to the bottom of the Try statement" catch{ Write-BuildLine "Plan.ps1 threw an error in Invoke-Download - An error occurred:" Write-BuildLine $_ |