8000 認証プロキシをjenkinsに正しく設定するようにした。 by sekia556 · Pull Request #132 · alminium/alminium · GitHub
[go: up one dir, main page]

Skip to content
Merged
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
10 changes: 10 additions & 0 deletions inst-script/rhel6/jenkins-install
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,16 @@ curl --noproxy localhost -X POST -H "Accept: application/json" -d @/tmp/default.
if [ x"$http_proxy" != x"" ]
then
# set proxy. sorry IPv4 only and user:pass not supported...
proxyuser=`echo $http_proxy | sed 's/.*:\/\/\([a-zA-Z0-9]*\):.*/\1/'`
proxypass=`echo $http_proxy | sed 's/.*:\/\/[a-zA-Z0-9]*:\([a-zA-Z0-9:]*\)\@.*/\1/'`
#echo proxyuser=$proxyuser
#echo proxypass=$proxypass

if [ x"$proxyuser" != x"" ]
then
http_proxy=`echo $http_proxy | sed "s/$proxyuser:$proxypass\@//"`
fi

proxyserver=`echo $http_proxy | cut -d':' -f2 | sed 's/\/\///g'`
proxyport=`echo $http_proxy | cut -d':' -f3 | sed 's/\///g'`
#echo $proxyserver
Expand Down
0