I don't about why this issue is coming, but what I did in Jenkins job shell 
execution:-
1 . which packer -- in this, it is running from /usr/sbin/packer which is 
pointing to ---> cracklib-packer.
2.  but I installed the packer and copy that to /usr/bin/ directory, so in 
Jenkins job I did */usr/bin/packer* to run any packer command in my Jenkins 
job. In my case, it is working.


Thanks, @Yannas


On Thursday, July 2, 2015 at 2:52:47 PM UTC+5:30, Yannis Lionis wrote:
>
> I'm running packer in a Jenkins build by executing "packer build 
> template.file" in a Shell build step.
>
> My problem is that the output of the command that appears when I execute 
> this in my dev environment is nowhere to be found. Instead, the Jenkins 
> build console contains this:
>
> + packer build template.file
> 0 0
> Finished: SUCCESS
>
>
> On top of it, the packer build actually fails, but the Jenkins build shows 
> successful.
>
> I subsequently discovered the Packer Jenkins plugin and installed it. Same 
> issue, the output in the Jenkins console does not contain the information 
> displayed when I execute manually, it looks lie this:
>
> $ /var/lib/jenkins/packer/packer build 
> /var/lib/jenkins/workspace/template.file
> FATAL: Execution failed: /var/lib/jenkins/packer/packer build 
> /var/lib/jenkins/workspace/template.fileFinished 
> <http://stacktrace.jenkins-ci.org/search?query=Finished>: FAILURE
> Build step 'Packer' marked build as failure
> Finished: FAILURE
>
>
> Any ideas?
>
> Yannis
>
>
>
-- 
**Note:** This message is the property of HashedIn and its subsidiaries. It 
may be legally privileged and/or confidential and is intended only for the 
use of the addressee(s). No addressee should forward, print, copy, or 
otherwise reproduce this message in any manner that would allow it to be 
viewed by any individual not originally listed as a recipient. If the 
reader of this message is not the intended recipient, you are hereby 
notified that any unauthorized disclosure, dissemination, distribution, 
copying or the taking of any action in reliance on the information herein 
is strictly prohibited. If you have received this communication in error, 
please immediately notify the sender and delete this message.

-- 
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/hashicorp/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/53589c1a-f851-45f5-b03a-8afe44a3d9cdo%40googlegroups.com.

Reply via email to