Пример #1
0
        public IBuildEngine GetBuildEngine()
        {
            IBuildEngine engine;
            if (!string.IsNullOrEmpty(CCNetServerUsername))
                //engine = new CCNet(CCNetUrl, CCNetServer, CCNetUser, CCNetSource, new System.Net.NetworkCredential(CCNetServerUsername, CCNetServerPassword));
                engine = new ManualCCNet(CCNetUrl, CCNetServer, CCNetUser, CCNetSource, new System.Net.NetworkCredential(CCNetServerUsername, CCNetServerPassword));
            else
                //engine = new CCNet(CCNetUrl, CCNetUser, CCNetSource);
                engine = new ManualCCNet(CCNetUrl, CCNetServer, CCNetUser, CCNetSource);

            return engine;
        }
Пример #2
0
        public IBuildEngine GetBuildEngine()
        {
            IBuildEngine engine;
            if (!string.IsNullOrEmpty(TeamCityUrl))
            {
                engine = new TeamCity(new Uri(TeamCityUrl), TeamCityUsername, TeamCityPassword);
            }
            else if (!string.IsNullOrEmpty(CCNetServerUsername))
                engine = new ManualCCNet(CCNetUrl, CCNetServer, CCNetUser, CCNetSource, new System.Net.NetworkCredential(CCNetServerUsername, CCNetServerPassword));
            else
                engine = new ManualCCNet(CCNetUrl, CCNetServer, CCNetUser, CCNetSource);

            return engine;
        }