当前位置: 首页>>代码示例>>C#>>正文


C# IIntegrationResult类代码示例

本文整理汇总了C#中IIntegrationResult的典型用法代码示例。如果您正苦于以下问题:C# IIntegrationResult类的具体用法?C# IIntegrationResult怎么用?C# IIntegrationResult使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IIntegrationResult类属于命名空间,在下文中一共展示了IIntegrationResult类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: GetSource

        public override void GetSource(IIntegrationResult result)
        {
            if (!_shim.AutoGetSource) return;
            Debug.Assert(_folderVersion > 0, "_folderVersion <= 0 when attempting to get source.  This shouldn't happen.");

            if (_shim.CleanCopy)
            {
                string cleanCopyWorkingFolder = null;
                if (StringUtil.IsBlank(_shim.WorkingDirectory))
                {
                    cleanCopyWorkingFolder = GetVaultWorkingFolder(result);
                    if (StringUtil.IsBlank(cleanCopyWorkingFolder))
                        throw new VaultException(
                            string.Format("Vault user {0} has no working folder set for {1} in repository {2} and no working directory has been specified.",
                                          _shim.Username, _shim.Folder, _shim.Repository));
                }
                else
                    cleanCopyWorkingFolder = result.BaseFromWorkingDirectory(_shim.WorkingDirectory);

                Log.Debug("Cleaning out source folder: " + cleanCopyWorkingFolder);
                new IoService().EmptyDirectoryIncludingReadOnlyObjects(cleanCopyWorkingFolder);
            }

            Log.Info("Getting source from Vault");
            Execute(GetSourceProcessInfo(result));
        }
开发者ID:vardars,项目名称:ci-factory,代码行数:26,代码来源:Vault317.cs

示例2: GetSource

 public override void GetSource(IIntegrationResult result)
 {
     if (AutoGetSource && !UseHistory)
     {
         UpdateSource(result, null);
     }
 }
开发者ID:vardars,项目名称:ci-factory,代码行数:7,代码来源:Cvs.cs

示例3: GetSource

 public void GetSource(IIntegrationResult result)
 {
     if (FailGetSource)
     {
         throw new System.Exception("Failing getting the source");
     }
 }
开发者ID:derrills1,项目名称:ccnet_gitmode,代码行数:7,代码来源:NullSourceControl.cs

示例4: Setup

        public void Setup()
        {
            this.mocks = new MockRepository();

            mockery = new Mockery();
            targetMock = mockery.NewDynamicMock(typeof(IIntegrationRunnerTarget));
            resultManagerMock = mockery.NewDynamicMock(typeof(IIntegrationResultManager));
            quietPeriodMock = mockery.NewDynamicMock(typeof(IQuietPeriod));

            runner = new IntegrationRunner((IIntegrationResultManager)resultManagerMock.MockInstance,
                                           (IIntegrationRunnerTarget)targetMock.MockInstance,
                                           (IQuietPeriod)quietPeriodMock.MockInstance);


            request = ModificationExistRequest();
            endTime = new DateTime(2005, 2, 1);
            modifications = new Modification[] { new Modification() };

            resultMock = mockery.NewDynamicMock(typeof(IIntegrationResult));
            resultMock.SetupResult("WorkingDirectory", TempFileUtil.GetTempPath("workingDir"));
            resultMock.SetupResult("ArtifactDirectory", TempFileUtil.GetTempPath("artifactDir"));
            resultMock.SetupResult("BuildProgressInformation", new ThoughtWorks.CruiseControl.Core.Util.BuildProgressInformation("",string.Empty));
            resultMock.SetupResult("IntegrationProperties", new Dictionary<string, string>());
            result = (IIntegrationResult)resultMock.MockInstance;

            lastResultMock = mockery.NewDynamicMock(typeof(IIntegrationResult));
            lastResult = (IIntegrationResult)lastResultMock.MockInstance;
        }
开发者ID:kascomp,项目名称:CruiseControl.NET,代码行数:28,代码来源:IntegrationRunnerTest.cs

