Jenkins Chef recipe

I’ve been trying to setup a recipe to install Jenkins, install two plugs (git and github) and then setup a repository to accept webhooks from.

Jenkins cli has an issue with my hostname that it tries to use in the url (which is not resolvable).

If I set my ‘hostname’ to ‘0.0.0.0’ and run ‘knife solo cook’ on the recipe twice, it fails the first time and succeeds the second time.

Here’s my recipe:

The question is, is there any way to get chef to do the entire jenkins setup before running my plugin install (an other setup), or do a simply have to run chef once (to a failure) and then a second time to success?

have you tried the plugins attribute? i am using it with ghprb plugins and
we have a wrapper cookbooks that uses the jenkins_job (rails, and jvm) ,
and it works pretty smooth for me.

On Mon, Sep 16, 2013 at 3:22 PM, Michael Hayes hayesmp@thefrontside.netwrote:

I've been trying to setup a recipe to install Jenkins, install two plugs
(git and github) and then setup a repository to accept webhooks from.

Jenkins cli has an issue with my hostname that it tries to use in the url
(which is not resolvable).

If I set my 'hostname' to '0.0.0.0' and run 'knife solo cook' on the
recipe twice, it fails the first time and succeeds the second time.

Here's my recipe:

jenkinsbox-cookbook/recipes/jenkins.rb at master · hayesmp/jenkinsbox-cookbook · GitHub

The question is, is there any way to get chef to do the entire jenkins
setup before running my plugin install (an other setup), or do a simply
have to run chef once (to a failure) and then a second time to success?