Permalink
Browse files

Merge pull request #34 from hgavin/builder_https

Support HTTPS jenkins installations in Builder
  • Loading branch information...
2 parents 7c53b7e + 9b73555 commit a2ec5861cc48a472255f6b55c0b901e156698ea3 @sr sr committed Jan 27, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/janky/builder/http.rb
@@ -8,6 +8,10 @@ def initialize(username, password)
def run(params, create_url)
http = Net::HTTP.new(create_url.host, create_url.port)
+ if create_url.scheme == "https"
+ http.use_ssl = true
+ end
+
request = Net::HTTP::Post.new(create_url.path)
if @username && @password
request.basic_auth(@username, @password)
@@ -24,6 +28,10 @@ def run(params, create_url)
def output(url)
http = Net::HTTP.new(url.host, url.port)
+ if url.scheme == "https"
+ http.use_ssl = true
+ end
+
request = Net::HTTP::Get.new(url.path)
if @username && @password
request.basic_auth(@username, @password)

0 comments on commit a2ec586

Please sign in to comment.