mirror of https://github.com/hashicorp/packer
Allow to use build variables in a post processor (#11323)
* hcl: add test to verify that build.name can be used in a pp * allow to use build vars in post processorspull/11326/head
parent
e99e038a72
commit
254e020b08
@ -0,0 +1,12 @@
|
||||
source "null" "example" {
|
||||
communicator = "none"
|
||||
}
|
||||
|
||||
build {
|
||||
name = "example"
|
||||
sources = ["source.null.example"]
|
||||
|
||||
post-processor "shell-local" {
|
||||
inline = ["echo 2 > ${build.name}.2.txt"]
|
||||
}
|
||||
}
|
||||
Loading…
Reference in new issue