Skip to content

Commit

Permalink
requested changes to jenkins api client, (sorry for the delay)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Neubert committed Oct 4, 2014
1 parent a68eeee commit 08e5dc7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/jenkins_api_client/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,9 @@ def get_artifact(job_name,filename)
request = Net::HTTP::Get.new(uri.request_uri)
request.basic_auth(@username, @password)
response = http.request(request)
File.write(File.expand_path(filename), response.body) if response.code == 200
File.write(File.expand_path(filename), response.body) if response.code == "200"
rescue
raise "Response was not 200"
end

# Connects to the Jenkins server, sends the specified request and returns
Expand Down
1 change: 0 additions & 1 deletion lib/jenkins_api_client/job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#

require 'jenkins_api_client/urihelper'
require 'net/https'

module JenkinsApi
class Client
Expand Down

0 comments on commit 08e5dc7

Please sign in to comment.