PrePAN

Sign in to PrePAN

Jenkins-API A wrapper around the Jenkins build systems API

Good

Synopsis

    use Jenkins::API;

    my $jenkins = Jenkins::API->new({ base_url => 'http://jenkins:8080' });
    my $status = $jenkins->current_status();
    my @not_succeeded = grep { $_->{color} ne 'blue' } @{$status->{jobs}};
    # {
    #   'color' => 'red',
    #   'name' => 'Test-Project',
    #   'url' => 'http://jenkins:8080/job/Test-Project/',
    # }

    my $success = $jenkins->create_job($project_name, $config_xml);
    ...

Description

This module is a simple wrapper around the Jenkins API. The query API's implemented so far seem fairly straight forward but the API to create new jobs is very much a work in progress at the moment.

Comments

I like this.
I think WebService::Jenkins would be a better name for it. Generally best not to use a top level namespace.
I noticed you went with Net::Jenkins. Please read http://pause.perl.org/pause/query?ACTION=pause_namingmodules#Net

Please sign up to post a review.