1 parent 8aeecab commit 757fa41Copy full SHA for 757fa41
1 file changed
scripts/configure.cs
@@ -1,4 +1,4 @@
1
-using System;
+using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Text;
@@ -193,6 +193,10 @@ public void GenerateBuildInfo(string targetDir)
193
txt += "Git revision: " + head + "\n";
194
txt += "Build date: " + DateTime.Now.ToString ("yyyy-MM-dd HH:mm:sszz") + "\n";
195
196
+ var buildBranch = Environment.GetEnvironmentVariable ("BUILD_SOURCEBRANCHNAME");
197
+ if (!string.IsNullOrWhiteSpace (buildBranch))
198
+ txt += "Build branch: " + buildBranch;
199
+
200
File.WriteAllText(Path.Combine(targetDir, "buildinfo"), txt);
201
}
202
0 commit comments