Skip to content

Instantly share code, notes, and snippets.

@MosesMendoza
Created June 25, 2013 22:45
Show Gist options
  • Save MosesMendoza/5863151 to your computer and use it in GitHub Desktop.
Save MosesMendoza/5863151 to your computer and use it in GitHub Desktop.
require 'jenkins_api_client'
@client = JenkinsApi::Client.new(:server_ip => '10.16.77.165')
job_file = IO.read('/Users/moses/job.xml')
job = JenkinsApi::Client::Job.new(@client)
job.create("melissas_other_job", job_file)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment