mirror of https://github.com/hashicorp/packer
Move to using ectx to preload build names (#11432)
* Add basic post-processor test Closes #11411pull/11435/head
parent
58fa1f96e2
commit
760169b34e
@ -0,0 +1,13 @@
|
||||
build {
|
||||
name = "test-build"
|
||||
sources = [ "source.virtualbox-iso.ubuntu-1204" ]
|
||||
|
||||
post-processor "manifest" {
|
||||
name = build.name
|
||||
slice_string = ["${packer.version}", "${build.name}"]
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
source "virtualbox-iso" "ubuntu-1204" {
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
|
||||
// starts resources to provision them.
|
||||
build {
|
||||
name = "build-name-test"
|
||||
sources = [
|
||||
"source.virtualbox-iso.ubuntu-1204",
|
||||
]
|
||||
|
||||
provisioner "shell" {
|
||||
name = build.name
|
||||
slice_string = ["${build.name}"]
|
||||
}
|
||||
}
|
||||
|
||||
source "virtualbox-iso" "ubuntu-1204" {
|
||||
}
|
||||
|
||||
Loading…
Reference in new issue