# NoMethodError

**URL:** <https://discourse.chef.io/t/nomethoderror/6655>\
**Category:** Chef Infra (archive)\
**Created:** [June 12, 2015, 8:53pm UTC](https://discourse.chef.io/t/nomethoderror/6655 "2015-06-12T20:53:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![okram999](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/okram999/32/1083_2.png) [@okram999](https://discourse.chef.io/u/okram999)\
**Post date:** [June 12, 2015, 8:53pm UTC](https://discourse.chef.io/t/nomethoderror/6655/1 "2015-06-12T20:53:20Z")

</div>

Hi there,

my kitchen test is failing while installing a jenkins plugin,  
parameterized-trigger. this is the block that calls the plugins: I am using  
the community jenkins cookbook

unless node['jenkins']['plugins'].nil?  
node['jenkins']['plugins'].each do |plugin, version|  
case version  
when 'latest'  
jenkins\_plugin plugin do  
notifies :restart, "service[jenkins]", :delayed  
end  
else  
jenkins\_plugin plugin do  
version version  
notifies :restart, "service[jenkins]", :delayed  
end  
end  
end  
end

And the plugins are defined as below in the attributes

default['jenkins']['plugins'] = {  
'ant' =\> 'latest',  
'collabnet' =\> 'latest',  
'credentials' =\> 'latest',  
'cvs' =\> 'latest',  
'deploy' =\> '1.9',  
'external-monitor-job' =\> 'latest',  
'git-client' =\> '1.10.1',  
'git' =\> '2.2.5',  
'greenballs' =\> 'latest',  
'javadoc' =\> 'latest',  
'ldap' =\> 'latest',  
'mailer' =\> 'latest',  
'mapdb-api' =\> 'latest',  
'matrix-auth' =\> 'latest',  
'matrix-project' =\> 'latest',  
'maven-plugin' =\> '2.6',  
'm2release' =\> 'latest',  
'antisamy-markup-formatter' =\> 'latest',  
'pam-auth' =\> 'latest',  
_'parameterized-trigger' =\> 'latest',_  
'promoted-builds' =\> 'latest',  
'ruby-runtime' =\> 'latest',  
'scm-api' =\> 'latest',  
'ssh-agent' =\> 'latest',  
'ssh-credentials' =\> 'latest',  
'ssh-slaves' =\> 'latest',  
'subversion' =\> 'latest',  
'translation' =\> 'latest',  
'windows-slaves' =\> 'latest'  
}

Below is the chef log from the console.

- jenkins\_plugin[parameterized-trigger] action install  
[2015-06-12T21:42:06+01:00] INFO: Processing  
jenkins\_plugin[parameterized-trigger] action install  
(my\_jenkins::jenkins\_master line 149)

================================================================================  
Error executing action `install` on resource  
'jenkins\_plugin[parameterized-trigger]'

================================================================================

```
NoMethodError
       -------------
undefined method `[]' for nil:NilClass

       Cookbook Trace:
       ---------------
       /tmp/kitchen/cookbooks/jenkins/libraries/plugin.rb:258:in

```

`install\_plugin\_from\_update\_center'

/tmp/kitchen/cookbooks/jenkins/libraries/plugin.rb:124:in `block (2 levels)  
in class:JenkinsPlugin'

```
   /tmp/kitchen/cookbooks/jenkins/libraries/plugin.rb:155:in `block in

```

class:JenkinsPlugin'

```
       Resource Declaration:
---------------------
       # In /tmp/kitchen/cookbooks/my_jenkins/recipes/jenkins_master.rb

149: jenkins_plugin plugin do

   150: notifies :restart, "service[jenkins]", :delayed
       151: end
       152: else

Compiled Resource:
       ------------------
       # Declared in

```

/tmp/kitchen/cookbooks/my\_jenkins/recipes/jenkins\_master.rb:149:in `block  
in from\_file'

```
       jenkins_plugin("parameterized-trigger") do
         action :install

         retries 0

         retry_delay 2

         guard_interpreter :default

         cookbook_name :"my_jenkins"

         recipe_name "jenkins_master"

         version :latest

         install_deps true

       end

   [2015-06-12T21:42:06+01:00] INFO: Running queued delayed

```

notifications before re-raising exception  
[2015-06-12T21:42:06+01:00] INFO: jenkins\_plugin[maven-plugin]  
sending restart action to service[jenkins] (delayed)

- service[jenkins] action restart [2015-06-12T21:42:06+01:00] INFO:  
Processing service[jenkins] action restart (my\_jenkins::jenkins\_master line

1. [2015-06-12T21:42:07+01:00] INFO: service[jenkins] restarted

```
- restart service service[jenkins]

   Running handlers:
   [2015-06-12T21:42:07+01:00] ERROR: Running exception handlers
   Running handlers complete
   [2015-06-12T21:42:07+01:00] ERROR: Exception handlers complete
   [2015-06-12T21:42:07+01:00] FATAL: Stacktrace dumped to

```

/tmp/kitchen/cache/chef-stacktrace.out  
Chef Client failed. 15 resources updated in 88.662186983 seconds  
[2015-06-12T21:42:07+01:00] ERROR:  
jenkins\_plugin[parameterized-trigger] (my\_jenkins::jenkins\_master line 149)  
had an error: NoMethodError: undefined method `' for nil:NilClass  
[2015-06-12T21:42:07+01:00] FATAL:  
Chef::Exceptions::ChildConvergeError: Chef run process exited  
unsuccessfully (exit code 1)

> > > > > > ## Converge failed on instance . Please see .kitchen/logs/jenkins-master-centos.log for more details ------Exception------- Class: Kitchen::ActionFailed Message: SSH exited (1) for command: [sudo -E chef-solo --config /tmp/kitchen/solo.rb --json-attributes /tmp/kitchen/dna.json --log\_level info]

Any idea, where this plugin alone is faulting?

---

<div class="post-metadata">

**Author:** ![okram999](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/okram999/32/1083_2.png) [@okram999](https://discourse.chef.io/u/okram999)\
**Post date:** [June 12, 2015, 8:59pm UTC](https://discourse.chef.io/t/nomethoderror/6655/2 "2015-06-12T20:59:49Z")

</div>

So, if i comment out the faulting plugin as below in the attributes, it  
converges fine

default['jenkins']['plugins'] = {  
'ant' =\> 'latest',  
'collabnet' =\> 'latest',  
'credentials' =\> 'latest',  
'cvs' =\> 'latest',  
'deploy' =\> '1.9',  
'external-monitor-job' =\> 'latest',  
'git-client' =\> '1.10.1',  
'git' =\> '2.2.5',  
'greenballs' =\> 'latest',  
'javadoc' =\> 'latest',  
'ldap' =\> 'latest',  
'mailer' =\> 'latest',  
'mapdb-api' =\> 'latest',  
'matrix-auth' =\> 'latest',  
'matrix-project' =\> 'latest',  
'maven-plugin' =\> '2.6',  
'm2release' =\> 'latest',  
'antisamy-markup-formatter' =\> 'latest',  
'pam-auth' =\> 'latest',  
#'parameterized-trigger' =\> 'latest',  
'promoted-builds' =\> 'latest',  
'ruby-runtime' =\> 'latest',  
'scm-api' =\> 'latest',  
'ssh-agent' =\> 'latest',  
'ssh-credentials' =\> 'latest',  
'ssh-slaves' =\> 'latest',  
'subversion' =\> 'latest',  
'translation' =\> 'latest',  
'windows-slaves' =\> 'latest'  
}

Is this a plugin related error? any thoughts\>

On Fri, Jun 12, 2015 at 1:53 PM, niristotle okram [nirish.okram@gmail.com](mailto:nirish.okram@gmail.com)  
wrote:

> Hi there,
> 
> my kitchen test is failing while installing a jenkins plugin,  
> parameterized-trigger. this is the block that calls the plugins: I am using  
> the community jenkins cookbook
> 
> unless node['jenkins']['plugins'].nil?  
> node['jenkins']['plugins'].each do |plugin, version|  
> case version  
> when 'latest'  
> jenkins\_plugin plugin do  
> notifies :restart, "service[jenkins]", :delayed  
> end  
> else  
> jenkins\_plugin plugin do  
> version version  
> notifies :restart, "service[jenkins]", :delayed  
> end  
> end  
> end  
> end
> 
> And the plugins are defined as below in the attributes
> 
> default['jenkins']['plugins'] = {  
> 'ant' =\> 'latest',  
> 'collabnet' =\> 'latest',  
> 'credentials' =\> 'latest',  
> 'cvs' =\> 'latest',  
> 'deploy' =\> '1.9',  
> 'external-monitor-job' =\> 'latest',  
> 'git-client' =\> '1.10.1',  
> 'git' =\> '2.2.5',  
> 'greenballs' =\> 'latest',  
> 'javadoc' =\> 'latest',  
> 'ldap' =\> 'latest',  
> 'mailer' =\> 'latest',  
> 'mapdb-api' =\> 'latest',  
> 'matrix-auth' =\> 'latest',  
> 'matrix-project' =\> 'latest',  
> 'maven-plugin' =\> '2.6',  
> 'm2release' =\> 'latest',  
> 'antisamy-markup-formatter' =\> 'latest',  
> 'pam-auth' =\> 'latest',  
> _'parameterized-trigger' =\> 'latest',_  
> 'promoted-builds' =\> 'latest',  
> 'ruby-runtime' =\> 'latest',  
> 'scm-api' =\> 'latest',  
> 'ssh-agent' =\> 'latest',  
> 'ssh-credentials' =\> 'latest',  
> 'ssh-slaves' =\> 'latest',  
> 'subversion' =\> 'latest',  
> 'translation' =\> 'latest',  
> 'windows-slaves' =\> 'latest'  
> }
> 
> Below is the chef log from the console.
> 
> - jenkins\_plugin[parameterized-trigger] action install  
> [2015-06-12T21:42:06+01:00] INFO: Processing  
> jenkins\_plugin[parameterized-trigger] action install  
> (my\_jenkins::jenkins\_master line 149)
> 
> ================================================================================  
> Error executing action `install` on resource  
> 'jenkins\_plugin[parameterized-trigger]'
> 
> ================================================================================
> 
> ```
> NoMethodError
> -------------
> undefined method `[]' for nil:NilClass
> 
> Cookbook Trace:
> ---------------
> /tmp/kitchen/cookbooks/jenkins/libraries/plugin.rb:258:in
> 
> ```
> 
> `install\_plugin\_from\_update\_center'
> 
> /tmp/kitchen/cookbooks/jenkins/libraries/plugin.rb:124:in `block (2  
> levels) in class:JenkinsPlugin'
> 
> ```
> /tmp/kitchen/cookbooks/jenkins/libraries/plugin.rb:155:in `block in
> 
> ```
> 
> class:JenkinsPlugin'
> 
> ```
> Resource Declaration:
> ---------------------
> # In /tmp/kitchen/cookbooks/my_jenkins/recipes/jenkins_master.rb
> 
> 149: jenkins_plugin plugin do
> 
> 150: notifies :restart, "service[jenkins]", :delayed
> 151: end
> 152: else
> 
> Compiled Resource:
> ------------------
> # Declared in
> 
> ```
> 
> /tmp/kitchen/cookbooks/my\_jenkins/recipes/jenkins\_master.rb:149:in `block  
> in from\_file'
> 
> ```
> jenkins_plugin("parameterized-trigger") do
> action :install
> 
> retries 0
> 
> retry_delay 2
> 
> guard_interpreter :default
> 
> cookbook_name :"my_jenkins"
> 
> recipe_name "jenkins_master"
> 
> version :latest
> 
> install_deps true
> 
> end
> 
> [2015-06-12T21:42:06+01:00] INFO: Running queued delayed
> 
> ```
> 
> notifications before re-raising exception  
> [2015-06-12T21:42:06+01:00] INFO: jenkins\_plugin[maven-plugin]  
> sending restart action to service[jenkins] (delayed)
> 
> - service[jenkins] action restart [2015-06-12T21:42:06+01:00]  
> INFO: Processing service[jenkins] action restart  
> (my\_jenkins::jenkins\_master line 309)  
> [2015-06-12T21:42:07+01:00] INFO: service[jenkins] restarted
> 
> > > > > > > ## Converge failed on instance . Please see .kitchen/logs/jenkins-master-centos.log for more details ------Exception------- Class: Kitchen::ActionFailed Message: SSH exited (1) for command: [sudo -E chef-solo --config /tmp/kitchen/solo.rb --json-attributes /tmp/kitchen/dna.json --log\_level info]
> 
> Any idea, where this plugin alone is faulting?

--  
Regards  
nirish okram

---

<div class="post-metadata">

**Author:** ![Eric\_Helgeson](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/eric_helgeson/32/67_2.png) [@Eric\_Helgeson](https://discourse.chef.io/u/Eric_Helgeson)\
**Post date:** [June 12, 2015, 9:02pm UTC](https://discourse.chef.io/t/nomethoderror/6655/3 "2015-06-12T21:02:15Z")

</div>

Just got the same thing as well, it looks like it's missing from update  
center [https://updates.jenkins-ci.org/current/update-center.json](https://updates.jenkins-ci.org/current/update-center.json)  
and the download stats/links/etc are missing from the plugin page -  
[Parameterized Trigger](https://wiki.jenkins-ci.org/display/JENKINS/Parameterized+Trigger+Plugin)

I tweeted @jenkinsci, though I have no idea how to properly report this 🙂

-Eric Helgeson  
@nulleric [https://twitter.com/nulleric](https://twitter.com/nulleric)  
[https://usingchef.com](https://usingchef.com)

On Fri, Jun 12, 2015 at 3:59 PM, niristotle okram [nirish.okram@gmail.com](mailto:nirish.okram@gmail.com)  
wrote:

> So, if i comment out the faulting plugin as below in the attributes, it  
> converges fine
> 
> default['jenkins']['plugins'] = {  
> 'ant' =\> 'latest',  
> 'collabnet' =\> 'latest',  
> 'credentials' =\> 'latest',  
> 'cvs' =\> 'latest',  
> 'deploy' =\> '1.9',  
> 'external-monitor-job' =\> 'latest',  
> 'git-client' =\> '1.10.1',  
> 'git' =\> '2.2.5',  
> 'greenballs' =\> 'latest',  
> 'javadoc' =\> 'latest',  
> 'ldap' =\> 'latest',  
> 'mailer' =\> 'latest',  
> 'mapdb-api' =\> 'latest',  
> 'matrix-auth' =\> 'latest',  
> 'matrix-project' =\> 'latest',  
> 'maven-plugin' =\> '2.6',  
> 'm2release' =\> 'latest',  
> 'antisamy-markup-formatter' =\> 'latest',  
> 'pam-auth' =\> 'latest',  
> #'parameterized-trigger' =\> 'latest',  
> 'promoted-builds' =\> 'latest',  
> 'ruby-runtime' =\> 'latest',  
> 'scm-api' =\> 'latest',  
> 'ssh-agent' =\> 'latest',  
> 'ssh-credentials' =\> 'latest',  
> 'ssh-slaves' =\> 'latest',  
> 'subversion' =\> 'latest',  
> 'translation' =\> 'latest',  
> 'windows-slaves' =\> 'latest'  
> }
> 
> Is this a plugin related error? any thoughts\>
> 
> On Fri, Jun 12, 2015 at 1:53 PM, niristotle okram [nirish.okram@gmail.com](mailto:nirish.okram@gmail.com)  
> wrote:
> 
> > Hi there,
> > 
> > my kitchen test is failing while installing a jenkins plugin,  
> > parameterized-trigger. this is the block that calls the plugins: I am using  
> > the community jenkins cookbook
> > 
> > unless node['jenkins']['plugins'].nil?  
> > node['jenkins']['plugins'].each do |plugin, version|  
> > case version  
> > when 'latest'  
> > jenkins\_plugin plugin do  
> > notifies :restart, "service[jenkins]", :delayed  
> > end  
> > else  
> > jenkins\_plugin plugin do  
> > version version  
> > notifies :restart, "service[jenkins]", :delayed  
> > end  
> > end  
> > end  
> > end
> > 
> > And the plugins are defined as below in the attributes
> > 
> > default['jenkins']['plugins'] = {  
> > 'ant' =\> 'latest',  
> > 'collabnet' =\> 'latest',  
> > 'credentials' =\> 'latest',  
> > 'cvs' =\> 'latest',  
> > 'deploy' =\> '1.9',  
> > 'external-monitor-job' =\> 'latest',  
> > 'git-client' =\> '1.10.1',  
> > 'git' =\> '2.2.5',  
> > 'greenballs' =\> 'latest',  
> > 'javadoc' =\> 'latest',  
> > 'ldap' =\> 'latest',  
> > 'mailer' =\> 'latest',  
> > 'mapdb-api' =\> 'latest',  
> > 'matrix-auth' =\> 'latest',  
> > 'matrix-project' =\> 'latest',  
> > 'maven-plugin' =\> '2.6',  
> > 'm2release' =\> 'latest',  
> > 'antisamy-markup-formatter' =\> 'latest',  
> > 'pam-auth' =\> 'latest',  
> > _'parameterized-trigger' =\> 'latest',_  
> > 'promoted-builds' =\> 'latest',  
> > 'ruby-runtime' =\> 'latest',  
> > 'scm-api' =\> 'latest',  
> > 'ssh-agent' =\> 'latest',  
> > 'ssh-credentials' =\> 'latest',  
> > 'ssh-slaves' =\> 'latest',  
> > 'subversion' =\> 'latest',  
> > 'translation' =\> 'latest',  
> > 'windows-slaves' =\> 'latest'  
> > }
> > 
> > Below is the chef log from the console.
> > 
> > - jenkins\_plugin[parameterized-trigger] action install  
> > [2015-06-12T21:42:06+01:00] INFO: Processing  
> > jenkins\_plugin[parameterized-trigger] action install  
> > (my\_jenkins::jenkins\_master line 149)
> > 
> > ================================================================================  
> > Error executing action `install` on resource  
> > 'jenkins\_plugin[parameterized-trigger]'
> > 
> > ================================================================================
> > 
> > ```
> > NoMethodError
> > -------------
> > undefined method `[]' for nil:NilClass
> > 
> > Cookbook Trace:
> > ---------------
> > /tmp/kitchen/cookbooks/jenkins/libraries/plugin.rb:258:in
> > 
> > ```
> > 
> > `install\_plugin\_from\_update\_center'
> > 
> > /tmp/kitchen/cookbooks/jenkins/libraries/plugin.rb:124:in `block (2  
> > levels) in class:JenkinsPlugin'
> > 
> > ```
> > /tmp/kitchen/cookbooks/jenkins/libraries/plugin.rb:155:in `block
> > 
> > ```
> > 
> > in class:JenkinsPlugin'
> > 
> > ```
> > Resource Declaration:
> > ---------------------
> > # In
> > 
> > ```
> > 
> > /tmp/kitchen/cookbooks/my\_jenkins/recipes/jenkins\_master.rb
> > 
> > ```
> > 149: jenkins_plugin plugin do
> > 
> > 150: notifies :restart, "service[jenkins]", :delayed
> > 151: end
> > 152: else
> > 
> > Compiled Resource:
> > ------------------
> > # Declared in
> > 
> > ```
> > 
> > /tmp/kitchen/cookbooks/my\_jenkins/recipes/jenkins\_master.rb:149:in `block  
> > in from\_file'
> > 
> > ```
> > jenkins_plugin("parameterized-trigger") do
> > action :install
> > 
> > retries 0
> > 
> > retry_delay 2
> > 
> > guard_interpreter :default
> > 
> > cookbook_name :"my_jenkins"
> > 
> > recipe_name "jenkins_master"
> > 
> > version :latest
> > 
> > install_deps true
> > 
> > end
> > 
> > [2015-06-12T21:42:06+01:00] INFO: Running queued delayed
> > 
> > ```
> > 
> > notifications before re-raising exception  
> > [2015-06-12T21:42:06+01:00] INFO: jenkins\_plugin[maven-plugin]  
> > sending restart action to service[jenkins] (delayed)
> > 
> > - service[jenkins] action restart [2015-06-12T21:42:06+01:00]  
> > INFO: Processing service[jenkins] action restart  
> > (my\_jenkins::jenkins\_master line 309)  
> > [2015-06-12T21:42:07+01:00] INFO: service[jenkins] restarted
> > 
> > > > > > > > ## Converge failed on instance . Please see .kitchen/logs/jenkins-master-centos.log for more details ------Exception------- Class: Kitchen::ActionFailed Message: SSH exited (1) for command: [sudo -E chef-solo --config /tmp/kitchen/solo.rb --json-attributes /tmp/kitchen/dna.json --log\_level info]
> > 
> > Any idea, where this plugin alone is faulting?
> 
> --  
> Regards  
> nirish okram

---

<div class="post-metadata">

**Author:** ![tknerr](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/tknerr/32/21_2.png) [@tknerr](https://discourse.chef.io/u/tknerr)\
**Post date:** [June 13, 2015, 11:14am UTC](https://discourse.chef.io/t/nomethoderror/6655/4 "2015-06-13T11:14:56Z")

</div>

This is fixed by now, the parameterized-triggers plugin is now back in the  
update-center.json

I had the same but slightly more convoluted since it was a transitive  
dependency of another plugin, and the chef run always reported the original  
plugin failing...

Cheers, Torben  
Am 12.06.2015 23:02 schrieb "Eric Helgeson" [erichelgeson@gmail.com](mailto:erichelgeson@gmail.com):

> Just got the same thing as well, it looks like it's missing from update  
> center [https://updates.jenkins-ci.org/current/update-center.json](https://updates.jenkins-ci.org/current/update-center.json)  
> and the download stats/links/etc are missing from the plugin page -  
> [Parameterized Trigger](https://wiki.jenkins-ci.org/display/JENKINS/Parameterized+Trigger+Plugin)
> 
> I tweeted @jenkinsci, though I have no idea how to properly report this 🙂
> 
> -Eric Helgeson  
> @nulleric [https://twitter.com/nulleric](https://twitter.com/nulleric)  
> [https://usingchef.com](https://usingchef.com)
> 
> On Fri, Jun 12, 2015 at 3:59 PM, niristotle okram [nirish.okram@gmail.com](mailto:nirish.okram@gmail.com)  
> wrote:
> 
> > So, if i comment out the faulting plugin as below in the attributes, it  
> > converges fine
> > 
> > default['jenkins']['plugins'] = {  
> > 'ant' =\> 'latest',  
> > 'collabnet' =\> 'latest',  
> > 'credentials' =\> 'latest',  
> > 'cvs' =\> 'latest',  
> > 'deploy' =\> '1.9',  
> > 'external-monitor-job' =\> 'latest',  
> > 'git-client' =\> '1.10.1',  
> > 'git' =\> '2.2.5',  
> > 'greenballs' =\> 'latest',  
> > 'javadoc' =\> 'latest',  
> > 'ldap' =\> 'latest',  
> > 'mailer' =\> 'latest',  
> > 'mapdb-api' =\> 'latest',  
> > 'matrix-auth' =\> 'latest',  
> > 'matrix-project' =\> 'latest',  
> > 'maven-plugin' =\> '2.6',  
> > 'm2release' =\> 'latest',  
> > 'antisamy-markup-formatter' =\> 'latest',  
> > 'pam-auth' =\> 'latest',  
> > #'parameterized-trigger' =\> 'latest',  
> > 'promoted-builds' =\> 'latest',  
> > 'ruby-runtime' =\> 'latest',  
> > 'scm-api' =\> 'latest',  
> > 'ssh-agent' =\> 'latest',  
> > 'ssh-credentials' =\> 'latest',  
> > 'ssh-slaves' =\> 'latest',  
> > 'subversion' =\> 'latest',  
> > 'translation' =\> 'latest',  
> > 'windows-slaves' =\> 'latest'  
> > }
> > 
> > Is this a plugin related error? any thoughts\>
> > 
> > On Fri, Jun 12, 2015 at 1:53 PM, niristotle okram \<[nirish.okram@gmail.com](mailto:nirish.okram@gmail.com)
> > 
> > > wrote:
> > 
> > > Hi there,
> > > 
> > > my kitchen test is failing while installing a jenkins plugin,  
> > > parameterized-trigger. this is the block that calls the plugins: I am using  
> > > the community jenkins cookbook
> > > 
> > > unless node['jenkins']['plugins'].nil?  
> > > node['jenkins']['plugins'].each do |plugin, version|  
> > > case version  
> > > when 'latest'  
> > > jenkins\_plugin plugin do  
> > > notifies :restart, "service[jenkins]", :delayed  
> > > end  
> > > else  
> > > jenkins\_plugin plugin do  
> > > version version  
> > > notifies :restart, "service[jenkins]", :delayed  
> > > end  
> > > end  
> > > end  
> > > end
> > > 
> > > And the plugins are defined as below in the attributes
> > > 
> > > default['jenkins']['plugins'] = {  
> > > 'ant' =\> 'latest',  
> > > 'collabnet' =\> 'latest',  
> > > 'credentials' =\> 'latest',  
> > > 'cvs' =\> 'latest',  
> > > 'deploy' =\> '1.9',  
> > > 'external-monitor-job' =\> 'latest',  
> > > 'git-client' =\> '1.10.1',  
> > > 'git' =\> '2.2.5',  
> > > 'greenballs' =\> 'latest',  
> > > 'javadoc' =\> 'latest',  
> > > 'ldap' =\> 'latest',  
> > > 'mailer' =\> 'latest',  
> > > 'mapdb-api' =\> 'latest',  
> > > 'matrix-auth' =\> 'latest',  
> > > 'matrix-project' =\> 'latest',  
> > > 'maven-plugin' =\> '2.6',  
> > > 'm2release' =\> 'latest',  
> > > 'antisamy-markup-formatter' =\> 'latest',  
> > > 'pam-auth' =\> 'latest',  
> > > _'parameterized-trigger' =\> 'latest',_  
> > > 'promoted-builds' =\> 'latest',  
> > > 'ruby-runtime' =\> 'latest',  
> > > 'scm-api' =\> 'latest',  
> > > 'ssh-agent' =\> 'latest',  
> > > 'ssh-credentials' =\> 'latest',  
> > > 'ssh-slaves' =\> 'latest',  
> > > 'subversion' =\> 'latest',  
> > > 'translation' =\> 'latest',  
> > > 'windows-slaves' =\> 'latest'  
> > > }
> > > 
> > > Below is the chef log from the console.
> > > 
> > > - jenkins\_plugin[parameterized-trigger] action install  
> > > [2015-06-12T21:42:06+01:00] INFO: Processing  
> > > jenkins\_plugin[parameterized-trigger] action install  
> > > (my\_jenkins::jenkins\_master line 149)
> > > 
> > > ================================================================================  
> > > Error executing action `install` on resource  
> > > 'jenkins\_plugin[parameterized-trigger]'
> > > 
> > > ================================================================================
> > > 
> > > ```
> > > NoMethodError
> > > -------------
> > > undefined method `[]' for nil:NilClass
> > > 
> > > Cookbook Trace:
> > > ---------------
> > > /tmp/kitchen/cookbooks/jenkins/libraries/plugin.rb:258:in
> > > 
> > > ```
> > > 
> > > `install\_plugin\_from\_update\_center'
> > > 
> > > /tmp/kitchen/cookbooks/jenkins/libraries/plugin.rb:124:in `block (2  
> > > levels) in class:JenkinsPlugin'
> > > 
> > > ```
> > > /tmp/kitchen/cookbooks/jenkins/libraries/plugin.rb:155:in `block
> > > 
> > > ```
> > > 
> > > in class:JenkinsPlugin'
> > > 
> > > ```
> > > Resource Declaration:
> > > ---------------------
> > > # In
> > > 
> > > ```
> > > 
> > > /tmp/kitchen/cookbooks/my\_jenkins/recipes/jenkins\_master.rb
> > > 
> > > ```
> > > 149: jenkins_plugin plugin do
> > > 
> > > 150: notifies :restart, "service[jenkins]", :delayed
> > > 151: end
> > > 152: else
> > > 
> > > Compiled Resource:
> > > ------------------
> > > # Declared in
> > > 
> > > ```
> > > 
> > > /tmp/kitchen/cookbooks/my\_jenkins/recipes/jenkins\_master.rb:149:in `block  
> > > in from\_file'
> > > 
> > > ```
> > > jenkins_plugin("parameterized-trigger") do
> > > action :install
> > > 
> > > retries 0
> > > 
> > > retry_delay 2
> > > 
> > > guard_interpreter :default
> > > 
> > > cookbook_name :"my_jenkins"
> > > 
> > > recipe_name "jenkins_master"
> > > 
> > > version :latest
> > > 
> > > install_deps true
> > > 
> > > end
> > > 
> > > [2015-06-12T21:42:06+01:00] INFO: Running queued delayed
> > > 
> > > ```
> > > 
> > > notifications before re-raising exception  
> > > [2015-06-12T21:42:06+01:00] INFO: jenkins\_plugin[maven-plugin]  
> > > sending restart action to service[jenkins] (delayed)
> > > 
> > > - service[jenkins] action restart [2015-06-12T21:42:06+01:00]  
> > > INFO: Processing service[jenkins] action restart  
> > > (my\_jenkins::jenkins\_master line 309)  
> > > [2015-06-12T21:42:07+01:00] INFO: service[jenkins] restarted
> > > 
> > > > > > > > > ## Converge failed on instance . Please see .kitchen/logs/jenkins-master-centos.log for more details ------Exception------- Class: Kitchen::ActionFailed Message: SSH exited (1) for command: [sudo -E chef-solo --config /tmp/kitchen/solo.rb --json-attributes /tmp/kitchen/dna.json --log\_level info]
> > > 
> > > Any idea, where this plugin alone is faulting?
> > 
> > --  
> > Regards  
> > nirish okram
