Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-36826

Support Jenkins Pipeline for Jabber notifications

      It would be great to be able to send Jabber notifications from a Pipeline job.

      Example:
      sendJabber targets:myname@chat.mycompany.com

          [JENKINS-36826] Support Jenkins Pipeline for Jabber notifications

          Hi,

          Is there anything that I can do to help move this along?  I'm migrating quite a few jobs from freestyle to pipelines and I would hate to lose this functionality.

          Andrew Douglas added a comment - Hi, Is there anything that I can do to help move this along?  I'm migrating quite a few jobs from freestyle to pipelines and I would hate to lose this functionality.

          Jim Klimov added a comment -

          I can now merge the IM and IRC PRs, but did not ask for Jabber rights (so flow should follow up with the merge of https://github.com/jenkinsci/jabber-plugin/pull/18).

          I ported that logic for ircbot so there would be an ircNotify pipeline step as well, and can at least confirm that this coupling works

          Jim Klimov added a comment - I can now merge the IM and IRC PRs, but did not ask for Jabber rights (so flow should follow up with the merge of https://github.com/jenkinsci/jabber-plugin/pull/18 ). I ported that logic for ircbot so there would be an ircNotify pipeline step as well, and can at least confirm that this coupling works

          so flow should follow up with the merge of https://github.com/jenkinsci/jabber-plugin/pull/18

          That PR has conflicts that you need to resolve first.

          Florian Schmaus added a comment - so  flow  should follow up with the merge of  https://github.com/jenkinsci/jabber-plugin/pull/18 That PR has conflicts that you need to resolve first.

          Jim Klimov added a comment -

          > That PR has conflicts that you need to resolve first.

          Unfortunately I am not the author nor committer there. I think in github the repo maintainer may by default edit the source branch of a PR, in the other developer's repository.
          Given that the conflict is just something in "versions.gradle", can you please see if it is something you may and can fix easily?

          Jim Klimov added a comment - > That PR has conflicts that you need to resolve first. Unfortunately I am not the author nor committer there. I think in github the repo maintainer may by default edit the source branch of a PR, in the other developer's repository. Given that the conflict is just something in "versions.gradle", can you please see if it is something you may and can fix easily?

          Will fix, just returning from vacation.

          Alexander Komarov added a comment - Will fix, just returning from vacation.

          FYI, the jabber PR no longer has conflicts, but I suspect that it should be updated to depend on a stable version of the instant messaging plugin once it is released with the changes. It's not clear to me whether the SNAPSHOT version is even published in the wild.

          Alexander Komarov added a comment - FYI, the jabber PR no longer has conflicts, but I suspect that it should be updated to depend on a stable version of the instant messaging plugin once it is released with the changes. It's not clear to me whether the SNAPSHOT version is even published in the wild.

          Jim Klimov added a comment -

          Thanks. I was trying to make a release yesterday, but it stumbled on older dependencies first and on newly caught findbugs then, so stalled a bit ;(

          Jim Klimov added a comment - Thanks. I was trying to make a release yesterday, but it stumbled on older dependencies first and on newly caught findbugs then, so stalled a bit ;(

          No rush on my part.
          Also, our team switched to Mattermost since I pushed this, so this will probably be my only PR for the foreseeable future.

          Alexander Komarov added a comment - No rush on my part. Also, our team switched to Mattermost since I pushed this, so this will probably be my only PR for the foreseeable future.

          Jim Klimov added a comment -

          I performed a release 1.37 of the instant-messaging-plugin so hopefully in a few hours its artifacts will be published and be dependable upon.

          Also, you could endeavour to make a plugin to notify/bot/... via Mattermost, right?

          Jim Klimov added a comment - I performed a release 1.37 of the instant-messaging-plugin so hopefully in a few hours its artifacts will be published and be dependable upon. Also, you could endeavour to make a plugin to notify/bot/... via Mattermost, right?

          Alexander Komarov added a comment - - edited

          Sounds good jimklimov.

          Mattermost already has a plugin that does not depend on instant-messaging and has pipeline support: https://jenkins.io/doc/pipeline/steps/mattermost/

          Alexander Komarov added a comment - - edited Sounds good jimklimov . Mattermost already has a plugin that does not depend on instant-messaging and has pipeline support: https://jenkins.io/doc/pipeline/steps/mattermost/

            flow Florian Schmaus
            avanacker Alexis Vanacker
            Votes:
            27 Vote for this issue
            Watchers:
            33 Start watching this issue

              Created:
              Updated:
              Resolved: