Samples/DeployFeedbackTest.ps1

$tfsServer = 'http://tfs.nowcom.com:8080/tfs/nowcom'
$cred = Get-Credential hic\rkozak

Pipeline: FeedBack {
    
Stage: Build {
        GetSource -Name $TfsServer -Credential $Cred -WorkspaceName 'Workspace' `
            -Path '$/Development/Feedback/Integration' -LocalPath D:\Prj 
        RestorePackages -Path D:\prj\Feedback.sln -source 'https://www.nuget.org/api/v2' 
        Invoke-MSBuild D:\Prj\Feedback.sln
    }

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

    Stage: TestDeployment {
       # Test-FeedBackDeployment
        $build = @(dir D:\Prj\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-Cidney Feedback -Verbose