Exemple #1
0
        public bool DeployBuild2TFVC(string _buildNumbers, string _teamProject)
        {
            if (!string.IsNullOrEmpty(_buildNumbers) &&
                !string.IsNullOrEmpty(_teamProject))
            {
                TFVC _tfvc = new TFVC(TFSServerUrl);

                foreach (string _buildNumber in _buildNumbers.Split(','))
                {
                    TFTB _tftb = new TFTB(_tfs, _buildNumber, _teamProject);

                    if (_tftb.IsValid)
                    {
                        if (!_tfvc.Check4DirectoryInTFVC("$/" + _teamProject + "/Releases/" + _buildNumber))
                        {
                            return (_tftb.DeployBuildTo(Enviroments.IRB));

                        }
                        else
                        {
                            //build package already in TFVC just need to change build quality to "In-IRB"
                            return (_tftb.ChangeBuildQuality(Enviroments.IRB));
                        }
                    }
                }
            }

            return false;
        }
 public HarleysvilleCheckInAlert(CheckinEvent _cie, TFSIdentity _tfsUrl)
 {
     _ciEvent = _cie;
     _tfvc = new TFVC(_tfsUrl.Url);
     _teamAddress = ConfigurationManager.AppSettings.Get("ConfigCheckInAlertAddress");
     SeedCheckInHash();
     _Messages = GetAlertTypeMessages();
 }