在CentOS上配置Jenkins代理有以下几种方法:
/etc/profile文件,添加export http_proxy=http://proxy_server_ip:proxy_server_port和export https_proxy=http://proxy_server_ip:proxy_server_port,将proxy_server_ip和proxy_server_port替换为实际代理服务器地址和端口,然后执行source /etc/profile使更改生效。~/.jenkins或/var/lib/jenkins)中,找到hudson.model.UpdateCenter.xml文件,添加代理配置,如<proxy><name>proxy.example.com</name><port>8080</port></proxy>,修改后重启Jenkins。