Slack Plugin doesn't notify channel

5,163 views
Skip to first unread message

Hugo M

unread,
Mar 26, 2015, 6:59:09 PM3/26/15
to jenkins...@googlegroups.com
Hello, I'm using: https://wiki.jenkins-ci.org/display/JENKINS/Slack+Plugin

Version: 1.7
Jenkins: 1.6

I'm not getting the notifications even if I set all the notifications options in "Advanced options", BUT I'm getting the "Slack/Jenkins plugin: you're all set." message in my Slack channel the first time I configure it. So it's able to connect to Slack, but it doesn't notify when the job starts, ends, etc.

Another issue: when I press on "Test Connection" I get success no mather what I put on the configuration (url, channel, etc.).

Brantone

unread,
Mar 30, 2015, 7:46:37 AM3/30/15
to jenkins...@googlegroups.com
I'm guessing part of what you're seeing is mentioned here: https://github.com/jenkinsci/slack-plugin/issues/51

Have you verified your configs in the Manage Jenkins > Configure System > Global Slack Notifier Settings  ?

I've found that that's a better test of configuration and values stick better when individual jobs use them.

Hugo M

unread,
Mar 30, 2015, 1:11:01 PM3/30/15
to jenkins...@googlegroups.com
 Hi Brantone, thanks for your answer.

Both "Test connection" in job configuration and in Global Settings work in the sense that a message is posted on Jenkins: "Slack/Jenkins plugin: you're all set."

If I put wrong data there I get "Success" too but no message is posted, and I can see errors in the Jenkins log.

My problem is that I'm not getting the notifications from the jobs anyway.

Maybe this is related with the fact that I'm using a private channel? But I can see the Jenkins message even if it's a private channel, so it souldn't be an issue.


--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/9rl3I3DAiOg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/d31028bb-66e7-4b73-83bc-99c78e06cc9a%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Hugo M

unread,
Mar 30, 2015, 5:13:31 PM3/30/15
to jenkins...@googlegroups.com
Another discovery, when I press "Test connection" I see things happening in the jenkins.log. But If I start a job, or if that job fails (job configured with Slack plugin), nothing appears on the log (nothing related with Slack plugin).

Does Slack plugin has a dependency on another plugin? It seems that is simply not triggering the post when a job start / fail / etc.

Brenton Bartel

unread,
Mar 30, 2015, 5:27:36 PM3/30/15
to jenkins...@googlegroups.com
No other dependency as far as I'm aware. Have you added Slack as a post-build action and checked off necessary options in the job itself?


Hugo M

unread,
Mar 30, 2015, 8:24:13 PM3/30/15
to jenkins...@googlegroups.com
Wow! I didn't know that I should add it as a post-build action. It worked like a charm. Thanks!!

Maybe this should be added to "Jenkins Instructions" section of the repo README?

Brenton Bartel

unread,
Mar 30, 2015, 8:31:34 PM3/30/15
to jenkins...@googlegroups.com
Agreed would be handy ... even anything at this point since it's pretty scarce.
It does seem slightly counter-intuitive that a Post-build action would be required for something that could send a notification before it even builds ... but, there ya have it.

Mike Meluso

unread,
Jan 14, 2016, 5:47:39 AM1/14/16
to Jenkins Users
Yes I agree, it should be added to the instructions. I'm glad I found this thread or I would've given up.

Brenton

unread,
Jan 14, 2016, 6:28:52 PM1/14/16
to jenkins...@googlegroups.com
So who wants to write up a PR? :)

Christopher Orr

unread,
Jan 14, 2016, 8:06:20 PM1/14/16
to jenkins...@googlegroups.com
Feel free to just add documentation to the wiki page (as it suggests you
do), since that's the place most people will look for information:
https://wiki.jenkins-ci.org/display/JENKINS/Slack+Plugin says

Regards,
Chris


