Cannot run program "build" - Jenkins fails to run Packer build

144 views
Skip to first unread message

Erick Kendall

unread,
May 19, 2019, 9:24:06 PM5/19/19
to Packer
I can run the packer build command from the command line but when I use a Jenkins job I get the following.

I am pulling the build file from a Github repo - the workspace directory exist and I can run the build manually





2019-05-20 01:12:48.673+0000 [id=187] SEVERE b.n.j.p.packer.PackerPublisher#perform: java.io.IOException: Cannot run program "build" (in directory "/var/lib/jenkins/workspace/test"): error=2, No such file or directory

at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)

Rickard von Essen

unread,
May 20, 2019, 12:17:17 AM5/20/19
to packe...@googlegroups.com
Seems like you are missing the word packer in front of build? Can you give some more information on your setup, are you using a plugin for Jenkins? How is that configured? 

--
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/66904d8f-9a67-45da-9165-8b0cd05467a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Erick Kendall

unread,
May 20, 2019, 7:57:45 AM5/20/19
to Packer

Screen Shot 2019-05-20 at 6.48.35 AM.png




The plugin config, below - doesn't matter whether I use the Packer installed under /usr/local/bin or choose to download

Screen Shot 2019-05-20 at 6.55.16 AM.png




On Sunday, May 19, 2019 at 11:17:17 PM UTC-5, Rickard von Essen wrote:
Seems like you are missing the word packer in front of build? Can you give some more information on your setup, are you using a plugin for Jenkins? How is that configured? 

On Mon, May 20, 2019, 03:24 Erick Kendall <ekenda...@gmail.com> wrote:
I can run the packer build command from the command line but when I use a Jenkins job I get the following.

I am pulling the build file from a Github repo - the workspace directory exist and I can run the build manually





2019-05-20 01:12:48.673+0000 [id=187] SEVERE b.n.j.p.packer.PackerPublisher#perform: java.io.IOException: Cannot run program "build" (in directory "/var/lib/jenkins/workspace/test"): error=2, No such file or directory

at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)

--
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 packe...@googlegroups.com.

Erick Kendall

unread,
May 20, 2019, 8:15:16 AM5/20/19
to Packer

You were right - thank you! I could find, Packer :( I failed to test adequately - completely my fault. I added /usr/local/bin to the plugin configuration - works now. 
Reply all
Reply to author
Forward
0 new messages