Closed javiplx closed 9 years ago
Finally, it was unrelated to jenkins.rb stuff. There was a few java_import Java.java.util.logging.Logger
statements on toplevel scope of some ruby files for the plugin I was working on, and they were the ones masking the ruby Logger class. Once I've encapsulated them within their proper modules/classes, the problem has disappeared.
Im using jenkins-plugin-runtime 0.2.3 with ruby-runtime 0.12, and it seems that the Listener class is broken. It seems that the class tries to use the native ruby logger object, but
Logger
get somewhere masked with the java Logger class. If I comment outon Listener initialize method, everything seems to works fine, although that's probably only because I never actually used that listener object.
I've discovered this when trying to implement a Jenkins notifier in ruby, and I've seen that other ruby notifiers work, although no one of them is packaged with 0.2.3+0.12 but with much earlier versions.
When prebuild method is executed I get this: