Skip to content

Instantly share code, notes, and snippets.

@FrankDeGroot
Last active December 23, 2015 19:39
Show Gist options
  • Save FrankDeGroot/6683854 to your computer and use it in GitHub Desktop.
Save FrankDeGroot/6683854 to your computer and use it in GitHub Desktop.
Compare Endeavour build server result with local build result with SourceGear DiffMerge. Compares with latest result on build server.
filter Get-LastChildItem { Join-Path $_ (gci $_ -Name | sort | select -Last 1) }
$Outs = 'C:\(ProductName)\Branch\99 - bin\Deliverables\Name\Log\Compile\Compile_result.xml',
"$('\\portal\DailyBuildResult\ProductName\Branch' | Get-LastChildItem | Get-LastChildItem)\CIName\Compile\compile.log" | % {
([xml](gc $_)).results.message |
where {$_.type -eq 'warning'} |
sort -CaseSensitive '#text' |
% {"<message>$($_.'#text')</message>"} |
Out-File ($Out = [IO.Path]::GetTempFileName())
$Out
}
start -Wait 'C:\Tools\DiffMerge\sgdm.exe' $Outs
ri $Outs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment