From 757fa415ab9fb6924491435401c27c5947db503f Mon Sep 17 00:00:00 2001 From: Marius Ungureanu Date: Mon, 19 Mar 2018 21:19:01 +0200 Subject: [CI] Add VSTS build branch name to IDE build info (#4232) --- scripts/configure.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/configure.cs b/scripts/configure.cs index 3f04d1538f..ee478950d4 100644 --- a/scripts/configure.cs +++ b/scripts/configure.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Text; @@ -193,6 +193,10 @@ namespace MonoDevelop.Configuration txt += "Git revision: " + head + "\n"; txt += "Build date: " + DateTime.Now.ToString ("yyyy-MM-dd HH:mm:sszz") + "\n"; + var buildBranch = Environment.GetEnvironmentVariable ("BUILD_SOURCEBRANCHNAME"); + if (!string.IsNullOrWhiteSpace (buildBranch)) + txt += "Build branch: " + buildBranch; + File.WriteAllText(Path.Combine(targetDir, "buildinfo"), txt); } -- cgit v1.2.3