##Preview
Simple Dashing widget (and associated job) to display teamcity build info. Based on DefactoSoftware/dashing-widgets/teamcity.
This widgets displays all children of a teamcity project. Each child project displays the latest build in each branch that is registered in teamcity.
If a build has the state FAILURE
the widgets flashes in red (see gif).
##Dependencies
Add it to dashing's gemfile:
gem 'teamcity-ruby-client'
and run bundle install
. Everything should work now :)
##Usage
- Copy the
team_city.coffee
,team_city.html
andteam_city.scss
files from this gist to thewidgets/team_city
. - Copy
teamcity.rb
tojobs/
- Copy
teamcity.yml
toconfig/
To include the widget in a dashboard, add the following snippet to the dashboard layout 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>
##Settings
Modify the teamcity.yml
config file to work in your teamcity setup. See https://github.com/jperry/teamcity-ruby-client for more information on the teamcity api auth.
Nice Widget. Are you able to configure multiple api_url's? because Im trying to display this widget for two teamcity servers, but for some reason it only displays one of them. I do have admin access to both of them but it still doesn't work. I have two ruby files under the jobs folder that configures the two api_urls and sends them to two different dashboards. However when i type dashing start,
It keeps saying:
scheduler caught exception:
757: unexpected token at 'Error has occurred during request processing (Not Found).
Error: jetbrains.buildServer.server.rest.errors.NotFoundException: No project found by locator 'id:TEAMCITY_BRANCH_ID'. Project cannot be found by external id
That error is only send when i start dashing.
But if i run the ruby files seperately by going in the jobs folder: cd/jobs ruby teamcity1.rb it gives me what i need.
Any ideas on this?