Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-12099

A Jenkins::Task::Builder shouldn't throw an exception if they don't implement prebuild

XMLWordPrintable

      If you subclass Jenkins::Task::Builder and don't implement prebuild(build, listener), then it throws this exception:

      ERROR: wrong number of arguments (2 for 3) (ArgumentError)
      /Users/jtjerno/.rvm/gems/jruby-1.6.5/gems/jenkins-plugin-runtime-0.1.15/lib/jenkins/plugin/proxies/build_step.rb:7:in `prebuild'
      /Users/jtjerno/.rvm/gems/jruby-1.6.5/gems/jenkins-plugin-runtime-0.1.15/lib/jenkins/plugin/proxies/build_step.rb:21:in `boolean_result'
      /Users/jtjerno/.rvm/gems/jruby-1.6.5/gems/jenkins-plugin-runtime-0.1.15/lib/jenkins/plugin/proxies/build_step.rb:6:in `prebuild'
      

            jorgenpt Jørgen Tjernø
            jorgenpt Jørgen Tjernø
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: