private void AssignCloudArgsAfterBuild(string msbuildLogPath, string tflogPath, string azurePackagesPath)
{
if (msbuildLogPath == null) throw new ArgumentNullException("msbuildLogPath");
if (tflogPath == null) throw new ArgumentNullException("tflogPath");
if (azurePackagesPath == null) throw new ArgumentNullException("azurePackagesPath");
// Assign log paths so that user can see them. See view log button click for details
this.msbuildLogPath = msbuildLogPath;
this.teamfoundationExeLogPath = tflogPath;
// This is for cloud deployment'
this.cloudArgs.IsBuildCompleted = true;
string cspkgFilePath = Directory.GetFiles(azurePackagesPath, "*.cspkg").First();
string configFilePath = Directory.GetFiles(azurePackagesPath, "*.cscfg").First();
this.cloudArgs.PackageFilePath = cspkgFilePath;
this.cloudArgs.ServiceConfigFilePath = configFilePath;
this.cloudArgs.AzureLogFilePath = tflogPath.Replace(Constants.TFSLogIdentifier, Constants.AzureLogIdentifier);
this.cloudDeploymentLogPath = this.cloudArgs.AzureLogFilePath;
}