From afb8f51d197a5597e3eb1485da53e6458d02eb6c Mon Sep 17 00:00:00 2001 From: Victor Hurdugaci Date: Tue, 3 Feb 2015 10:27:17 -0800 Subject: [PATCH] Environment variable to specify the build branch --- makefile.shade | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/makefile.shade b/makefile.shade index 3f28116974..babb18b2db 100644 --- a/makefile.shade +++ b/makefile.shade @@ -13,6 +13,7 @@ use import="BuildEnv" functions @{ + static string BUILD_BRANCH = Environment.GetEnvironmentVariable("BUILD_BRANCH") ?? "dev"; static string BASE_DIR = Directory.GetCurrentDirectory(); static string TARGET_DIR = Path.Combine(BASE_DIR, "artifacts", "build"); string[] repos = new[] { @@ -424,7 +425,7 @@ functions if(Directory.Exists(repo)) { - GitPull(repoUrl, "dev", repo); + GitPull(repoUrl, BUILD_BRANCH, repo); } else { @@ -438,7 +439,7 @@ functions try { - GitClone(repoUrl, "dev"); + GitClone(repoUrl, BUILD_BRANCH); } catch (Exception ex) {