-
Notifications
You must be signed in to change notification settings - Fork 414
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow slack to post through a proxy #148
Comments
I don't actively develop this plugin. I maintain pull requests and releases. Contributions providing this functionality are welcome! |
won't this proxy setting on the jenkins help here? Don't have an env to test. https://wiki.jenkins-ci.org/display/JENKINS/JenkinsBehindProxy |
@okram999 this does not work with the actual version, but the git plugin use it, so it should be possible to use the information. |
Can anyone please give me some insight here. I'm trying to use this plugin in my Jenkins Pipeline build behind a proxy in an enterprise environment. slackSend isn't honoring http_proxy, https_proxy, or HTTP_PROXY, HTTPS_PROXY or -Dhttp.proxyHost or -Dhttps.proxyHost. I know Jenkins use the proxy by leveraging one of the environment variables above, because I'm able to do things like install plugins from the plugin manager, and use the proxy in various other build tasks. But consistently the slack plugin just times out when connecting to slack.com I'm very close to pivoting and leveraging curl to send my requests... I've tried this with slack plugin 2.2 and slack 2.3 |
Could you be so kind and tell me what is the status? I can confirm that setting proxy according to https://wiki.jenkins.io/display/JENKINS/JenkinsBehindProxy seems to not work for the Slack Notification plugin. |
PRs welcome... |
@timja Since Slack doesn't respect the proxy set through JVM arguments, would it make sense to use the suggested solution in #171. It's not the cleanest solution but it "can" work. When time is available, I'd want to look into the codebase to see if there's a more elegant solution. It sounds to me that it was able to use |
I've made some progress in investigating this issue. Problem Solution |
So that works? |
Yes, that worked. For testing I've ran the following from geerlingguy/ansible-role-jenkins#28 in script console. Moving forward, I plan to put it in
|
Ok you can also do it in the configuration as code plugin,
|
@timja Thing is: if the proxy is not set up you cannot install any plugin so you won't be able to use JCasC. |
JCasC doesn't manage plugin installation, Plugins should be installed before jenkins starts up |
@devantoine in JCasC version 1.8 we just removed plugin installation support that was marked as a beta feature. |
Would be a great feature to allow slack to post through a proxy for cases where Jenkins is running behind a firewall.
The text was updated successfully, but these errors were encountered: