-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Unable to get Powershell provisioner to cause packer fail #11198
Copy link
Copy link
Closed
Labels
Description
When filing a bug, please include the following headings if possible. Any
example text in this template can be deleted.
Overview of the Issue
I am trying to develop a docker build (windows container) + powershell provisioner HCL that deliberately fails as a simple example to understand why my more complex version of the same does not fail. However, I can't.
Reproduction Steps
source docker core_service {
image = "mcr.microsoft.com/windows/servercore:2004"
windows_container = true
}
build {
name = "docker"
sources = ["source.docker.core_service"]
commit = true
provisioner "powershell" {
inline = ["exit 1"]
}
Packer version
1.7.4
Log Fragments and crash.log files
https://gist.github.com/richardgavel/c272800fb5a55a120bb967ffde36054e
Reactions are currently unavailable