Commit Graph

68 Commits (0eb25b577582ffc0761b79373959fa187173d018)

Author SHA1 Message Date
Lucas Bajolet c0e7e7bd3c hcl2: report error on build without sources
3 years ago
Lucas Bajolet 61c56e161c hcl2: add example for undefined variable set warn
3 years ago
Lucas Bajolet e94b8766cb build: exit immediately if no builds and diags
3 years ago
Eng Zer Jun f5ec0f1c57 test: use `T.Setenv` to set env vars in tests
3 years ago
Lucas Bajolet a298617ecb command/build: warn and exit when nothing to build
3 years ago
Adrien Delorme 0362a3ec10
all shells: Pass env vars through a key value store (#11569)
4 years ago
Adrien Delorme e03ad29ca0
Sanitize var code (#11566)
4 years ago
Adrien Delorme 3278c1a817
Packer SVC acc tests (#11274)
4 years ago
Wilken Rivera 4a0fbd911a
Add support for variable interpolation to hcp_packer_registry and build blocks. (#11421)
4 years ago
Adrien Delorme 710d109c55
HCL2: fix a crash when an HCL2 component is nil after a misconfiguration (#11382)
4 years ago
Adrien Delorme 254e020b08
Allow to use build variables in a post processor (#11323)
4 years ago
Adrien Delorme 3135714465
rename all things 'inexist[e|a]nt' to 'nonexistent' & fix tests (#11325)
4 years ago
Adrien Delorme 9d0193ac14
add possibility to use variables everywhere in post-processor blocks (#11094)
5 years ago
Adrien Delorme 77a29fc2f8
Allow to have `dynamic` blocks in a `build` block + tests (#10825)
5 years ago
Adrien Delorme a115b428ac simplify fmt test case a little
5 years ago
Sylvia Moss ef4afafde9
Fix force flag for hcl2 provisioners and post-processors (#10571)
5 years ago
Adrien Delorme ed091163be
HCL2 Parse packer.required_plugins block + packer init (#10304)
5 years ago
Sylvia Moss 291121dd55
(2) Implement datasources (#10440)
5 years ago
Adrien Delorme 52d2d7fe5f
Copy `MapOf...` plugin types back into Packer core (#10466)
5 years ago
Megan Marsh 88b7b0e14a remove sdk
5 years ago
Megan Marsh 5576bb5caa move packer config constants next to the packer config
5 years ago
Megan Marsh b69d69095e move postprocessor to sdk, fix generation code
5 years ago
Megan Marsh be5763ec41 move provisioner interface into sdk
5 years ago
Megan Marsh ada91b24e9 extract builder interface to sdk
5 years ago
Megan Marsh d5971ca25e fix tests by moving mock hooks and communicators, and BasicUi definition, into SDK
5 years ago
Adrien Delorme 6dd06fad14 add command/ tests
5 years ago
Megan Marsh 66b81d9bee
add build.name to hcl code (#10114)
5 years ago
Adrien Delorme 3d7ab9ea43 add an hcl2-json test
6 years ago
sylviamoss 39a8dee4ea add tests and update override example
6 years ago
Chris Gilmer 6e918c4bd3
Update test for builder output
6 years ago
Adrien Delorme 125178d943
core: Decode: when in HCL2 decoding mode; reset the whole struct before preparing it. (#9622)
6 years ago
Adrien Delorme a15ad19411 test builds can be 'excepted'
6 years ago
Adrien Delorme c1c8b8d22a complete -> recipes
6 years ago
Adrien Delorme 0deaa5d2a5 add a complete tests for builder variables + only/except
6 years ago
Adrien Delorme 7969b690de Revert "Share build info with Provisioner and Post-Processor via HCL2 variables (#9444)"
6 years ago
Sylvia Moss 99046c9178
Share build info with Provisioner and Post-Processor via HCL2 variables (#9444)
6 years ago
Adrien Delorme fb337f8867
hcl work on only/except (#9454)
6 years ago
Moss daaeccd8b0 Skip consecutives post-processors
6 years ago
Moss bfb9df0039 fix except flag for JSON and HCL2
6 years ago
Adrien Delorme e6aac8cd6f Update build_test.go
6 years ago
Adrien Delorme efcc6af06c fix tests
6 years ago
Adrien Delorme 42a05e1e80 more refactoring
6 years ago
Tom Dyas c0a6623ea2
teach HCL mode builds to honor -only and -except options (#8947)
6 years ago
Adrien Delorme 2af40c762b
HCL2: pass on builder type and name (#8956)
6 years ago
Megan Marsh f5c98a7601
make sure cli vars supercede var files (#8964)
6 years ago
Adrien Delorme ad8dafa3bd
HCL: add tests and fixes around var-file and var args (#8914)
6 years ago
Sylvia Moss 23fa3107a3
Render variables one time on prepare method (#8727)
6 years ago
Adrien Delorme 0785c2f6fc
build using HCL2 (#8423)
6 years ago
Moss 7466c4fdca Return exit code 1 when builder type is not found
6 years ago
Megan Marsh 0683bc409b add test for error-cleanup provisioner, and fix tests by fixing null builder to use an actual none communicator instead of skipping communicator generation altogether
7 years ago