##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.
I am new bee. please help.
I did not have config folder in my sweet_dashboard_project folder so I have created the one and put the teamcity.yml file in there. I was not sure what needs to put under repositories so I provided 1 team city project ID in there.
I am getting the below error. Please let me know your valuable inputs to resolve this.
P.S. _ i am very new so i suspect I might have also done something wrong in the team city while creating a project.
================================================================================
scheduler caught exception:
undefined method
id' for nil:NilClass C:/Users/NarendraOjha/sweet_dashboard_project/jobs/teamcity.rb:23:in
block (2 levels) in update_builds'C:/Users/NarendraOjha/sweet_dashboard_project/jobs/teamcity.rb:17:in
each' C:/Users/NarendraOjha/sweet_dashboard_project/jobs/teamcity.rb:17:in
block in update_builds'C:/Users/NarendraOjha/sweet_dashboard_project/jobs/teamcity.rb:7:in
each' C:/Users/NarendraOjha/sweet_dashboard_project/jobs/teamcity.rb:7:in
update_builds'C:/Users/NarendraOjha/sweet_dashboard_project/jobs/teamcity.rb:63:in
block (2 levels) in <top (required)>' C:/Users/NarendraOjha/sweet_dashboard_project/jobs/teamcity.rb:62:in
each'C:/Users/NarendraOjha/sweet_dashboard_project/jobs/teamcity.rb:62:in
block in <top (required)>' C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/rufus-scheduler-2.0.24/lib/rufus/sc/jobs.rb:230:in
trigger_block'C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/rufus-scheduler-2.0.24/lib/rufus/sc/jobs.rb:204:in
block in trigger' C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/rufus-scheduler-2.0.24/lib/rufus/sc/scheduler.rb:430:in
block in trigger_job'