Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: c0018cc8e2
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (16 sloc) 0.475 kB
hudson-remote-api is ruby library to talk to Hudson's xml remote access api
Usage:
require 'hudson-remote-api'
# Auto Configuration sets Hudson[:url]
Hudson.auto_config
# Manual Configuration
Hudson[:url] = 'http://localhost:8080'
Hudson[:user] = 'hudson'
Hudson[:password] = 'password'
# List all Hudson jobs
Hudson::Job.list
# List all active Hudson jobs
Hudson::Job.list_active
# print the last build number of a job
j = Hudson::Job.new('jobname')
puts j.last_build
Jump to Line
Something went wrong with that request. Please try again.