108 Commits

Author SHA1 Message Date
DanHam
e8c586175e
Intention: Allow use of artifice pp with vagrant-cloud pp
The Vagrant-Cloud and Vagrant provider (e.g. virtualbox, vmware_desktop
etc.) must be determined differently depending on the builder or
post-processor supplying the artifact.

Adds a wrapper function that:

* Uses the original method of determining the provider when the artifact
  is provided by either the Vagrant builder or Vagrant post-processor
* Uses a new (currently empty) function when the artifact is provided
  via the Artifice post-processor
2019-08-21 14:32:23 +01:00
DanHam
3f4f429c3d
Should return an error when artifact file does not have .box extension 2019-08-21 14:32:23 +01:00
DanHam
57308b0126
Should return an error with an invalid BuilderId 2019-08-21 14:32:23 +01:00
Adrien Delorme
d72040f4fa move retry code into the common/retry pkg and make retry context aware 2019-04-09 17:46:38 +02:00
Adrien Delorme
a81abd297b Merge remote-tracking branch 'origin/master' into context_provisioner 2019-04-08 20:09:01 +02:00
Adrien Delorme
c4f3dccc14 rename interpolation context from ctx to ictx and contexts to ctx to avoid conflicts 2019-04-03 15:56:15 +02:00
Adrien Delorme
e65115a7a0 contextualize post-processor 2019-04-03 15:55:55 +02:00
Megan Marsh
12fc1fa751 default_keep_input_artifact 2019-04-02 16:51:58 -07:00
Vadym Haidamaka
4855bc79c9 Add vagrant-cloud post-processor support for the vagrant builder 2019-03-12 05:33:46 +02:00
Davi Vidal
b0e3128125 Improves test message 2019-03-05 14:39:50 +01:00
Davi Vidal
1a94ad14bd Adds test for insecure_skip_tls_verify 2019-03-05 14:37:37 +01:00
Davi Vidal
a2fd287e56 Ignores SSL verification when on premise vagrant cloud 2019-03-05 10:57:11 +01:00
Megan Marsh
c63b54a1e7 move http with proxy call into a helper function 2019-01-25 12:32:52 -08:00
Adrien Delorme
7b10079507 fail if the request could not be created 2018-10-25 10:28:12 +02:00
Adrien Delorme
aa2ebec8fd remove duplicate error message from 2018-10-25 10:25:37 +02:00
Adrien Delorme
ff4b6d4442 pass vagrant cloud auth token as http header
* stoped using url to pass the auth token and put it in the headers
* added newRequest method to VagrantCloudClient that sets json and auth headesr
* made VagrantCloudClient method pointers to avoid copies
2018-10-24 15:39:53 +02:00
Adrien Delorme
415b886f5b post-processor/vagrant-cloud: validate vagrant cloud auth token doing an auth request 2018-10-24 15:08:08 +02:00
Edouard BONLIEU
7e36cfcff1
Add Scaleway builder 2018-02-08 12:09:24 -08:00
Matthew Hooker
7a189a83a1
fix imports
`find . -type f -name '*.go' -not -path "./vendor/*" -exec goimports -w {} \;`
2018-01-24 17:09:17 -08:00
Matthew Hooker
a831d522be
change run signatures
Run now takes a context as well as a statebag. We'll assign the context
to the blank identifier to prevent namespace collisions. We'll let the
step authors opt-in to using the context.

