Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 28th, 2012  |  syntax: None  |  size: 1.37 KB  |  hits: 35  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. teamcity - running Powershell script to unzip files doesn't work
  2. write-host "creating shell object"
  3. $shell_app=new-object -com shell.application
  4. write-host "creating zip file"
  5. $zip_file = $shell_app.namespace("C:tempPokerLeagueWebSite.zip")
  6. write-host "setting folder to unzip to"
  7. $destination = $shell_app.namespace("C:tempzy98")
  8. write-host "about to copy files from zip"
  9. $destination.Copyhere($zip_file.items(), 0x4)
  10. write-host "finished"
  11.        
  12. [23:01:03]: Step 5/5: test ps1 file (Powershell)
  13. [23:01:03]: [Step 5/5] Starting: C:Windowssystem32cmd.exe /c
  14. C:WindowsSysWOW64WindowsPowerShellv1.0powershell.exe -NonInteractive -File
  15. C:TeamCitybuildAgentwork71e78d4c543e0594Toolstest.ps1 && exit /b %ERRORLEVEL%
  16. [23:01:03]: [Step 5/5] in directory: C:TeamCitybuildAgentwork71e78d4c543e0594
  17. [23:01:03]: [Step 5/5] creating shell object
  18. [23:01:03]: [Step 5/5] creating zip file
  19. [23:01:03]: [Step 5/5] setting folder to unzip to
  20. [23:01:03]: [Step 5/5] about to copy files from zip
  21. [23:01:03]: [Step 5/5] finished
  22. [23:01:03]: [Step 5/5] Process exited with code 0
  23. [23:01:03]: Publishing internal artifacts
  24. [23:01:03]: [Publishing internal artifacts] Sending build.finish.properties.gz file
  25. [23:01:03]: Build finished
  26.        
  27. C:Windowssystem32cmd.exe /c C:WindowsSysWOW64WindowsPowerShellv1.0powershell.exe -NonInteractive -File C:TeamCitybuildAgentwork71e78d4c543e0594Toolstest.ps1 && exit /b %ERRORLEVEL%