sincecutoff.com
← all changes

Packer provisioner blocks support continue_on_error

Introduced 2026-07-24 · score 0.96

HOW TO USE IT

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.

build { provisioner "shell" { inline = ["exit 1"] continue_on_error = true } }

WHY THIS HELPS

When a provisioner failure should not halt a Packer build, configure that provisioner to continue after errors.

BEFORE THIS CHANGE

A provisioner failure halts the build.

REQUIREMENTS AND LIMITATIONS

  • 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`.

FIRST-PARTY EVIDENCE

Check the installed version and the source before using it. Entry JSON

Report a problem with this card