示例5: Run

 public void Run(IIntegrationResult result)
 {
     foreach (string mergeFile in MergeFiles)
     {
         string fullMergeFile = mergeFile;
         if (!Path.IsPathRooted(mergeFile))
         {
             fullMergeFile = Path.Combine(result.WorkingDirectory, mergeFile);
         }
         WildCardPath path = new WildCardPath(fullMergeFile);
         FileInfo[] files = path.GetFiles();
         foreach (FileInfo fileInfo in files)
         {
             Log.Info("Merging file: " + fileInfo);
             if (fileInfo.Exists)
             {
                 result.AddTaskResult((new FileTaskResult(fileInfo)));
             }
             else
             {
                 Log.Warning("File not Found: " + fileInfo);
             }
         }
     }
 }
开发者ID:vardars,项目名称:ci-factory,代码行数:25,代码来源:MergeFilesTask.cs

示例6: Run

 public void Run(IIntegrationResult result)
 {
     XmlSerializer serializer = new XmlSerializer(typeof (Modification[]));
     StringWriter writer = new Utf8StringWriter();
     serializer.Serialize(writer, result.Modifications);
     fileSystem.Save(ModificationFile(result), writer.ToString());
 }
开发者ID:vardars,项目名称:ci-factory,代码行数:7,代码来源:ModificationWriterTask.cs

示例7: LabelSourceControl

 public void LabelSourceControl(IIntegrationResult result)
 {
     var fileName = Path.Combine(
         Path.GetDirectoryName(this.FileName),
         DateTime.Now.ToString("yyyyMMddHHmmss") + ".label");
     File.WriteAllText(fileName, result.Label);
 }
开发者ID:kascomp,项目名称:CruiseControl.NET,代码行数:7,代码来源:IndexFileSourceControl.cs

示例8: LabelSourceControl

 public void LabelSourceControl(IIntegrationResult result)
 {
     foreach (ISourceControl sourceControl in SourceControls)
     {
         sourceControl.LabelSourceControl(result);
     }
 }
开发者ID:vardars,项目名称:ci-factory,代码行数:7,代码来源:MultiSourceControl.cs

示例9: GetSource

 public void GetSource(IIntegrationResult result)
 {
     foreach (ISourceControl sourceControl in SourceControls)
     {
         sourceControl.GetSource(result);
     }
 }
开发者ID:vardars,项目名称:ci-factory,代码行数:7,代码来源:MultiSourceControl.cs

示例10: GetSource

        public override void GetSource(IIntegrationResult result)
        {
            if (!_shim.AutoGetSource) return;

            _labelApplied = false;

            if (StringUtil.IsBlank(_shim.WorkingDirectory) && !(!_shim.ApplyLabel && _shim.UseVaultWorkingDirectory && !_shim.CleanCopy))
            {
                _shim.WorkingDirectory = GetVaultWorkingFolder(result);
                if (StringUtil.IsBlank(_shim.WorkingDirectory))
                    throw new VaultException(
                        string.Format("Vault user {0} has no working folder set for {1} in repository {2} and no working directory has been specified.",
                                      _shim.Username, _shim.Folder, _shim.Repository));
            }

            if (_shim.ApplyLabel)
            {
                Log.Info(string.Format("Applying label \"{0}\" to {1} in repository {2}.", result.Label, _shim.Folder, _shim.Repository));
                Execute(LabelProcessInfo(result));
                _labelApplied = true;
            }

            if (_shim.CleanCopy && !StringUtil.IsBlank(this._shim.WorkingDirectory))
            {
                Log.Debug("Cleaning out source folder: " + result.BaseFromWorkingDirectory(_shim.WorkingDirectory));
                new IoService().EmptyDirectoryIncludingReadOnlyObjects(result.BaseFromWorkingDirectory(_shim.WorkingDirectory));
            }

            Log.Info("Getting source from Vault");
            Execute(GetSourceProcessInfo(result, _shim.ApplyLabel));
        }
