Пример #1
0
        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;
        }
Пример #2
0
        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;
        }
Пример #3
0
        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);
        }
Пример #4
0
        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);
        }