jenkinsci / telegram-notifications-plugin

This plugin allows you to send messages from Jenkins jobs to Telegram chat.
https://plugins.jenkins.io/telegram-notifications/
MIT License
71 stars 62 forks source link

Proxy (socks5) support request #25

Open Tau34RUS opened 6 years ago

Tau34RUS commented 6 years ago

Hello, We have blocked almost all of the internet in our company ? have only few messengers proxies, so I need a way to configure this plugin so it may use proxy.

nurerken commented 5 years ago

The same situation! Do the authors want to answer this question?

amezin commented 4 years ago

This plugin obeys to JVM proxy configuration.

For master node, add -DsocksProxyHost=<host> -DsocksProxyPort=<port> to the command line (before -jar jenkins.war). For example, on Arch Linux there is /etc/conf.d/jenkins that is read by jenkins.service. I've changed JAVA_OPTS= to JAVA_OPTS=-DsocksProxyHost=192.168.1.1 -DsocksProxyPort=8001 in it.

For other nodes, you can add JVM options in Jenkins admin UI.

I belive the plugin shouldn't implement any custom logic for proxies.

avchulkov commented 4 years ago

If the connection with the local ldap server is configured, then with this proxy setting the connection with ldap is disconnected. Maybe there is some kind of setting to exclude ip ldap server?