Last active
December 23, 2015 19:39
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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