From 7ab2497a13b36c5edad74df67043652a02460488 Mon Sep 17 00:00:00 2001 From: David Jack Wange Olrik Date: Wed, 6 Nov 2013 22:12:28 +0100 Subject: [PATCH] Added http proxy support --- lib/network.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/network.rb b/lib/network.rb index d2726f0..dd9e7e8 100644 --- a/lib/network.rb +++ b/lib/network.rb @@ -7,6 +7,11 @@ module GitlabCi class Network include HTTParty + # Use http proxy if specified in the shell + if ENV["HTTP_PROXY"] + (protocol,host,port) = ENV["HTTP_PROXY"].split(/:\/\/|:/) + http_proxy host, port + end # check for available build from coordinator # and pick a pending one