Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Is there any way to set up agents to be enabled and disabled based on the time of day?

Christopher Woodruff October 6, 2013

I'd like to turn on all local agents at night when I'm not worried about license contention for the tools we are using in our jobs. Some of those agents, I'd like to disable during the day.

2 answers

1 accepted

0 votes
Answer accepted
Felipe Kraemer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 8, 2013

Hi Christopher,

Unfortunately this functionality is not currently implemented in Bamboo.

I have created a new issue in the Atlassian development issue tracker for this functionality to ensure the Atlassian development team is aware of your request:

https://jira.atlassian.com/browse/BAM-13865

I would suggest adding any comments to the issue above as well as voting on the issue to create it's popularity and likelihood of being implemented in a future release.

For more information on how Atlassian implements new features and improvements please see the following document:

http://confluence.atlassian.com/display/DEV/Implementation+of+New+Features+Policy

0 votes
roy_lyons
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 8, 2013

Actually, I think you can with rest api. You would need to put it in cron, or in the bamboo instance (as long as you have at least 1 agent running) or in another bamboo instance.

Here is what chrome tells me it is doing as I enable and disable an agent. You will need to know the agent id... but you could use curl to do this rest call.

https://bamboo:8443/admin/agent/enableAgent.action?returnUrl=%2Fadmin%2Fagent%2FviewAgent.action%3FagentId%3D1835012&agentId=1835012


URL:https://bamboo:8443/admin/agent/disableAgent.action?returnUrl=%2Fadmin%2Fagent%2FviewAgent.action%3FagentId%3D1835012&agentId=1835012

EddieW
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 8, 2014

Thats not a REST api. That's a xwork action protected by xsrf tokens and credentials.

See https://answers.atlassian.com/questions/29420/best-way-to-reboot-agents-in-bamboo/313364

But using cron is an approach, and can pass credentials to the link ROy shared or use the recently releaae Agent APIs for Bamboo plugin. https://marketplace.atlassian.com/plugins/com.edwardawebb.bamboo-agent-apis

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events