# org.jenkinsci.plugins.workflow.steps.FlowInterruptedException: The pipeline timed out after 60 minutes. Stage 'Deploy' exceeded the timeout limit set in the Jenkinsfile.

- **ID:** `cicd/jenkins-pipeline-stage-timeout`
- **Domain:** cicd
- **Category:** runtime_error
- **Error Code:** `PIPELINE_STAGE_TIMEOUT`
- **Verification:** ai_generated
- **Fix Rate:** 85%

## Root Cause

A Jenkins pipeline stage has a timeout configured (e.g., via timeout() step) that is shorter than the actual execution time of the stage, often due to long-running deployment scripts or resource contention.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| Jenkins 2.440 | active | — | — |
| Jenkins 2.450 | active | — | — |
| Declarative Pipeline 1.9.3 | active | — | — |

## Workarounds

1. **Increase the timeout value for the specific stage in the Jenkinsfile, e.g., from 60 to 120 minutes, by modifying the timeout() step.** (90% success)
   ```
   Increase the timeout value for the specific stage in the Jenkinsfile, e.g., from 60 to 120 minutes, by modifying the timeout() step.
   ```
2. **Optimize the stage script to run faster by parallelizing tasks or reducing resource-intensive operations, such as using parallel() for independent deployment steps.** (80% success)
   ```
   Optimize the stage script to run faster by parallelizing tasks or reducing resource-intensive operations, such as using parallel() for independent deployment steps.
   ```
3. **Remove the timeout entirely for the stage if it is not critical, but add a timeout at the pipeline level as a safety net.** (75% success)
   ```
   Remove the timeout entirely for the stage if it is not critical, but add a timeout at the pipeline level as a safety net.
   ```

## Dead Ends

- **** — The timeout is defined in the pipeline code, not in the Jenkins server configuration. (80% fail)
- **** — Pipeline-level timeouts take precedence over global settings. (85% fail)
- **** — The timeout is a limit on execution time, not a space or cache issue. (75% fail)
