88 Commits

Author SHA1 Message Date
Adrien Delorme
a81abd297b Merge remote-tracking branch 'origin/master' into context_provisioner 2019-04-08 20:09:01 +02:00
Megan Marsh
96c94d2fa0 clean up code comments 2019-04-03 14:04:03 -07:00
Megan Marsh
10f47b5158 document clearly what keep_input_artifact does for each post-processor 2019-04-03 13:57:22 -07:00
Megan Marsh
365b32eb9c goofing 2019-04-03 09:43:39 -07:00
Adrien Delorme
e65115a7a0 contextualize post-processor 2019-04-03 15:55:55 +02:00
Adrien Delorme
a4bf94dd3c change Builder to be passed a context for cancellation
we have to to give it to our hook
2019-04-03 15:55:55 +02:00
Megan Marsh
12fc1fa751 default_keep_input_artifact 2019-04-02 16:51:58 -07:00
Adrien Delorme
9f82b75e57 Use the hashicorp/go-getter to download files
* removed packer.Cache and references since packer.Cache is never used except in the download step. The download step now uses the new func packer.CachePath(targetPath) for this, the behavior is the same.
* removed download code from packer that was reimplemented into the go-getter library: progress bar, http download restart, checksuming from file, skip already downloaded files, symlinking, make a download cancellable by context.
* on windows if packer is running without symlinking rights and we are getting a local file, the file will be copied instead to avoid errors.
* added unit tests for step_download that are now CI tested on windows, mac & linux.
* files are now downloaded under cache dir `sha1(filename + "?checksum=" + checksum) + file_extension`
* since the output dir is based on the source url and the checksum, when the checksum fails, the file is auto deleted.
* a download file is protected and locked by a file lock,
* updated docs
* updated go modules and vendors
2019-03-13 12:11:58 +01:00
Megan Marsh
91aa5f8bbb resolve conflicts; fix to work with hookedprovisioner which has been added since PR was made 2018-06-07 15:53:18 -07:00
Matthew Hooker
b07a0cd6f0
fix tests
always sort telemetry options
2017-11-14 16:39:03 -08:00
Matthew Hooker
3e3768ec3e
fix tests 2017-11-14 16:30:43 -08:00
Matthew Hooker
46f41d1f12
WIP: add options to telemetry 2017-11-14 16:30:43 -08:00
Matthew Hooker
2d581dfc7b
fix tests. 2017-06-15 14:08:17 -07:00
Matthew Hooker
7382382727
Add telemetry reporting through checkpoint
Will report builders/provisioner/post-processor types used per build,
and whether or not the build passed.

Will also report any panics we see.

You may opt out of this reporting by setting the environment variable
`CHECKPOINT_DISABLE`.
2017-06-15 13:21:11 -07:00
Matthew Hooker
048e316645
s/TargettedUi/TargetedUI/ 2017-03-29 12:44:42 -07:00
Matthew Hooker
230079f73a
spell fixes 2017-03-28 20:36:19 -07:00
Orivej Desh
389603cc0f Allow upper case input to -on-error=ask 2016-09-16 12:15:00 +00:00
Orivej Desh
6762965696 Add -on-error command line argument to allow preserving artifacts on builder errors
Resolves #409
2016-09-16 12:15:00 +00:00
Mitchell Hashimoto
639e63fd7c packer: test for template path 2015-05-29 14:29:32 -07:00
Mitchell Hashimoto
6a3dd16a3a packer: template now handles user var logic 2013-12-27 09:17:51 -07:00
Mitchell Hashimoto
336051e316 packer: builder prepare can return warnings 2013-11-02 22:31:12 -05:00
Mitchell Hashimoto
ac2a4807d4 packer: fix required var check to work properly 2013-08-31 17:36:43 -07:00
Mitchell Hashimoto
fd4b01cf85 packer: required user variables [GH-374] 2013-08-31 17:33:17 -07:00
Mitchell Hashimoto
0dc347c70d packer: implement Cancel in ProvisionHook 2013-08-30 23:39:29 -07:00
Mitchell Hashimoto
e210151408 packer: implement Cancel on DispatchHook 2013-08-30 17:26:51 -07:00
Mitchell Hashimoto
a329d7dd2f packer: remove keep_input_artifact prior to sending to build [GH-310] 2013-08-19 16:00:25 -07:00
Mitchell Hashimoto
03c10a9aa8 packer: renamed PrefixedUi to TargettedUi 2013-08-11 18:31:28 -07:00
Mitchell Hashimoto
598f11f168 packer: properly override/send user variables to prepare 2013-08-09 15:57:08 -07:00
Mitchell Hashimoto
3f0a268e1e packer, packer/rpc: Update Build interface to allow variable overrides 2013-08-09 15:57:07 -07:00
Mitchell Hashimoto
95b598f748 packer: Template understands variables, puts it into a Build 2013-08-09 15:57:07 -07:00
Mitchell Hashimoto
9387ba0fd4 packer: Make builder type available in configs [GH-154] 2013-07-15 09:58:32 +09:00
Mitchell Hashimoto
f621f88913 packer: move constants into a single const() 2013-07-15 09:55:41 +09:00
Mitchell Hashimoto
2981da4eef fmt 2013-07-13 10:01:27 +09:00
Jason A. Beranek
13c733a3db Add support for -force flag on builds [GH-119] 2013-07-11 23:43:23 -05:00
Mitchell Hashimoto
44e0a7def5 packer: Send packerConfig into PostProcessors 2013-07-01 15:00:21 -07:00
Mitchell Hashimoto
f78cbb45a6 packer: PostProcessor API change so they can keep artifacts [GH-55] 2013-07-01 11:30:39 -07:00
Mitchell Hashimoto
12f627197e fmt 2013-07-01 11:07:25 -07:00
Mitchell Hashimoto
8f74ff170d packer: Add BuildNameConfigKey to all configs which has the build name 2013-07-01 11:06:28 -07:00
Mitchell Hashimoto
4cab266eb3 fmt 2013-06-28 09:44:03 -04:00
Mitchell Hashimoto
bd6f176bf0 packer: Builds use their own UI [GH-21] 2013-06-27 21:55:59 -04:00
Mitchell Hashimoto
42005959fe packer: Don't run post-processors if artifact is nil 2013-06-27 18:50:02 -04:00
Mitchell Hashimoto
6799315081 packer: Improved logging around build runs 2013-06-18 23:05:02 -07:00
Mitchell Hashimoto
b243eeda6f packer: Post-process chain works properly 2013-06-18 22:58:23 -07:00
Mitchell Hashimoto
4912b485e2 command/build: Say if no artifacts were created 2013-06-18 22:53:30 -07:00
Mitchell Hashimoto
154c17163b packer: keep_input_artifact will keep prior artifact in a PP
[GH-19]
2013-06-18 22:45:53 -07:00
Mitchell Hashimoto
b34bc1a0c9 packer: Build only adds post-processor artifact if not nil 2013-06-18 21:15:14 -07:00
Mitchell Hashimoto
76ab870924 packer: PostProcessor takes a UI [GH-20] 2013-06-18 20:38:21 -07:00
Mitchell Hashimoto
e73c224764 packer: Build runs the post-processors 2013-06-18 10:54:29 -07:00
Mitchell Hashimoto
75fe58d5f7 packer: Post-processors are configured 2013-06-18 10:31:52 -07:00
Mitchell Hashimoto
218692950b packer: Build can return multiple artifacts 2013-06-18 10:24:23 -07:00