Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'jenkins_api_client'
- SERVER_IP = 'jenkins.dev.example.com'
- $build = JenkinsApi::Client.new(:server_ip => "#{SERVER_IP}",:username => 'admin', :password => 'admin')
- $opts = {'build_start_timeout' => 60, 'cancel_on_build_start_timeout' => true}
- $build.job.build("test-project",{:parameter1=>"value-1",\
- :parameter2=>"value-2",\
- :parameter3=>"value-3",\
- :parameter4=>"value-4"} || {}, $opts)
Add Comment
Please, Sign In to add comment