`find . -iname "step_*.go" -exec gsed -i'' 's/func \(.*\)Run(/func \1Run(_ context.Context, /' {} \;`
2018-01-24 17:09:17 -08:00
Matthew Hooker
366dc3da0a
move multistep imports to helper.
gomvpkg -from "github.com/mitchellh/multistep" -to "github.com/hashicorp/packer/helper/multistep"
2018-01-24 17:09:15 -08:00
Matthew Hooker
ebe995c0ff
run goimports 2018-01-22 17:21:10 -08:00
Matthew Hooker
52558e4f75
check for nil body from upload response 2017-11-02 00:13:31 -07:00
Vijaya Bhaskar Reddy Kondreddi
e45223a867 Fix -on-error issue not working.
When we supply -on-error flag for Packer with Hyper-v builder, it does not do anything.
2017-09-01 00:14:28 +05:30
Matthew Hooker
943e8e648a
properly handle decode error 2017-08-07 11:09:40 -07:00
Luke Farnell
d9a5b69403 clean up ineffectual assignments 2017-08-07 13:20:01 -04:00
Matthew Hooker
4b4c2e4a59 Merge pull request #5008 from hashicorp/pp-vc-u1
post-processor/vagrant-cloud: try upload once
2017-06-13 11:36:42 -07:00
Matthew Hooker
94d7a4ce8d
post-processor/vagrant-cloud: try upload once
* fixes multiple uploads mentioned in #4973
* removed unused token code
2017-06-12 17:34:32 -07:00
Matthew Hooker
519256feb0
add content-length to file upload 2017-06-12 15:01:19 -07:00
Matthew Hooker
a1747c21f7
vagrant-cloud: use less memory when uploading 2017-06-12 11:07:33 -07:00
Matthew Hooker
dde40d54c6
atlas cloud token warn 2017-06-07 17:20:54 -07:00
Matthew Hooker
81522dced0
move packer to hashicorp 2017-04-04 13:39:01 -07:00
Matthew Hooker
230079f73a
spell fixes 2017-03-28 20:36:19 -07:00
Chris Bednarski
644b11805d Fix go vet casing issue 2016-07-30 17:10:16 -07:00
Mitchell Hashimoto
5241d8c6d6 post-processor/*: fix interpolation context 2015-06-22 12:24:55 -07:00
Mitchell Hashimoto
f6660e8a4f post-processor/vagrant-cloud: retry uploads [GH-2167] 2015-06-18 10:25:47 +02:00
Mitchell Hashimoto
e728c09301 post-processor/vagrant-cloud: in error, don't delete version [GH-2014] 2015-05-29 13:30:52 -07:00
Mitchell Hashimoto
dc1e67b6d2 post-processor/*: interpolation 2015-05-27 14:56:22 -07:00
Emil Hessman
8144c92dd0 post-processor/vagrant-cloud: fix incorrect printf verb types
Fixes the following vet reports:

post-processor/vagrant-cloud/client.go:81: arg resp for printf verb %s of wrong type: *net/http.Response
post-processor/vagrant-cloud/client.go:99: arg resp for printf verb %s of wrong type: *net/http.Response
post-processor/vagrant-cloud/client.go:131: arg resp for printf verb %s of wrong type: *net/http.Response
post-processor/vagrant-cloud/client.go:156: arg resp for printf verb %s of wrong type: *net/http.Response
post-processor/vagrant-cloud/client.go:175: arg resp for printf verb %s of wrong type: *net/http.Response
2015-02-25 05:43:18 +01:00
Johannes Graf
277632ad99 Removed version.number / vagrant-cloud post-processor
A few weeks ago ... the version.number changed from an integer to a
semver based string.

I guess version.number and version.version are equals now. So
version.version can be used.

This commit should fix #1735
2014-12-27 15:30:34 +01:00
Mitchell Hashimoto
0db6cd3533 Merge pull request #1330 from qur/qemu-vagrant
Qemu vagrant
2014-10-28 08:42:17 -07:00
Mitchell Hashimoto
e422a45449 fmt 2014-10-28 08:35:21 -07:00
Mitchell Hashimoto
6a1744a1d2 Merge pull request #1385 from Mayflower/vagrantcloud_selfhosted
Vagrantcloud selfhosted
2014-10-27 17:12:21 -07:00
Julian Phillips
90a57c411f Expand Artifact API to expose build state
In order that something consuming an artifact can have access to extra
builder specific data add the State method which allows the caller to
ask for arbitary values by name.
2014-09-22 11:15:47 +01:00
Chris Farmiloe
51f55dda48 fix panic when vagrant cloud response fails 2014-08-12 18:11:27 +02:00
Tristan Helmich
7816fc0bf9 vagrantcloud post-processor selfhosted box feature 2014-08-02 15:02:12 +02:00
Jack Pearkes
e62e122625 post-processor/vagrant-cloud: fix multi-part corruption 2014-07-21 10:30:51 -04:00
Jack Pearkes
e528cd7c8c post-processor/vagrant-cloud: fix artifact 2014-06-25 12:49:44 -04:00
Jack Pearkes
46535e3a3c post-processor/vagrant-cloud: better logging, document vcloud url 2014-06-25 12:46:25 -04:00
Jack Pearkes
450ba0bd9d post-processor/vagrant-cloud: improve error for upload failures 2014-06-25 11:54:49 -04:00