Hi,
I'm setting up a jenkins server using the 1.0.0 cookbook version.
I don't fully understand, what the best way to manage plugins would be.
There seem to be two ways [1]:
> * node['jenkins']['server']['plugins'] - Download the latest version of plugins in this Array, bypassing update center. The members of the Array can either be strings if the latest version desired OR a Hash of the form {'name' => 'git', 'version' => '1.4.0'} if a specific version is required.
>
> * jenkins_cli
> This resource can be used to execute the Jenkins cli from your recipes. For example, install plugins via update center and restart Jenkins:
>
> %w{ git URLSCM build-publisher }.each do |plugin|
> jenkins_cli "install-plugin #{plugin}"
> jenkins_cli "safe-restart"
> end
When I use the first way, defining the plugins through the attributes,
they are downloaded, but seem not to be enabled. What does "bypassing
update center" mean? They will not be visible there? But in my case the
added functionality also wasn't available.
With jenkins_cli, I can install them, but this resource seems to be
updated every time then (resulting in a safe-restart for every single
plugin during every chef-run.
Am I getting sth. wrong? What's they way you recommend?
If it's the first one, how can I then activate the downloaded plugins?
Thanks
Steffen
--
[1] https://github.com/opscode-cookbooks/jenkins
Archive powered by MHonArc 2.6.16.