Basic Dashing widget to display TeamCity build info. Based on TeamCity Grouped Extended. The widget has been trimmed back to display a bottom level Project and all associated builds. For each build, it displays the most recent build, the user who's check-in triggered the build and its' status. If a build has the state FAILURE
then the widget flashes red.
##Dependencies
Add them to dashing's gemfile:
gem 'teamcity-ruby-client'
gem 'httparty'
and run bundle install
.
-
Copy all files from
/var/lib/gems/x.y.z/gems/TeamCityLABS-w.x.y.z
to your Dashboard directory. -
Edit
teamcity.yml
to include your credentials. -
Use the following snippet in your
dashboard.erb
file.<li data-row="1" data-col="1" data-sizex="1" data-sizey="3"> <div data-id="template-data-id1" data-image="/project-icon.png" data-view="TeamCity" data-unordered="true" data-title="TITLE"></div> </li>
This has been tested against TeamCity Enterprise 9.1.4 (build 37293). If you have success with your version of TeamCity, please let me know. If you don't have success, please raise an issue and/or pull request.