Display a Bamboo Agent status. It can show if it is Offline, Idle or Busy building.
To use this widget, copy bamboo_agent.html
, bamboo_agent.coffee
, and bamboo_agent.scss
into the /widgets/bamboo_agent
directory. Put the bamboo_agent.rb
file in your /jobs
folder.
You'll also need a nice little icon for the widget. Use whatever you want, name it bamboo-status.png and put it in your /assets/images
folder.
To include the widget in a dashboard, add the snippet from dashboard.erb
to the dashboard layout file.
You need and admin account to be able to access Bamboo agent details. Add the credentials to the job's configuration as well as your Bamboo instance's URL.
The bamboo agent ID's can be found on the agents detail page. The url looks something like this /admin/agent/viewAgent.action?agentId=12648450
, take the ID you find in there.
You can add the agent ID's to the configuration like this: [agent1 agent2 agent3]
and add 1 snippet per agent from dashboard.erb
to your dashboard's erb file. Adjust the agent id so the information can be sent to that widget. You do not need to specify a title, that will be set by the job.
In case you need a different refresh rate, that can also be adjusted.