Пример #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();
            if (successful)
            {
                oOut.OutputInText("true", writePath);
            }
            else
            {
                oOut.OutputInText("false", writePath);
            }

            return (true);

            //throw new Exception("The method or operation is not implemented.");
        }
Пример #3
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);
        }
Пример #4
0
 private void writeout(string text, string path)
 {
     IO oOut = new IO();
     oOut.OutputInText(text, path);
 }
Пример #5
0
 public TeamFoundationServer GetTfs()
 {
     Dictionary<string, string> Config;
      IO oOut = new IO();
      Config = oOut.GetConfig();
      TeamFoundationServer tfs = new TeamFoundationServer(Config["TFS.Server"]);
      return tfs;
 }