- From: Michael Hayes <
>
- To: "
" <
>
- Subject: [chef] Error executing action `run` - jenkins_cli
- Date: Fri, 6 Sep 2013 12:15:27 -0500
Not sure why I can't call this jenkins_cli command (it's literally from the
sample code on github. Could it be authentication related?
In my cookbook: recipes/jenkins.rb
include_recipe "jenkins"
%w{ git github }.each do |plugin|
jenkins_cli "install-plugin #{plugin}"
jenkins_cli "safe-restart"
end
Chef Solo output:
* jenkins_execute[java -jar /home/jenkins/jenkins-cli.jar -s
http://syncopated-soaring:8080 install-plugin git] action run
================================================================================
Error executing action `run` on resource 'jenkins_execute[java -jar
/home/jenkins/jenkins-cli.jar -s
http://syncopated-soaring:8080
install-plugin git]'
================================================================================
Chef::Exceptions::Exec
----------------------
java -jar /home/jenkins/jenkins-cli.jar -s
http://syncopated-soaring:8080
install-plugin git returned 1, expected 0
Cookbook Trace:
---------------
/root/chef-solo/cookbooks-1/jenkins/providers/execute.rb:46:in `action_run'
Resource Declaration:
---------------------
# In /root/chef-solo/cookbooks-1/jenkins/providers/cli.rb
49: jenkins_execute command do
50: cwd home
51: block { |stdout| new_resource.block.call(stdout) } if
new_resource.block
52: end
53: end
Compiled Resource:
------------------
# Declared in /root/chef-solo/cookbooks-1/jenkins/providers/cli.rb:49:in
`action_run'
jenkins_execute("java -jar /home/jenkins/jenkins-cli.jar -s
http://syncopated-soaring:8080 install-plugin git") do
action :run
retries 0
retry_delay 2
command "java -jar /home/jenkins/jenkins-cli.jar -s
http://syncopated-soaring:8080 install-plugin git"
cookbook_name :rackbox
cwd "/home/jenkins"
end
[2013-09-06T16:12:03+00:00] ERROR: Running exception handlers
[2013-09-06T16:12:03+00:00] ERROR: Exception handlers complete
[2013-09-06T16:12:03+00:00] FATAL: Stacktrace dumped to
/var/chef/cache/chef-stacktrace.out
Chef Client failed. 5 resources updated
[2013-09-06T16:12:03+00:00] FATAL: Chef::Exceptions::ChildConvergeError:
Chef run process exited unsuccessfully (exit code 1)
- [chef] Error executing action `run` - jenkins_cli, Michael Hayes, 09/06/2013
Archive powered by MHonArc 2.6.16.