Hitting an error:
Compiling Cookbooks…
[2017-02-11T06:19:17+00:00] WARN: Here we go with the runit service
================================================================================
Recipe Compile Error in /var/chef/cache/cookbooks/lmb-jenkins/recipes/master.rb
NoMethodError
undefined method `-@’ for #Chef::Node::ImmutableArray:0x000000052f1a98
Cookbook Trace:
/var/chef/cache/cookbooks/lmb-jenkins/recipes/__scm_sync.rb:10:in from_file' /var/chef/cache/cookbooks/lmb-jenkins/recipes/master.rb:228:in
from_file’
Relevant File Content:
/var/chef/cache/cookbooks/lmb-jenkins/recipes/__scm_sync.rb:
3:
4: node[‘scm_sync’][‘plugins’].each_with_index do |p,index|
5: jenkins_plugin p[‘name’] do
6: version p[‘version’]
7: install_deps false
8: notifies :execute, “jenkins_command[safe-restart]”, :immediately if index == node[‘scm_sync’][‘plugins’].length - 1
9: end
10>> end
11: