[ci skip][jenkins]move http proxy address to jenkins configuration

This commit is contained in:
heliclei 2014-05-29 16:55:22 +08:00
parent 3182fd56b8
commit 7d547cf9d2
4 changed files with 4 additions and 4 deletions

View File

@ -8,7 +8,7 @@ import sys
import traceback
import urllib2
http_proxy = 'http://127.0.0.1:8087'
http_proxy = os.environ['HTTP_PROXY']
proxyDict = {'http':http_proxy,'https':http_proxy}
def main():

View File

@ -8,7 +8,7 @@ import sys
import traceback
from jenkinsapi.jenkins import Jenkins
http_proxy = 'http://127.0.0.1:8087'
http_proxy = os.environ['HTTP_PROXY']
proxyDict = {'http':http_proxy,'https':http_proxy}
def check_queue_build(action, pr_num, statuses_url):

View File

@ -29,6 +29,6 @@ if(result == STATUS_SUCCESS):
else:
data['state'] = "failure"
http_proxy = 'http://127.0.0.1:8087'
http_proxy = os.environ['HTTP_PROXY']
proxyDict = {'http':http_proxy,'https':http_proxy}
requests.post(statuses_url, data=json.dumps(data), headers=Headers, proxies = proxyDict)

View File

@ -61,7 +61,7 @@ def check_current_3rd_libs(branch):
current_file = current_files[i]
copy(current_file, backup_file)
http_proxy = 'http://127.0.0.1:8087'
http_proxy = os.environ['HTTP_PROXY']
proxyDict = {'http':http_proxy,'https':http_proxy}
def main():
#get payload from os env