Skip to content

Commit

Permalink
Merge pull request #174 from paulgeringer/fix-get-artifact
Browse files Browse the repository at this point in the history
Use the specified client ssl when downloading artifacts
  • Loading branch information
arangamani committed Mar 13, 2015
2 parents 9930fdd + 0648889 commit 6170812
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jenkins_api_client/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def get_artifact(job_name,filename)
uri = URI.parse(@artifact)
http = Net::HTTP.new(uri.host, uri.port)
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
http.use_ssl = true
http.use_ssl = @ssl
request = Net::HTTP::Get.new(uri.request_uri)
request.basic_auth(@username, @password)
response = http.request(request)
Expand Down

0 comments on commit 6170812

Please sign in to comment.