// MAIN Deployment Step private void buttonMain_Click(object sender, EventArgs e) { richTextBoxOutput.Clear(); buttonCreateDir_Click(null, null); buttonGit_Click(null, null); buttonUpdateIndexHtml_Click(null, null); buttonUpdateWebConfig_Click(null, null); buttonUpdateAppValues_Click(null, null); buttonUpdatePasServiceWebConfig_Click(null, null); if (!environmentSettings.IsQA()) { buttonUpdateAppJs_Click(null, null); buttonUpdateUserServiceJs_Click(null, null); } //read last publish time string path = environmentSettings.GetPhysicalPath(); DateTime dt = Utils.ReadPublishTime(path); //git log --after="2013-11-12 00:00" --before="2013-11-12 23:59 //grab git commits comments where > publish time string git_messages = Git.Messages(path, dt); //email comments to team Utils.Email("*****@*****.**", "[email protected],[email protected],[email protected]", environmentSettings.Environment + " updated", git_messages); //update publish timeg Utils.UpdatePublishTime(path); //GitTag(path, "staging"); richTextBoxOutput.AppendText(@"Application deployed to " + environmentSettings.Environment + "\t"); richTextBoxOutput.AppendText("Url: " + @"http://" + environmentSettings.GetServer() + @"/" + environmentSettings.GetEnvPrefix().ToLower() + environmentSettings.AppVersion + "\n\n"); richTextBoxOutput.AppendText("Physical Path:\t" + environmentSettings.GetPhysicalPath() + "\n\n"); }
public static void DisplayEnvironmentVariables(EnvironmentSettings environmentSettings, RichTextBox richTextBoxOutput) { richTextBoxOutput.Clear(); richTextBoxOutput.AppendText("Environment\t" + environmentSettings.Environment + "\n"); richTextBoxOutput.AppendText("Git Branch\t" + environmentSettings.Branch + "\n"); richTextBoxOutput.AppendText("App Version\t" + environmentSettings.AppVersion + "\n"); richTextBoxOutput.AppendText("Released?\t" + ((environmentSettings.IsQA() ? "N/A" : environmentSettings.Released.ToString()) + "\n")); richTextBoxOutput.AppendText("Enviro Prefix\t" + environmentSettings.GetEnvPrefix() + "\n"); richTextBoxOutput.AppendText("FolderVersion\t" + environmentSettings.FolderVersion + "\n"); richTextBoxOutput.AppendText("Server Path\t" + environmentSettings.GetServer() + "\n"); richTextBoxOutput.AppendText("Client ID\t\t" + environmentSettings.GetClientID() + "\n\n"); richTextBoxOutput.AppendText("Url\t\t" + @"http://" + environmentSettings.GetServer() + @"/" + environmentSettings.GetEnvPrefix().ToLower() + environmentSettings.AppVersion + "\n\n"); richTextBoxOutput.AppendText("Physical Path\t" + environmentSettings.GetPhysicalPath() + "\n\n"); }