Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
40 lines (22 sloc) 1.23 KB

A prototype Ruby plugin

There is no Java, only Ruby.

This is a sample ground for what a pure ruby Jenkins plugin would look like on its own. It is different than the jenkins-ruby-plugins-playground in that it is not "embedded" inside a vanilla Java plugin. It has its own structure that is completely independent.

Inside this plugin are several extension points.

Running

  1. use JRuby
  2. bundle
  3. rake server

Extensions

Logging Wrapper

LoggingWrapper.

This is a trivial BuildWrapper that outputs a message to the console whenever a build starts and when it finishes.

TestRootAction

TestRootAction demonstrates adding links to the main sidebar.

ModelReloadAction

'ModelReloadAction'

reloads all of the Ruby classes in the plugin. Very useful for development!

DirectoryListingAction

https://github.com/cowboyd/jenkins-prototype-ruby-plugin/blob/master/models/root_action.rb#L72

list the contents of the ruby plugin