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

    Details

    • Similar Issues:

      Description

      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'
      

        Attachments

          Activity

          Show
          jorgenpt Jørgen Tjernø added a comment - Fixed in https://github.com/cowboyd/jenkins-plugin-runtime/commit/549aa26461ce8d84064be4a512136147ef26f77f (released as 0.1.16)
          Hide
          yyuu Yuu Yamashita added a comment -

          Close resolved issue.

          Show
          yyuu Yuu Yamashita added a comment - Close resolved issue.

            People

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

              Dates

              • Created:
                Updated:
                Resolved: