예제 #1
0
        public override bool Execute()
        {
            IO oOut = new IO();
            Config = oOut.GetConfig();

            QueryKicker();
            //GetKicker();

            if (nameOfKicker == null || nameOfKicker.Contains("tfsbuild"))
            {
                //No check-in today, maunal build called
                nameOfKicker = "VSTFhelp";
            }

            if (writePath.Length > 1)
            {
                oOut.OutputInText(nameOfKicker, writePath);
                return (true);
            }
            else
            {
                Log.LogMessage(MessageImportance.High, "Invalid WritePath: {0}", writePath);
                //writepath invalid
                return (false);
            }
        }
예제 #2
0
        public override bool Execute()
        {
            IO oOut = new IO();
            config = oOut.GetConfig();
            if (config.ContainsKey(team_Project + ".Team.Email"))
            {
                if (config[team_Project + ".Team.Email"].Contains(";"))
                {
                    //check to see if the Team email is a check or not
                    //if list it needs to be parsed

                    StringBuilder team = new StringBuilder();

                    int index = 0;

                    foreach (string member in config[team_Project + ".Team.Email"].Split(';'))
                    {
                        if (index != 0)
                        {
                            team.AppendFormat(";{0}{1}", member, config["Provider"]);
                        }
                        else
                        {
                            team.AppendFormat("{0}{1}", member, config["Provider"]);
                        }
                        index++;
                    }

                    teamEmail = team.ToString();
                }
                else
                {
                    teamEmail = config[team_Project + ".Team.Email"];
                }
            }
            else
            {
                teamEmail = config["Default.Email"];
            }

            return(true);
        }
예제 #3
0
파일: TFVC.cs 프로젝트: hopenbr/HopDev
 public TeamFoundationServer GetTfs()
 {
     Dictionary<string, string> Config;
      IO oOut = new IO();
      Config = oOut.GetConfig();
      TeamFoundationServer tfs = new TeamFoundationServer(Config["TFS.Server"]);
      return tfs;
 }