Samples/SourceControlTest.ps1

Pipeline: FeedBack {
    Import-Module Cidney.Commands

    Register-PSSnapin Microsoft.TeamFoundation.Powershell

    Stage: GetSource {
        Do: {
            Build -Path '$/Development/Feedback/Integration' -LocalPath D:\Prj\Feedback -SolutionName 'Feedback.sln'
        }
    }

    Stage: Deploy {
        Copy -Path D:\Prj\Feedback\Feedback\Bin -Destination D:\Production\Feedback -Recurse -Force
    }

    Stage: TestDeployment {
        
        $build = @(dir D:\Prj\Feedback\FeedBack\bin)
        $deploy = @(dir D:\Production\Feedback)

        $result = Compare-Object $build $deploy
        if ($result)
        {
            Write-Warning 'Deployment failed'
        }
        else
        {
            Write-Output 'Deployment Suceeded'
        }
    }
} -Verbose -Invoke -ShowProgress

























<#pipeline: Test {
    Stage: One {
# On: (Get-Content .\Tests\ComputerList.txt) {
            Do: { Get-Service 'Microsoft Deployment Agent' }
 # }
    }
} -invoke -Verbose#>