Skip to content

Commit 757fa41

Browse files
authored
[CI] Add VSTS build branch name to IDE build info (mono#4232)
1 parent 8aeecab commit 757fa41

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

scripts/configure.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using System.Linq;
44
using System.Text;
@@ -193,6 +193,10 @@ public void GenerateBuildInfo(string targetDir)
193193
txt += "Git revision: " + head + "\n";
194194
txt += "Build date: " + DateTime.Now.ToString ("yyyy-MM-dd HH:mm:sszz") + "\n";
195195

196+
var buildBranch = Environment.GetEnvironmentVariable ("BUILD_SOURCEBRANCHNAME");
197+
if (!string.IsNullOrWhiteSpace (buildBranch))
198+
txt += "Build branch: " + buildBranch;
199+
196200
File.WriteAllText(Path.Combine(targetDir, "buildinfo"), txt);
197201
}
198202

0 commit comments

Comments
 (0)