Add a Jenkins::Job.configure method which takes a block, to make it easier to configure jobs

This commit is contained in:
R. Tyler Croy 2012-07-31 05:28:53 -07:00
parent 25ebb52889
commit 217d69452e
1 changed files with 8 additions and 0 deletions

View File

@ -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)