Re: [packer] Continue on error during post-processing

2020-01-22 Thread Rickard von Essen
The -on-error argument is for troubleshooting not something you should use
by default.

If you want to ignore error just ensures that your script returns 0. On a
posix system that would just be ending your script with exit 0. (I have no
idea how to do that in Powershell)

But it think you should step back and think of the consequences of doing
this. If you allow your scripts to fail you won't know what's in your image
anymore which is the main reason of building the image from source in the
first place.

On Wed, Jan 22, 2020, 20:16 Chad Sylvester  wrote:

> I have a Packer build job for a Windows 2016 image.  The build and
> configuration works well.  The Processing works well.  Sometimes I get
> errors in the Post-Processing.  Maybe the site I'm trying to upload to is
> down or something else is wrong.  I'd like to be able to tell Packer to
> continue running the Post-Processing even when it runs into an error.  I
> hope I'm understanding Packer correctly, but the only item I see related to
> this topic is the "on-error=something".  The only options
> are: -on-error=cleanup, -on-error=abort, -on-error=ask.  I don't want it to
> cleanup, abort, or ask me to retry.  I'd like to either retry or simply
> continue.  I don't see either of these as options currently.
>
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in
> violation of those guidelines may result in your removal from this mailing
> list.
>
> GitHub Issues: https://github.com/mitchellh/packer/issues
> IRC: #packer-tool on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Packer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to packer-tool+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/packer-tool/3cae1149-d0b9-4455-9c0a-cb72d03d6d2f%40googlegroups.com
> 
> .
>

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to packer-tool+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/CALz9Rt9-02R0rQ9p%3DZLR8yd%2BCBLqSrayyJYv36qE78Q2Y0Pe4g%40mail.gmail.com.


[packer] Continue on error during post-processing

2020-01-22 Thread Chad Sylvester
I have a Packer build job for a Windows 2016 image.  The build and 
configuration works well.  The Processing works well.  Sometimes I get 
errors in the Post-Processing.  Maybe the site I'm trying to upload to is 
down or something else is wrong.  I'd like to be able to tell Packer to 
continue running the Post-Processing even when it runs into an error.  I 
hope I'm understanding Packer correctly, but the only item I see related to 
this topic is the "on-error=something".  The only options 
are: -on-error=cleanup, -on-error=abort, -on-error=ask.  I don't want it to 
cleanup, abort, or ask me to retry.  I'd like to either retry or simply 
continue.  I don't see either of these as options currently.

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to packer-tool+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/3cae1149-d0b9-4455-9c0a-cb72d03d6d2f%40googlegroups.com.