File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -5,9 +5,11 @@ namespace GitVersion
5
5
using System . Diagnostics ;
6
6
using System . IO ;
7
7
using System . Linq ;
8
+ using System . Text ;
8
9
9
10
class Program
10
11
{
12
+ static StringBuilder log = new StringBuilder ( ) ;
11
13
const string MsBuild = @"c:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe" ;
12
14
13
15
static void Main ( )
@@ -134,6 +136,11 @@ static void Main()
134
136
{
135
137
exitCode = 0 ;
136
138
}
139
+ else
140
+ {
141
+ // Dump log to console if we fail to complete successfully
142
+ Console . Write ( log . ToString ( ) ) ;
143
+ }
137
144
138
145
Environment . Exit ( exitCode . Value ) ;
139
146
}
@@ -145,7 +152,10 @@ static IEnumerable<IBuildServer> GetApplicableBuildServers(Authentication authen
145
152
146
153
static void ConfigureLogging ( Arguments arguments )
147
154
{
148
- var writeActions = new List < Action < string > > ( ) ;
155
+ var writeActions = new List < Action < string > >
156
+ {
157
+ s => log . AppendLine ( s )
158
+ } ;
149
159
150
160
if ( arguments . Output == OutputType . BuildServer )
151
161
{
You can’t perform that action at this time.
0 commit comments