Controls when Jenkins starts and stops this agent.
Keep this agent online as much as possible
In this mode, Jenkins will keep this agent online as much as possible.

If the agent goes offline, e.g. due to a temporary network failure, Jenkins will periodically attempt to restart it.

Take this agent online and offline at specific times
In this mode, Jenkins will bring this agent online at the scheduled time(s), remaining online for a specified amount of time.

If the agent goes offline while it is scheduled to be online, Jenkins will periodically attempt to restart it.

After this agent has been online for the number of minutes specified in the Scheduled Uptime field, it will be taken offline.
If Keep online while builds are running is checked, and the agent is scheduled to be taken offline, Jenkins will wait for any any builds that may be in progress to complete.

Take this agent online when in demand, and offline when idle
In this mode, Jenkins will bring this agent online if there is demand, i.e. there are queued builds which meet the following criteria:
  • They have been in the queue for at least the specified In demand delay time period
  • They can be executed by this agent (e.g. have a matching label expression)
This agent will be taken offline if:
  • There are no active builds running on this agent
  • This agent has been idle for at least the specified Idle delay time period