
Untitled
By: a guest on
Apr 28th, 2012 | syntax:
None | size: 1.37 KB | hits: 35 | expires: Never
teamcity - running Powershell script to unzip files doesn't work
write-host "creating shell object"
$shell_app=new-object -com shell.application
write-host "creating zip file"
$zip_file = $shell_app.namespace("C:tempPokerLeagueWebSite.zip")
write-host "setting folder to unzip to"
$destination = $shell_app.namespace("C:tempzy98")
write-host "about to copy files from zip"
$destination.Copyhere($zip_file.items(), 0x4)
write-host "finished"
[23:01:03]: Step 5/5: test ps1 file (Powershell)
[23:01:03]: [Step 5/5] Starting: C:Windowssystem32cmd.exe /c
C:WindowsSysWOW64WindowsPowerShellv1.0powershell.exe -NonInteractive -File
C:TeamCitybuildAgentwork71e78d4c543e0594Toolstest.ps1 && exit /b %ERRORLEVEL%
[23:01:03]: [Step 5/5] in directory: C:TeamCitybuildAgentwork71e78d4c543e0594
[23:01:03]: [Step 5/5] creating shell object
[23:01:03]: [Step 5/5] creating zip file
[23:01:03]: [Step 5/5] setting folder to unzip to
[23:01:03]: [Step 5/5] about to copy files from zip
[23:01:03]: [Step 5/5] finished
[23:01:03]: [Step 5/5] Process exited with code 0
[23:01:03]: Publishing internal artifacts
[23:01:03]: [Publishing internal artifacts] Sending build.finish.properties.gz file
[23:01:03]: Build finished
C:Windowssystem32cmd.exe /c C:WindowsSysWOW64WindowsPowerShellv1.0powershell.exe -NonInteractive -File C:TeamCitybuildAgentwork71e78d4c543e0594Toolstest.ps1 && exit /b %ERRORLEVEL%