{
  "id": "cicd/jenkins-pipeline-timeout",
  "signature": "org.jenkinsci.plugins.workflow.steps.FlowInterruptedException: The pipeline timed out after 60 minutes",
  "signature_zh": "org.jenkinsci.plugins.workflow.steps.FlowInterruptedException：流水线在 60 分钟后超时",
  "regex": "org\\.jenkinsci\\.plugins\\.workflow\\.steps\\.FlowInterruptedException.*timed out after",
  "domain": "cicd",
  "category": "runtime_error",
  "subcategory": null,
  "root_cause": "A Jenkins pipeline stage or the entire pipeline exceeded the configured timeout limit, causing the build to be aborted.",
  "root_cause_type": "generic",
  "root_cause_zh": "Jenkins 流水线阶段或整个流水线超过了配置的超时限制，导致构建被中止。",
  "versions": [
    {
      "version": "Jenkins 2.346+",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Pipeline: Declarative 1.8.5+",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Pipeline: Groovy 2.9+",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Removing the timeout option entirely from the Jenkinsfile",
      "why_fails": "Without a timeout, the pipeline can run indefinitely, consuming resources and potentially blocking the executor queue.",
      "fail_rate": 0.3,
      "condition": "",
      "sources": []
    },
    {
      "action": "Setting the timeout to a very high value (e.g., 9999 minutes) to avoid the error",
      "why_fails": "This masks the underlying issue (e.g., a stuck step or resource contention) and can lead to resource exhaustion.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Increase the timeout in the Jenkinsfile by modifying the `options` block: `options { timeout(time: 120, unit: 'MINUTES') }` for the entire pipeline, or add `timeout(time: 30, unit: 'MINUTES')` to a specific stage.",
      "success_rate": 0.9,
      "how": "Increase the timeout in the Jenkinsfile by modifying the `options` block: `options { timeout(time: 120, unit: 'MINUTES') }` for the entire pipeline, or add `timeout(time: 30, unit: 'MINUTES')` to a specific stage.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Optimize the pipeline to reduce execution time by parallelizing stages with `parallel` directive: `stage('Build and Test') { parallel { stage('Build') { ... } stage('Test') { ... } } }`",
      "success_rate": 0.7,
      "how": "Optimize the pipeline to reduce execution time by parallelizing stages with `parallel` directive: `stage('Build and Test') { parallel { stage('Build') { ... } stage('Test') { ... } } }`",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Increase the timeout in the Jenkinsfile by modifying the `options` block: `options { timeout(time: 120, unit: 'MINUTES') }` for the entire pipeline, or add `timeout(time: 30, unit: 'MINUTES')` to a specific stage.",
    "Optimize the pipeline to reduce execution time by parallelizing stages with `parallel` directive: `stage('Build and Test') { parallel { stage('Build') { ... } stage('Test') { ... } } }`"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://www.jenkins.io/doc/book/pipeline/syntax/#options",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.88,
  "fix_success_rate": 0.9,
  "resolvable": "true",
  "first_seen": "2023-08-10",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}