Proxy server between Jenkins and the Internet

150 views
Skip to first unread message

Curtis Kline

unread,
Jul 11, 2017, 3:25:34 PM7/11/17
to jenkins...@googlegroups.com
Hello all,

I am setting up a new Jenkins server and some build nodes to replace an old one. The cloud instances running Jenkins jobs are behind a Squid proxy and cannot access the Internet directly. The initial problem of not being able to download any plugins was easily resolved by entering proxy settings in the Jenkins admin UI. I was able to get Linux shell commands working with a http_proxy environment variable. It's gotten pretty ugly from there, though.

The Android SDK and Gradle build tools each had proxy settings. Docker containers need to be started with proxy settings. Java and SBT each have proxy settings. The HockeyApp plugin has a bug preventing use with a proxy. And it continues...

Does anyone else run Jenkins behind a proxy server? Is it a maintenance nightmare? I'm beginning to think we are going to have to get the Jenkins instances out from behind the proxy or face ongoing maintenance headaches.

Thanks,
Curtis

James Telfer

unread,
Jul 19, 2017, 8:28:38 AM7/19/17
to Jenkins Users
Hi Curtis,

The long and short of it is that managing Jenkins behind a proxy isn't as simple as managing it otherwise, for all the reasons you mention.

We configure our slaves via puppet, and deploy the proxy configuration automatically.  For docker containers, again we create base images which include the proxy configuration and work from there.

Regards,
James
Reply all
Reply to author
Forward
0 new messages