예제 #1
0
        protected override void ProcessRecord()
        {
            string[] _envList = new string[7] { "ASY", "E2E", "TST1", "TST2", "TRN", "PRE", "PRD" };

            try
            {
                if (!_getEnvListOnly)
                {
                    TFS _tfs = new TFS();
                    ZipHelper _zh = new ZipHelper();

                    DirectoryInfo _wMTFVC = new DirectoryInfo(@"C:\temp\TFVCwmPackages");
                    _tfs.GetFromTFVC("$/wMProjects/WmSourceControl", _wMTFVC.FullName);

                    foreach (string _env in _envList)
                    {
                        foreach (FileInfo _file in _wMTFVC.GetFiles("*.zip", SearchOption.AllDirectories))
                        {
                            _zh.UnZipFiles(_file.FullName, @"C:\Temp\wM\" + _env + @"\Packages\" + Path.GetFileNameWithoutExtension(_file.Name), null, false);
                        }
                    }
                }

                WriteObject(_envList);

            }
            catch (Exception _ex)
            {
                throw (_ex);
            }
        }
예제 #2
0
파일: Get-TFVC.cs 프로젝트: hopenbr/HopDev
        protected override void ProcessRecord()
        {
            try
            {
                TFS _tfs = new TFS();
                WriteObject(_tfs.GetBuildPackageFromTFS(_project, _buildNumber), true);
            }
            catch (Exception)
            {

            }
        }
예제 #3
0
파일: Add-TFVC.cs 프로젝트: hopenbr/HopDev
 protected override void ProcessRecord()
 {
     try
     {
         TFS _tfs = new TFS();
         WriteObject(_tfs.Add2SourceControl(_serverPath, _localPath));
     }
     catch(Exception ex)
     {
         throw ex;
     }
 }