pipelines and IRC

122 views
Skip to first unread message

Erwan de Ferrières

unread,
Jan 25, 2016, 6:06:55 AM1/25/16
to Jenkins Users
hi,

I'm using the IRC plugin (https://wiki.jenkins-ci.org/display/JENKINS/IRC+Plugin) on our jenkins instance.
Does someone already integrated the plugin with pipelines ? And if not, what would be the best way to do it ?

I'd like to have the same integration as before when using a free-style project and sending notfiications on our IRC channel.

Best regards,

Erwan

Craig Rodrigues

unread,
Jan 25, 2016, 3:30:10 PM1/25/16
to Jenkins Users
Hi,

This plugin does not seem to be integrated with pipeline.
There are some notes as to how to make an existing plugin integrate with pipeline:

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/def9bff5-35aa-4d0c-93e2-6796eb6559a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

R. Tyler Croy

unread,
Jan 25, 2016, 8:53:03 PM1/25/16
to jenkins...@googlegroups.com
(replies inline)

On Mon, 25 Jan 2016, Craig Rodrigues wrote:

> Hi,
>
> This plugin does not seem to be integrated with pipeline.
> There are some notes as to how to make an existing plugin integrate with
> pipeline:
>
> https://github.com/jenkinsci/workflow-plugin/blob/master/COMPATIBILITY.md#plugin-developer-guide
> and this video:
> https://jenkins-ci.org/blog/2014/07/08/workflow-plugin-tutorial-writing-a-step-impl/
>
> That would be the best place to start.


IRC is actually a very simple protocol, so you may be able to modify this
example:
<https://github.com/jenkinsci/workflow-examples/blob/master/pipeline-examples/slacknotify/slackNotify.groovy>
for now and just use netcat to send messages to IRC.


not ideal, I know, but is a workaround you can use right now.




> On Mon, Jan 25, 2016 at 3:06 AM, Erwan de Ferrières <
> erwan.de-...@whaller.com> wrote:
>
> > hi,
> >
> > I'm using the IRC plugin (
> > https://wiki.jenkins-ci.org/display/JENKINS/IRC+Plugin) on our jenkins
> > instance.
> > Does someone already integrated the plugin with pipelines ? And if not,
> > what would be the best way to do it ?
> >
> > I'd like to have the same integration as before when using a free-style
> > project and sending notfiications on our IRC channel.
> >
> > Best regards,
> >
> > Erwan
> >
> > --
> > 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.
> > To view this discussion on the web visit
> > https://groups.google.com/d/msgid/jenkinsci-users/def9bff5-35aa-4d0c-93e2-6796eb6559a7%40googlegroups.com
> > <https://groups.google.com/d/msgid/jenkinsci-users/def9bff5-35aa-4d0c-93e2-6796eb6559a7%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.
> To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAG%3DrPVc7-C3ajCseHcSjLiBbg7aBZ9ckOGtMpbf5BTb64WwLuw%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.

- R. Tyler Croy

------------------------------------------------------
Code: <https://github.com/rtyler>
Chatter: <https://twitter.com/agentdero>

% gpg --keyserver keys.gnupg.net --recv-key 3F51E16F
------------------------------------------------------
signature.asc

Craig Rodrigues

unread,
Jan 25, 2016, 9:45:07 PM1/25/16
to Jenkins Users
On Mon, Jan 25, 2016 at 5:50 PM, R. Tyler Croy <ty...@monkeypox.org> wrote:


IRC is actually a very simple protocol, so you may be able to modify this
example:
<https://github.com/jenkinsci/workflow-examples/blob/master/pipeline-examples/slacknotify/slackNotify.groovy>
for now and just use netcat to send messages to IRC.


The example you gave uses HTTP web hooks exposed by Slack.
That example isn't useful at all for IRC.

It would be better to modify the Jenkins IRC plugin to by pipeline/workflow compatible.

--
Craig

Michael Neale

unread,
Jan 26, 2016, 8:53:22 PM1/26/16
to Jenkins Users, rod...@freebsd.org
If it is too much trouble for the irc plugin, IRC is pretty simple. 

Here is an example that I know works with freenode: 


(this could be put in a function or a global library DSL if you are using it a lot). 

(uses nc only). If nick has a login you can set the password and add in the auth line that is commented out. 

Hope that helps. 

Erwan de Ferrières

unread,
Jan 28, 2016, 5:54:10 AM1/28/16
to Jenkins Users
Hi,

thanks for your answers, I will deal with the commad line solution which seems suffisant for the usage I have.

Regards,
Reply all
Reply to author
Forward
0 new messages