Module: Jenkins2::API::Job

Included in:
Jenkins2::API
Defined in:
lib/jenkins2/api/job.rb

Overview

Allows manipulating jobs (projects). Supports cloudbees-folder plugin - i.e. nested jobs.

Defined Under Namespace

Classes: Proxy

Instance Method Summary collapse

Instance Method Details

#job(name, **params) ⇒ Object

Step into proxy for managing jobs.

Parameters:

name

Job name

params

Key-value parameters. They will be added as URL parameters to request.

Returns:

A Jenkins2::API::Job::Proxy object



15
16
17
18
19
# File 'lib/jenkins2/api/job.rb', line 15

def job(name, **params)
	proxy = Proxy.new connection, 'job', params
	proxy.id = name
	proxy
end