tasks/00_utils.rake
# Use the curl to check of a named job is defined on the jenkins server.  We
# curl the config file rather than just checking if the job exists by curling
# the job url and passing --head because jenkins will mistakenly return 200 OK
# if you issue multiple very fast requests just requesting the header.
Use the curl to check of a named job is defined on the jenkins server.  We
curl the config file rather than just checking if the job exists by curling
the job url and passing --head because jenkins will mistakenly return 200 OK
if you issue multiple very fast requests just requesting the header.
Use the curl to check of a named job is defined on the jenkins server . We curl the config file rather than just checking if the job exists by curling the job url and passing -- head because jenkins will mistakenly return 200 OK if you issue multiple very fast requests just requesting the header .
def jenkins_job_exists?(name)
  job_url = "http://#{@build.jenkins_build_host}/job/#{name}/config.xml"
  form_args = ["--silent", "--fail"]
  curl_form_data(job_url, form_args, :quiet => true)
end
def jenkins_job_exists? ( name ) job_url = "http://#{@build.jenkins_build_host}/job/#{name}/config.xml" form_args = [ "--silent" , "--fail" ] curl_form_data ( job_url , form_args , :quiet => true ) end
Use the curl to check of a named job is defined on the jenkins server.
Use the curl to check of a named job is defined on the jenkins server .
name
<not_specific>