Samples/SourceControlTest.ps1

Pipeline: FeedBack {
    Import-Module Cidney.Commands
    Register-PSSnapin Microsoft.TeamFoundation.Powershell

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

    Stage: Deploy {
        Write-Output 'Copying Files'
        Copy -Path D:\Prj\Feedback\Feedback\Bin -Destination D:\Production\Feedback -Recurse -Force #-PassThru
    }

    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' }
        }
    }

    stage: two: {
        Invoke-Cidney Feedback
    }
}  -invoke