Skip to content

Commit

Permalink
Merge pull request #316 from bryceml/7zip
Browse files Browse the repository at this point in the history
use 7zip to create the zip archive
  • Loading branch information
s0undt3ch authored Sep 24, 2020
2 parents 2bb6bff + 9c87d40 commit 91fc0be
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/kitchen/verifier/nox.rb
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,14 @@ def call(state)
if config[:windows]
if config[:zip_windows_artifacts]
begin
conn.execute("powershell Compress-Archive #{remote} #{remote}artifacts.zip -Force")
conn.execute("7z.exe a #{remote}artifacts.zip #{remote}")
rescue => e
error("Failed to create zip")
begin
info("7z.exe failed, attempting zip with powershell Compress-Archive")
conn.execute("powershell Compress-Archive #{remote} #{remote}artifacts.zip -Force")
rescue => e2
error("Failed to create zip")
end
end
end
else
Expand Down

0 comments on commit 91fc0be

Please sign in to comment.