Not sure if this is the case for you or not, but I recently worked with this cookbook/LWRP and noticed I had to be careful with my plugin dependencies. A plugin will not install on Jenkins unless it's dependent plugins are first installed. So, the ordering of your array is very important here.
Curtis
--
From: Stephen Nelson-Smith < " target="_blank"> >
Sent: Thursday, February 20, 2014 8:50 AM
To: " target="_blank">
Subject: [chef] Jenkins Plugin ActionsOhai,
So, I'm using the shiny new Jenkins cookbook, specifically the jenkins_plugin LWRP. I notice this now has both an install action and an enable action. I have an array of plugins I want to install. I tried:
array_of_plugins.each do |plugin|jenkins_plugin plugin doaction [:install, :enable]endend
This failed, saying that the first plugin wasn't installed, so couldn't be enabled. Really? So, I tried:
array_of_plugins.each do |plugin|jenkins_plugin plugin doaction [:install]end
jenkins_plugin plugin doaction [:enable]endend
This also failed, in a similar fashion. So it's come to this?
array_of_plugins.each do |plugin|jenkins_plugin plugin doaction [:install]endend
array_of_plugins.each do |plugin|jenkins_plugin plugin doaction [:enable]endend
This works! But I see a rash of CHEF-3694 cloning warnings.
What the actual fsck?
What am I missing?
S.
Archive powered by MHonArc 2.6.16.