Groovy – unable to resolve class

I have a groovy script that I'm writing and I'm trying to link to another groovy "library" that I've written. My script fails with "unable to resolve class".


Failure to install / update ruby gems

Problem: While trying to update ruby gems: gem update I ran into the following error: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed I'd recently installed a new certificate so I assumed it was that. However after a lot of hunting around it turns out that there was an SSL certificate update …

Continue reading Failure to install / update ruby gems

piggly trace- invalid multibyte escape

Background: After installing piggly (see here for instructions) I had to remove the latest version of piggly due to this issue: gem uninstall piggly and I thus installed version 1.2.1 gem install piggly -v '1.2.1' Problem: After installing v 1.2.1 I attempted to run piggly trace: piggly trace And was confronted with the following error: C:/Ruby/Ruby21-x64/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:126:in …

Continue reading piggly trace- invalid multibyte escape

Jenkins & Groovy – accessing build parameters

We're using Jenkins version 1.651 with the Groovy plugin for Jenkins version 1.4. I had real trouble getting access to the build parameters when trying to run a groovy script build step using the recommended methods of which there are many. From the plugin documentation: // Retrieve parameters of the current build def foo = build.buildVariableResolver.resolve("FOO") …

Continue reading Jenkins & Groovy – accessing build parameters