daily pastebin goal
7%
SHARE
TWEET

Untitled

a guest Apr 21st, 2018 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top