Ohai,
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 do
action [:install, :enable]
end
end
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 do
action [:install]
end
jenkins_plugin plugin do
action [:enable]
end
end
This also failed, in a similar fashion. So it’s come to this?
array_of_plugins.each do |plugin|
jenkins_plugin plugin do
action [:install]
end
end
array_of_plugins.each do |plugin|
jenkins_plugin plugin do
action [:enable]
end
end
This works! But I see a rash of CHEF-3694 cloning warnings.
What the actual fsck?
What am I missing?
S.
Stephen Nelson-Smith
@LordCope
http://www.agilesysadmin.net
?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 stephen@atalanta-systems.com
Sent: Thursday, February 20, 2014 8:50 AM
To: chef@lists.opscode.com
Subject: [chef] Jenkins Plugin Actions
Ohai,
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 do
action [:install, :enable]
end
end
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 do
action [:install]
end
jenkins_plugin plugin do
action [:enable]
end
end
This also failed, in a similar fashion. So it’s come to this?
array_of_plugins.each do |plugin|
jenkins_plugin plugin do
action [:install]
end
end
array_of_plugins.each do |plugin|
jenkins_plugin plugin do
action [:enable]
end
end
This works! But I see a rash of CHEF-3694 cloning warnings.
What the actual fsck?
What am I missing?
S.
Stephen Nelson-Smith
@LordCope
http://www.agilesysadmin.net
Yeah that's absolutely the case, but not the issue here. The first plugin
on the array, which displayed the issue described, is 'rebuild', which has
no dependencies.
S.
On 20 February 2014 15:16, Stewart, Curtis cstewart@momentumsi.com wrote:
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 stephen@atalanta-systems.com
Sent: Thursday, February 20, 2014 8:50 AM
To: chef@lists.opscode.com
Subject: [chef] Jenkins Plugin Actions
Ohai,
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 do
action [:install, :enable]
end
end
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 do
action [:install]
end
jenkins_plugin plugin do
action [:enable]
end
end
This also failed, in a similar fashion. So it's come to this?
array_of_plugins.each do |plugin|
jenkins_plugin plugin do
action [:install]
end
end
array_of_plugins.each do |plugin|
jenkins_plugin plugin do
action [:enable]
end
end
This works! But I see a rash of CHEF-3694 cloning warnings.
What the actual fsck?
What am I missing?
S.
Stephen Nelson-Smith
@LordCope
http://www.agilesysadmin.net
--
Stephen Nelson-Smith,
Founder, Principal Consultant,
Atalanta Systems Ltd,
Web: http://agilesysadmin.net
Twitter: @lordcope
Skype: atalanta.systems
Direct: +44 (0) 1329 550203
Mobile: +44 (0) 7917 101919
Atalanta Systems: The Agile Infrastructure Enablers
http://atalanta-systems.com
Stephen,
An install action should be all you need. The Jenkins system log at
$JENKINS_URL/log/all might give a clue also.
Please open a GithHub issue and Chef's Release Engineering team
(maintainers of that cookbook) will take a look.
--Seth
On Thu, Feb 20, 2014 at 10:21 AM, Stephen Nelson-Smith <
stephen@atalanta-systems.com> wrote:
Yeah that's absolutely the case, but not the issue here. The first plugin
on the array, which displayed the issue described, is 'rebuild', which has
no dependencies.
S.
On 20 February 2014 15:16, Stewart, Curtis cstewart@momentumsi.comwrote:
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 stephen@atalanta-systems.com
Sent: Thursday, February 20, 2014 8:50 AM
To: chef@lists.opscode.com
Subject: [chef] Jenkins Plugin Actions
Ohai,
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 do
action [:install, :enable]
end
end
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 do
action [:install]
end
jenkins_plugin plugin do
action [:enable]
end
end
This also failed, in a similar fashion. So it's come to this?
array_of_plugins.each do |plugin|
jenkins_plugin plugin do
action [:install]
end
end
array_of_plugins.each do |plugin|
jenkins_plugin plugin do
action [:enable]
end
end
This works! But I see a rash of CHEF-3694 cloning warnings.
What the actual fsck?
What am I missing?
S.
Stephen Nelson-Smith
@LordCope
http://www.agilesysadmin.net
--
Stephen Nelson-Smith,
Founder, Principal Consultant,
Atalanta Systems Ltd,
Web: http://agilesysadmin.net
Twitter: @lordcope
Skype: atalanta.systems
Direct: +44 (0) 1329 550203
Mobile: +44 (0) 7917 101919
Atalanta Systems: The Agile Infrastructure Enablers
http://atalanta-systems.com