Commit Graph

55 Commits (030da4b6b9a0efd62447dbd2ae177dbe3f0ffcc5)

Author SHA1 Message Date
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
Adrien Delorme cb2d89af6f simplify path parsing by making at string instead of an array + add tests
7 years ago
Adrien Delorme a4b8570991 refactor arg parsing into it's own cfg maker & test it
7 years ago
Adrien Delorme 9281fada2d prevent a breaking change so that we can merge the `-parallel-builds` option first.
7 years ago
Brett Wandel 92e75f838a added the ability to limit number of builds running in parallel
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 de336ef15e TestBuildOnlyFileMultipleFlags: check that tomato.txt is not created
7 years ago
Adrien Delorme b04b8b3857 test building with `-except=""`
7 years ago
Adrien Delorme dd3e2c255c respect a 'only' defined in a post-processor
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 61ade0e127 allow to use --only with post-processors
7 years ago