private void Build(IIntegrationResult result)
        {
            target.Activity = ProjectActivity.Building;
            target.Prebuild(result);
            if (!result.Failed)
            {
                bool success = false;

                target.RecordSourceControlOperation(SourceControlOperation.GetSource, ItemBuildStatus.Running);

                try
                {
                    target.SourceControl.GetSource(result);
                    success = true;
                }
                finally
                {
                    target.RecordSourceControlOperation(SourceControlOperation.GetSource,
                                                        success ? ItemBuildStatus.CompletedSuccess : ItemBuildStatus.CompletedFailed);
                }

                target.Run(result);

                target.SourceControl.LabelSourceControl(result);
            }
        }
Ejemplo n.º 2
0
 private void RunBuild(IIntegrationResult result)
 {
     Log.Info("Building");
     target.Run(result);
     Log.Info("Build complete: " + result.Status);
 }