I'm creating a build/deploy script for our website. Our process currently is a bit convoluted as it requires to start website with a webconfig setup to update our schema. Then we switch off the site, change webconfig not to update schema anymore and we start it again.
Because of repetitiveness of tasks our -taskList couple of tasks more than once.
eg.
Invoke-Psake (Join-Path $env:currentDir "\tasks\iis_app_deploy.ps1") `
-taskList ValidateProperties,StopApplicationPool,<random stuff>,StartApplicationPool,StopApplicationPool,StartApplicationPool,PutBackInLoadBalancer
In this tasks list, each tasks gets excuted once and once only. Is there any way of specifying psake to run tasks without checking whether they have ran before or not?