tasks/00_utils.rake
# Use the curl to create a jenkins job from a valid XML
# configuration file.
# Returns the URL to the job
Use the curl to create a jenkins job from a valid XML
configuration file.
Returns the URL to the job
Use the curl to create a jenkins job from a valid XML configuration file . Returns the URL to the job
def create_jenkins_job(name, xml_file)
  create_url = "http://#{@build.jenkins_build_host}/createItem?name=#{name}"
  form_args = ["-H", '"Content-Type: application/xml"', "--data-binary", "@#{xml_file}"]
  curl_form_data(create_url, form_args)
  "http://#{@build.jenkins_build_host}/job/#{name}"
end
def create_jenkins_job ( name , xml_file ) create_url = "http://#{@build.jenkins_build_host}/createItem?name=#{name}" form_args = [ "-H" , '"Content-Type: application/xml"' , "--data-binary" , "@#{xml_file}" ] curl_form_data ( create_url , form_args ) "http://#{@build.jenkins_build_host}/job/#{name}" end
Use the curl to create a jenkins job from a valid XML
configuration file.
Use the curl to create a jenkins job from a valid XML configuration file .
name
<not_specific>
xml_file
<not_specific>