This project is read-only.

TFS Deployer not triggering Powershell Script

May 3, 2010 at 4:13 PM

I am trying to deploy the application automatically after the successful build.

 Below is my documentmappings.xml file. 

<DeploymentMappings xmlns="">

<Mapping xmlns=""


           OriginalQuality="Ready for Initial Test"

           NewQuality="Initial Test Passed"






Below is my webdestination.ps1 (Powershell script) 

$droplocation = $TfsDeployerBuildData.DropLocation

$webdestinationpath = "C:\deployment\"

new-item —force -path $webdestinationpath -itemtype "directory"

get-childitem $webdestinationpath | remove-item -force -recurse $websourcepath = $droplocation + "\Release\PublishedWebsites\AllenWeb\"

get—childitem $websourcepath | copy—item —force —recurse —destination $webdestinationpath.


I am not getting any error, but no files are copied to the deployment directory when i do a deployment.


Note: I didnt give any smtp server or mail related details in my code.


Dec 16, 2010 at 12:07 PM

Did you manage to get it working?