On 14/01/16 19:28, Brenton wrote:
> So who wants to write up a PR? :)
>
> On 13 January 2016 at 21:47, Mike Meluso <mikeym...@gmail.com
> <mailto:mikeym...@gmail.com>> wrote:
>
> Yes I agree, it should be added to the instructions. I'm glad I
> found this thread or I would've given up.
>
> On Monday, March 30, 2015 at 4:31:34 PM UTC-4, Brantone wrote:
>
> Agreed would be handy ... even anything at this point since it's
> pretty scarce.
> It does seem slightly counter-intuitive that a Post-build action
> would be required for something that could send a notification
> before it even builds ... but, there ya have it.
>
> On 30 March 2015 at 13:23, Hugo M <ham...@gmail.com> wrote:
>
> Wow! I didn't know that I should add it as a post-build
> action. It worked like a charm. Thanks!!
>
> Maybe this should be added to "Jenkins Instructions" section
> of the repo README?
>
>
> Hugo Massaroli on about.me
>
> Hugo Massaroli
> about.me/hugo.massaroli
>
>
> <http://about.me/hugo.massaroli>
>
> 2015-03-30 14:27 GMT-03:00 Brenton Bartel <bre...@letrabb.com>:
>
> No other dependency as far as I'm aware. Have you added
> Slack as a post-build action and checked off necessary
> options in the job itself?
>
>
> On 30 March 2015 at 10:13, Hugo M <ham...@gmail.com> wrote:
>
> Another discovery, when I press "Test connection" I
> see things happening in the jenkins.log. But If I
> start a job, or if that job fails (job configured
> with Slack plugin), nothing appears on the log
> (nothing related with Slack plugin).
>
> Does Slack plugin has a dependency on another
> plugin? It seems that is simply not triggering the
> post when a job start / fail / etc.
>
>
> Hugo Massaroli on about.me
>
> Hugo Massaroli
> about.me/hugo.massaroli
>
>
> <http://about.me/hugo.massaroli>
>
> 2015-03-30 10:10 GMT-03:00 Hugo M <ham...@gmail.com>:
>
> Hi Brantone, thanks for your answer.
>
> Both "Test connection" in job configuration and
> in Global Settings work in the sense that a
> message is posted on Jenkins: "Slack/Jenkins
> plugin: you're all set."
>
> If I put wrong data there I get "Success" too
> but no message is posted, and I can see errors
> in the Jenkins log.
>
> My problem is that I'm not getting the
> notifications from the jobs anyway.
>
> Maybe this is related with the fact that I'm
> using a private channel? But I can see the
> Jenkins message even if it's a private channel,
> so it souldn't be an issue.
>
>
>
>
> Hugo Massaroli on about.me
>
> Hugo Massaroli
> about.me/hugo.massaroli
>
>
> <http://about.me/hugo.massaroli>
>
> 2015-03-30 4:46 GMT-03:00 Brantone
> <bre...@letrabb.com>:
>
> I'm guessing part of what you're seeing is
> mentioned
> here: https://github.com/jenkinsci/slack-plugin/issues/51
>
> Have you verified your configs in the Manage
> Jenkins > Configure System > Global Slack
> Notifier Settings ?
>
> I've found that that's a better test of
> configuration and values stick better when
> individual jobs use them.
>
>
> On Thursday, 26 March 2015 11:59:09 UTC-7,
> Hugo M wrote:
>
> Hello, I'm using:
> https://wiki.jenkins-ci.org/__display/JENKINS/Slack+Plugin
> <https://groups.google.com/d/msgid/jenkinsci-users/d31028bb-66e7-4b73-83bc-99c78e06cc9a%40googlegroups.com?utm_medium=email&utm_source=footer>.
>
> For more options, visit
> https://groups.google.com/d/optout.
>
>
>
> --
> You received this message because you are subscribed
> to a topic in the Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jenkinsci-users/9rl3I3DAiOg/unsubscribe.
> To unsubscribe from this group and all its topics,
> send an email to jenkinsci-use...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CACDvQTqos_gDVBKwNfx0NLt1pZwxmZ3vjpGLthm%2B-3_h_imL8Q%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CACDvQTqos_gDVBKwNfx0NLt1pZwxmZ3vjpGLthm%2B-3_h_imL8Q%40mail.gmail.com?utm_medium=email&utm_source=footer>.
>
> For more options, visit
> https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to
> a topic in the Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jenkinsci-users/9rl3I3DAiOg/unsubscribe.
> To unsubscribe from this group and all its topics, send
> an email to jenkinsci-use...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CAD4EsfG1AnzC1at5z51eJ%2BG5wAftB453A9JQAKgtQYtdswS2NA%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CAD4EsfG1AnzC1at5z51eJ%2BG5wAftB453A9JQAKgtQYtdswS2NA%40mail.gmail.com?utm_medium=email&utm_source=footer>.
>
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to a
> topic in the Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jenkinsci-users/9rl3I3DAiOg/unsubscribe.
> To unsubscribe from this group and all its topics, send an
> email to jenkinsci-use...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CACDvQToORj0X3iPc4dMDiyLhFmpdqgdm5Y72ppTEwftW2MFQcA%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CACDvQToORj0X3iPc4dMDiyLhFmpdqgdm5Y72ppTEwftW2MFQcA%40mail.gmail.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to a topic in
> the Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jenkinsci-users/9rl3I3DAiOg/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> jenkinsci-use...@googlegroups.com
> <mailto:jenkinsci-use...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/7e35edb3-056e-4928-abe5-e0303cf556f7%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/7e35edb3-056e-4928-abe5-e0303cf556f7%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to jenkinsci-use...@googlegroups.com
> <mailto:jenkinsci-use...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CAD4EsfH0m03DLQdX1gK8E%3D2MquO%3DAMnGcavr9sDRUJKgv6y7%2BA%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CAD4EsfH0m03DLQdX1gK8E%3D2MquO%3DAMnGcavr9sDRUJKgv6y7%2BA%40mail.gmail.com?utm_medium=email&utm_source=footer>.

Michael Meluso

unread,
Jan 15, 2016, 3:55:17 AM1/15/16
to jenkins...@googlegroups.com
I actually found it on the slack documentation first instead of jenkins: https://slack.com/apps/A0F7VRFKN-jenkins-ci. Unfortunately I don't think slack apps are set up like a wiki. 

Reply all
Reply to author
Forward
0 new messages