Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Developing the SDK: Getting Started

kohsuke edited this page Mar 8, 2012 · 1 revision

If you are interested in hacking the plugin development toolkit and its runtime, follow this to setup your environment.

Prerequisites

  • RVM
  • JRuby

Setup

Get the source code

Simply clone this repository

Build jpi

cd ruby-tools/jpi
bundle install
bundle exec rake build

Build ruby-runtime

This gem provides the glue between the native Jenkins runtime which is implemented in Java, and an idiomatic API that allows for development with a Ruby 'feel':

cd ruby-runtime
bundle install
bundle exec rake install

Build java-runtime

This produces ruby-runtime.hpi that packages Java/Ruby glue layer as a reusable Jenkins plugin. See java-runtime/README for how to build this.

Update your Ruby plugin to use the new runtime

Where you run jpi ..., run path/to/ruby-tools/jpi/bin/jpi ... to use the latest jpi tool from your workspace.

TODO: how to use the custom built ruby-runtime?

TODO: Pluginspec file needs to be modified to use this custom built java-runtime. Find out and document how.