In some environments, Jenkins agents running on Spot instances terminate immediately after completing a job. This may not be desirable when additional tasks, system checks, or short-term reuse of the same instance are needed. By adjusting the Idle minutes before termination setting, it is possible to control how long the instance remains active before automatic shutdown.
To prevent a Jenkins slave (agent) instance from terminating immediately after a job completes:
-
Go to the Elastigroup or Ocean configuration that manages your Jenkins instances.
-
Open the Jenkins integration settings.
-
Find the Idle minutes before termination field.
-
Increase the time (in minutes) to the desired duration for which you want the instance to remain active after becoming idle.
-
Save the configuration.
This setting instructs the system not to terminate idle instances instantly but instead wait for the configured idle period. This provides a time buffer for subsequent jobs to reuse the same instance and reduces startup overheads while maintaining control over instance lifecycle costs.
Outcome
The Jenkins slave remains active during the defined idle period, allowing for additional reuse or manual actions before automatic termination.
Related Articles
Keep a Jenkins agent alive after a job finishes 8Number of Views Jenkins job retriggering after an interruption 4Number of Views Unable to Run Jenkins job using Plugin in FlexNet Code Insight 10Number of Views Jenkins agent shows “IP for agent is not available yet not attaching SSH launcher” on Azure 10Number of Views Keeping Track of Multiple INSTANCE_GUID Values in the Registry 7Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add additional feedback (optional)
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
|
FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513
(toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367
(toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895
2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Revenera Assistant
Case id: 00001065
Activity: Status change: 2 hours ago