Add a Jenkins::Job.configure method which takes a block, to make it easier to configure jobs
This commit is contained in:
parent
25ebb52889
commit
217d69452e
|
@ -21,6 +21,14 @@ module Jenkins
|
|||
job_url + "/configure"
|
||||
end
|
||||
|
||||
def configure(&block)
|
||||
visit configure_url
|
||||
unless block.nil?
|
||||
yield
|
||||
save
|
||||
end
|
||||
end
|
||||
|
||||
def add_parameter(type,name,value)
|
||||
ensure_config_page
|
||||
find(:xpath, "//input[@name='parameterized']").set(true)
|
||||
|
|
Loading…
Reference in New Issue