Commit Graph

59 Commits (dc38fadeebccf2bc294faaa91b67a9df705bda23)

Author SHA1 Message Date
Adrien Delorme 4bc16455b4
HCL2: add a packer block with a required_version input setting (#10149)
6 years ago
Megan Marsh 66b81d9bee
add build.name to hcl code (#10114)
6 years ago
Peter Willis f1b57b1e66
Fix typos
6 years ago
Adrien Delorme fcf16315a3 add tests
6 years ago
Adrien Delorme 3d7ab9ea43 add an hcl2-json test
6 years ago
Adrien Delorme a70164f489
HCL2: when the type of a variable is not known evaluate setting as a litteral. (#9863)
6 years ago
Adrien Delorme a25f057984 add tests for unknown values
6 years ago
Adrien Delorme 161879b98a test unknown variables and locals
6 years ago
Adrien Delorme 5ba134ac5b
JSON to HCL2 (minimal best-effort) transpiler (#9659)
6 years ago
sylviamoss 39a8dee4ea add tests and update override example
6 years ago
Adrien Delorme c7b35dd6bc
HCL2: add post-processors block to run multiple post-processor after a build (#9638)
6 years ago
Adrien Delorme 44616d3bff
refactor initialization out from packer configs + tests (#9627)
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 d84d956e36 add language coment !
6 years ago
Adrien Delorme a15ad19411 test builds can be 'excepted'
6 years ago
Adrien Delorme c1c8b8d22a complete -> recipes
6 years ago
Adrien Delorme 10e5d952ac unquote 'cooking...'
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
Adrien Delorme 3d371a2d5d
Add complete HCL2 examples + allow to name a singular build.source blocks (#9490)
6 years ago
Sylvia Moss 99046c9178
Share build info with Provisioner and Post-Processor via HCL2 variables (#9444)
6 years ago
Adrien Delorme 6f4d79799b add thorough test
6 years ago
Adrien Delorme dabcc866e5 add another inspect test
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
Wilken Rivera f672f5bd9b command/validate: Add support for HCL2 configuration files
6 years ago
Adrien Delorme bac9c74447
packer console for HCL2 (#9359)
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
Adrien Delorme d068430abf
make sure locals are evaluated only once variables are + test this (#8918)
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
Moss a0329ef196 Simplify testing template
6 years ago
Moss 7466c4fdca Return exit code 1 when builder type is not found
6 years ago
Megan Marsh 59efa0faee rename option to error-cleanup-privisoner, which I think is clearer
7 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
Adrien Delorme 583d93790f add tests for cancellation while building
7 years ago
Adrien Delorme a2cc2532ea add TestBuildParallel_Timeout to test errors on parallel builds
7 years ago
Adrien Delorme 852af993e6 BuildParallel: test with 3 parallel builds
7 years ago
Adrien Delorme 14486003a1 fix test to be race free
7 years ago
Brett Wandel aaf56ffd26 added: testing
7 years ago
Adrien Delorme d7b1b597a7 test provisionning timeout
7 years ago
Megan Marsh 217a93fc30 fix build_test.go on windows. This code needs to not be run in parallel, or else there can be race conditions with the post-processors all trying to access the same file at once. Additionally, I changed the test template itself so that it is valid code on either bash or cmd. Finally, I found and fixed a small bug in naming the file extensions in shell local inline scripts.
7 years ago
Adrien Delorme 7e2d86731e tests: add a post-processor that creates an unnamed.txt file
7 years ago
Adrien Delorme 074a74ec38 make sure 'only' completely ignores post-processor
7 years ago
Adrien Delorme 58245f2557 break a chain of post-processors when one is skipped & make `-only`
7 years ago
Adrien Delorme 4bf3cd44fc allow to skip a post processor
7 years ago
Adrien Delorme 905db043c4 command.TestBuildOnlyFileCommaFlags: create some files using post processors
7 years ago
Matthew Hooker ddf23a2c46
Complete Atlas deprecation.
8 years ago