Guest User

Untitled

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