Jenkins and Packer

24 views
Skip to first unread message

Pietto Vasco

unread,
Aug 21, 2019, 5:03:11 PM8/21/19
to Packer
I have a strange issue where i can run packer from the cmdline without issue. 

But when i setup a jenkins to job schedule the build it fails to build. I tried with the packer plugin and without

Running as SYSTEM
Building in workspace C:\Program Files (x86)\Jenkins\workspace\packer build 2
[packer build 2] $ cmd /c call C:\Windows\TEMP\jenkins5282781951821865303.bat
 
C:\Program Files (x86)\Jenkins\workspace\packer build 2>packer build C:\Users\Administrator\Documents\vaec-amiauto\vaec-encryptedcrispami.json 
Failed to initialize build 'amazon-ebs': provisioner type not found: windows-update
amazon-ebs output will be in this color.
 
 
==> Builds finished but no artifacts were created.
 
C:\Program Files (x86)\Jenkins\workspace\packer build 2>exit 0 
Finished: SUCCESS

Attached is my packer plugin config




packerjenkins.PNG

Rickard von Essen

unread,
Aug 22, 2019, 12:22:47 AM8/22/19
to packe...@googlegroups.com
It seems like you have an old version of Packer. Remove it and install a new version. Also add packer version to the top of your script. 

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/78116bd3-e3f6-4277-adf6-e91f527a7ff1%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages