private static string ResolveCurrentBranch(IBuildServer buildServer, string targetBranch) { if (buildServer == null) return targetBranch; var currentBranch = buildServer.GetCurrentBranch() ?? targetBranch; Logger.WriteInfo("Branch from build environment: " + currentBranch); return currentBranch; }
static string ResolveCurrentBranch(IBuildServer buildServer, string targetBranch, bool isDynamicRepository) { if (buildServer == null) { return targetBranch; } var currentBranch = buildServer.GetCurrentBranch(isDynamicRepository) ?? targetBranch; Logger.WriteInfo("Branch from build environment: " + currentBranch); return currentBranch; }
private string ResolveCurrentBranch(IBuildServer buildServer, string targetBranch, bool isDynamicRepository) { if (buildServer == null) { return(targetBranch); } var currentBranch = buildServer.GetCurrentBranch(isDynamicRepository) ?? targetBranch; log.Info("Branch from build environment: " + currentBranch); return(currentBranch); }
private static string ResolveCurrentBranch(IBuildServer buildServer, string targetBranch) { if (buildServer == null) { return(targetBranch); } var currentBranch = buildServer.GetCurrentBranch() ?? targetBranch; Logger.WriteInfo("Branch from build environment: " + currentBranch); return(currentBranch); }