{
  "slug": "packer-provisioner-blocks-support-continue-on-error-59dd3f8501f3",
  "title": "Packer provisioner blocks support continue_on_error",
  "tools": [
    "packer"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-07-24T09:26:22.000Z",
  "announced_at": "2026-07-24T09:26:22.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When a provisioner failure should not halt the build, set `continue_on_error = true` in that provisioner block. Packer logs the failure and continues the build after exhausting any configured retries.",
    "examples": [
      "build {\n  provisioner \"shell\" {\n    inline = [\"exit 1\"]\n    continue_on_error = true\n  }\n}"
    ],
    "gotchas": [
      "Version: v1.16.0",
      "continue_on_error: Set to `true` to continue the build after this provisioner fails; applied after `max_retries` is exhausted.",
      "max_retries: Maximum number of retries on provisioner error before the build fails or `continue_on_error` is applied.",
      "The described continuation behavior applies when `continue_on_error` is set to `true`."
    ]
  },
  "why_it_matters": "When a provisioner failure should not halt a Packer build, configure that provisioner to continue after errors.",
  "before": "A provisioner failure halts the build.",
  "sources": [
    "https://github.com/hashicorp/packer/releases/tag/v1.16.0",
    "https://developer.hashicorp.com/packer/docs/templates/hcl_templates/blocks/build/provisioner"
  ],
  "rank": 0.96028,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave1-20261014",
    "verdict_id": "wave1-20261014:wave1-20261014-9c51c9cc7a7f1cd2-2:gate",
    "evidence_hash": "72ab0ab6b1a0f442592bc7154d62d6e5c5a1ebe208574ec7804eb9c8e288feeb"
  },
  "review": {
    "draft_hash": "bf253f69da3f8195f59003104f3504cfade01da98c7cd9389b1aa38d498364f9",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave1-20261014:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.96 >= 0.9; 2 needed) and Jev gave 0.78 (>= 0.6 needed)."
  }
}
