{
  "id": "cicd/jenkins-pipeline-syntax-error",
  "signature": "WorkflowScript: 12: expecting '}', found 'steps' @ line 12, column 5",
  "signature_zh": "WorkflowScript：第 12 行：期望 '}'，发现 'steps' @ 第 12 列 5",
  "regex": "WorkflowScript: \\d+: expecting.*found.*@ line \\d+, column \\d+",
  "domain": "cicd",
  "category": "build_error",
  "subcategory": null,
  "root_cause": "Jenkins pipeline script has a syntax error, typically a missing closing brace or incorrect nesting of stages/steps, causing the Groovy parser to fail before execution.",
  "root_cause_type": "generic",
  "root_cause_zh": "Jenkins 管道脚本存在语法错误，通常是缺少闭合大括号或 stages/steps 嵌套不正确，导致 Groovy 解析器在执行前失败。",
  "versions": [
    {
      "version": "Jenkins 2.440",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Jenkins 2.450",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Pipeline: Groovy Plugin 3960.v85a_7c1a_9e2b_1",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Adding random indentation changes without fixing the actual brace mismatch; Groovy is whitespace-insensitive, so indentation doesn't affect syntax.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Removing the 'steps' block entirely; this removes the functionality and the pipeline won't execute the intended actions.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Copying a script from a different pipeline without adjusting the structure; the syntax may be valid but the logic breaks the pipeline.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Use the Jenkins Pipeline Syntax Validator (http://your-jenkins/pipeline-syntax/) to parse the script and get precise error location. Fix the missing brace at line 12 by adding '}' before 'steps'.",
      "success_rate": 0.9,
      "how": "Use the Jenkins Pipeline Syntax Validator (http://your-jenkins/pipeline-syntax/) to parse the script and get precise error location. Fix the missing brace at line 12 by adding '}' before 'steps'.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Run `groovy -c yourPipeline.groovy` locally to check syntax before committing; this catches errors early.",
      "success_rate": 0.85,
      "how": "Run `groovy -c yourPipeline.groovy` locally to check syntax before committing; this catches errors early.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Simplify the pipeline to isolate the error: comment out sections until the error disappears, then fix the problematic block.",
      "success_rate": 0.75,
      "how": "Simplify the pipeline to isolate the error: comment out sections until the error disappears, then fix the problematic block.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "使用 Jenkins 管道语法验证器（http://your-jenkins/pipeline-syntax/）解析脚本并获取精确错误位置。在第 12 行的 'steps' 前添加缺失的 '}'。",
    "在提交前本地运行 `groovy -c yourPipeline.groovy` 检查语法；这可以及早捕获错误。",
    "简化管道以隔离错误：注释掉部分代码直到错误消失，然后修复有问题的块。"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://www.jenkins.io/doc/book/pipeline/syntax/",
  "official_doc_section": null,
  "error_code": "PIPELINE_SYNTAX_ERR",
  "verification_tier": "ai_generated",
  "confidence": 0.87,
  "fix_success_rate": 0.88,
  "resolvable": "true",
  "first_seen": "2023-09-05",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}