diff options
author | Marius Ungureanu <teromario@yahoo.com> | 2018-03-19 22:19:01 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-19 22:19:01 +0300 |
commit | 757fa415ab9fb6924491435401c27c5947db503f (patch) | |
tree | bcaefcb7d142be63594a9fae877c473e49462967 /scripts | |
parent | 8aeecab8c96787f98a91903af75d17b00dfba777 (diff) |
[CI] Add VSTS build branch name to IDE build info (#4232)
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/configure.cs | 6 |
1 files changed, 5 insertions, 1 deletions
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); } |