Skip to content
This repository has been archived by the owner on May 12, 2018. It is now read-only.

Added http proxy support #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/network.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down