timeout step.
Pipeline jobs should use the built-in
timeout directive. Learn more in the Pipeline Syntax documentation.Plugin Overview
Before configuring any jobs, let’s review the plugin details and installation stats:
Installation
- Go to Manage Jenkins > Manage Plugins.
- Search for Build Timeout.
- Install and restart Jenkins if prompted.

Configuration Scopes
You can configure timeouts at three levels:1. Global Configuration
Navigate to Manage Jenkins > Configure System and scroll to Global Build Time Out. Enable the plugin and choose a timeout strategy:The Absolute strategy requires a minimum value of 3 minutes. Values below this will be rejected.




2. Job-Level Configuration
To apply a timeout to a single job:- Open the job configuration.
- In Build Environment, check Terminate the build if it is stuck.
- Choose your strategy and set the duration.

3. Build-Step Timeout
For fine-grained control, add a Run with timeout wrapper around individual build steps:- Click Add build step.
- Select Run with timeout.
- Pick Absolute or Deadline, then set your value.
- Add subsequent steps based on timeout status.

Demonstration
Create a freestyle job named sleep-job with this shell script:Conclusion
You’ve learned how to:- Install and overview the Jenkins Build Timeout plugin
- Configure timeouts globally, per job, or per build step
- Select strategies: Absolute, Elastic, or Deadline
- Define post-timeout actions such as aborting, failing, or running cleanup steps