开发者ID:vardars,项目名称:ci-factory,代码行数:31,代码来源:Vault3.cs

示例11: GetSource

 public override void GetSource(IIntegrationResult result)
 {
     if (!AutoGetSource) return;
     git_clean(result);
     if (git_log_local_hash(result) != null) git_reset(result);
     git_merge(result);
 }
开发者ID:alexscordellis,项目名称:ccnet.git.plugin,代码行数:7,代码来源:git.cs

示例12: AddLabelToTaskComment

 /// <summary>
 ///     Appends a text string to the task_description attribute to each task in
 ///     the current selection set.
 /// </summary>
 /// <param name="connection">CM Synergy connection parameters.</param>
 /// <param name="project">Properties of the integration testing project.</param>
 /// <param name="result">The change set for the current integration run</param>
 /// <returns>A non-null initialized process structure.</returns>
 public static ProcessInfo AddLabelToTaskComment(SynergyConnectionInfo connection, SynergyProjectInfo project, IIntegrationResult result)
 {
     const string template = @"task /modify /description ""Integrated Successfully with CruiseControl.NET project '{0}' build '{1}' on {2}"" ""{3}""";
     string tasks = GetTaskList(result.Modifications);
     string arguments = String.Format(template, result.ProjectName, result.Label, result.StartTime, tasks);
     return CreateProcessInfo(connection, arguments);
 }
开发者ID:vardars,项目名称:ci-factory,代码行数:15,代码来源:SynergyCommandBuilder.cs

示例13: Run

        public void Run(IIntegrationResult result)
        {
            if (IntegrationStatus != result.Status) return;

            ICruiseManager manager = (ICruiseManager) remotingService.Connect(typeof(ICruiseManager), ServerUri);
            manager.ForceBuild(Project);
        }
开发者ID:vardars,项目名称:ci-factory,代码行数:7,代码来源:ForceBuildPublisher.cs

示例14: GetModifications

 public override Modification[] GetModifications(IIntegrationResult from, IIntegrationResult to)
 {
     _labelApplied = false;
     Log.Info(string.Format("Checking for modifications to {0} in Vault Repository \"{1}\" between {2} and {3}", _shim.Folder, _shim.Repository, from.StartTime, to.StartTime));
     ProcessResult result = ExecuteWithRetries(ForHistoryProcessInfo(from, to));
     return ParseModifications(result, from.StartTime, to.StartTime);
 }
开发者ID:vardars,项目名称:ci-factory,代码行数:7,代码来源:Vault3.cs

示例15: GetSource

        public override void GetSource(IIntegrationResult result)
        {
            result.BuildProgressInformation.SignalStartRunTask("Getting source from Vault");

            if (!_shim.AutoGetSource) return;
            if (_folderVersion <= 0)
            {
                throw new CruiseControlException("_folderVersion <= 0 when attempting to get source.  This shouldn't happen.");
            }

            if (_shim.CleanCopy)
            {
                string cleanCopyWorkingFolder = null;
                if (string.IsNullOrEmpty(_shim.WorkingDirectory))
                {
                    cleanCopyWorkingFolder = GetVaultWorkingFolder(result);
                    if (string.IsNullOrEmpty(cleanCopyWorkingFolder))
                        throw new VaultException(
                            string.Format("Vault user {0} has no working folder set for {1} in repository {2} and no working directory has been specified.",
                                          _shim.Username, _shim.Folder, _shim.Repository));
                }
                else
                    cleanCopyWorkingFolder = result.BaseFromWorkingDirectory(_shim.WorkingDirectory);

                Log.Debug("Cleaning out source folder: " + cleanCopyWorkingFolder);
                fileDirectoryDeleter.DeleteIncludingReadOnlyObjects(cleanCopyWorkingFolder);
            }

            Log.Info("Getting source from Vault");
            Execute(GetSourceProcessInfo(result));
        }
开发者ID:derrills1,项目名称:ccnet_gitmode,代码行数:31,代码来源:Vault317.cs


注:本文中的IIntegrationResult类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。