mirror of https://github.com/axmolengine/axmol.git
[ci skip][jenkins]move http proxy address to jenkins configuration
This commit is contained in:
parent
3182fd56b8
commit
7d547cf9d2
|
@ -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():
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue