The most likely cause of issues between windows and linux is line terminators. If you check in your script files in windows, they will probably get converted to lf line endings and that may break when they are checkout out in linux and copied 1:1 to a windows machine.
Not sure how Powershell handles that though. On Friday, September 8, 2017 at 6:09:15 PM UTC+2, Rickard von Essen wrote: > > There have been some bugs around path separators etc. But there should be > no differences in how communication is handled. If you can repo this it's > nice if you open an issue on https://github.com/hashicorp/packer and > supply the requested info. I guess it's interesting to compare a packer log > (PACKER_LOG=1 packer build template.json) between Windows and Linux. > > // Rickard > > On 8 September 2017 at 16:55, <[email protected] <javascript:>> > wrote: > >> Hi Guys, >> >> Has anyone found instances where the same Packer build code (.json >> template and associated scripts) behaves differently when run on Windows or >> Linux? >> >> I develop my builds on a Windows laptop (primarily Windows server OS >> builds using vmware-iso builder), commit code to our git repository, and >> then schedule future periodic builds via Jenkins (running Linux slaves). >> My Windows laptop and the Red Hat Jenkins slave are running Packer v1.0.3. >> >> I often have issues running PowerShell provisioner scripts such as one to >> create a scheduled tasks to perform Windows Updates. Works fine on my >> machine, but inexplicably exits with exit code 1 when building on the Linux >> VM. >> >> Any ideas where to start looking? >> >> Dan >> >> ********************************************************************** >> This email is confidential and may contain copyright material of the John >> Lewis Partnership. >> If you are not the intended recipient, please notify us immediately and >> delete all copies of this message. >> (Please note that it is your responsibility to scan this message for >> viruses). Email to and from the >> John Lewis Partnership is automatically monitored for operational and >> lawful business reasons. >> ********************************************************************** >> >> John Lewis plc >> Registered in England 233462 >> Registered office 171 Victoria Street London SW1E 5NN >> <https://maps.google.com/?q=171+Victoria+Street+London+SW1E+5NN&entry=gmail&source=g> >> >> Websites: https://www.johnlewis.com >> http://www.waitrose.com >> https://www.johnlewisfinance.com >> http://www.johnlewispartnership.co.uk >> >> ********************************************************************** >> >> -- >> 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 [email protected] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/packer-tool/58225638-cd5c-43bc-ad15-0461ec6957ed%40googlegroups.com >> >> <https://groups.google.com/d/msgid/packer-tool/58225638-cd5c-43bc-ad15-0461ec6957ed%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/92119ae3-c397-4c9c-ba7b-afa5ea265e00%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
