Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions BuildMonitor/BuildMonitor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@
<Content Include="Views\Home\Index.cshtml" />
<Content Include="Scripts\jquery-1.10.2.min.map" />
<Content Include="Views\Shared\_BuildItem.cshtml" />
<Content Include="Web.AppSettings.config" />
</ItemGroup>
<ItemGroup />
<ItemGroup>
Expand Down
20 changes: 20 additions & 0 deletions BuildMonitor/Web.AppSettings.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<appSettings>
<!-- TODO: Set up TeamCity credentials here -->
<add key="teamcity_username" value="set_your_username" />
<add key="teamcity_password" value="set_your_password" />
<add key="teamcity_api_url" value="http://set_your_teamcity_url" />

<!-- TeamCity REST API paths (don't modify) -->
<add key="teamcity_api_projects" value="/httpAuth/app/rest/projects" />
<add key="teamcity_api_buildtypes" value="/httpAuth/app/rest/buildTypes" />
<add key="teamcity_api_buildstatus" value="/httpAuth/app/rest/buildTypes/id:{0}/builds/branch:(default:any)" />
<add key="teamcity_api_runningbuilds" value="/httpAuth/app/rest/builds?locator=running:true,branch:(default:any)" />
<add key="teamcity_api_buildqueue" value="/httpAuth/app/rest/buildQueue" />

<!-- ASP.NET settings (don't modify) -->
<add key="webpages:Version" value="3.0.0.0" />
<add key="webpages:Enabled" value="false" />
<add key="ClientValidationEnabled" value="true" />
<add key="UnobtrusiveJavaScriptEnabled" value="true" />
</appSettings>
17 changes: 1 addition & 16 deletions BuildMonitor/Web.config
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,7 @@
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</configSections>
<connectionStrings />
<appSettings>
<add key="webpages:Version" value="3.0.0.0" />
<add key="webpages:Enabled" value="false" />
<add key="ClientValidationEnabled" value="true" />
<add key="UnobtrusiveJavaScriptEnabled" value="true" />

<!-- TeamCity setup -->
<add key="teamcity_username" value="set_your_username" />
<add key="teamcity_password" value="set_your_password" />
<add key="teamcity_api_url" value="http://set_your_teamcity_url" />
<add key="teamcity_api_projects" value="/httpAuth/app/rest/projects" />
<add key="teamcity_api_buildtypes" value="/httpAuth/app/rest/buildTypes" />
<add key="teamcity_api_buildstatus" value="/httpAuth/app/rest/buildTypes/id:{0}/builds/branch:(default:any)" />
<add key="teamcity_api_runningbuilds" value="/httpAuth/app/rest/builds?locator=running:true,branch:(default:any)" />
<add key="teamcity_api_buildqueue" value="/httpAuth/app/rest/buildQueue" />
</appSettings>
<appSettings configSource="Web.AppSettings.config" />
<system.web>
<customErrors mode="Off" />
<authentication mode="None" />
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ A simple build monitor for TeamCity using ASP.NET MVC 4 with the following featu
Installation
-------------

Download the repository and compile it on order to download all required NuGet packages. If you dont have automatic NuGet package restore enabled in Visual Studio then it will have to be enabled.
Download the repository and compile it on order to download all required NuGet packages. If you don't have automatic NuGet package restore enabled in Visual Studio, then it will have to be enabled.

Open Web.config and enter your TeamCity server information into the appSettings labeled teamcity_username, teamcity_password and teamcity_api_url.
Open `Web.AppSettings.config` and enter your TeamCity server information into the settings labeled `teamcity_username`, `teamcity_password` and `teamcity_api_url`.

In the constructor of HomeController.cs, you can switch between using DefaultBuildMonitorModelHandler (shows all jobs in TeamCity automatically) or the CustomBuildMonitorModelHandler which allows you to customize what to display. You can customize your personal view by editing the file App_Data/Settings.xml.
In the constructor of `HomeController.cs`, you can switch between using `DefaultBuildMonitorModelHandler` (shows all jobs in TeamCity automatically) or the `CustomBuildMonitorModelHandler` which allows you to customize what to display. You can customize your personal view by editing the file `App_Data/Settings.xml`.