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

instant-messaging plugin notifications with custom messages

      I was looking to configure IRC plug-in on Hudson with custom notification messages (i.e. code metrics (ex: test results, coverage detail and findbug info) )instead of posting simply build URL.

      I didn't found any advanced configuration set up as part of IRC plug-in, is there any way to configure custom messages via IRC notifications ?

          [JENKINS-5031] instant-messaging plugin notifications with custom messages

          kutzi added a comment -

          No, there is currently no way to do this.

          I doubt that I'll find the time to implement this feature in the near future, but could you nevertheless elaborate a little more about what options you would like to have and how the configuration should look like?

          kutzi added a comment - No, there is currently no way to do this. I doubt that I'll find the time to implement this feature in the near future, but could you nevertheless elaborate a little more about what options you would like to have and how the configuration should look like?

          Sean Flanigan added a comment -

          Something along the lines of Editable Email Notification would be handy:

          http://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin

          Specifically, the token substitution mechanism would allow for wordy or concise messages to be configured for each job.

          Sean Flanigan added a comment - Something along the lines of Editable Email Notification would be handy: http://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin Specifically, the token substitution mechanism would allow for wordy or concise messages to be configured for each job.

          kutzi added a comment - - edited

          Note: since instant-messaging 1.10 (Jabber 1.12, IRCBot 2.7) you can extend the plugin with your own 'BuildToChatNotifier'

          kutzi added a comment - - edited Note: since instant-messaging 1.10 (Jabber 1.12, IRCBot 2.7) you can extend the plugin with your own 'BuildToChatNotifier'

          Do you have a guide for doing the self-extension of our own "BuildToChatNotifier" for this? Some of us aren't that adept at doing modifications on that level yet.

          I've been staring at this for a few hours and think I have a general idea of what is involved, but a guide would help everyone.

          Daniel Khodaparast added a comment - Do you have a guide for doing the self-extension of our own "BuildToChatNotifier" for this? Some of us aren't that adept at doing modifications on that level yet. I've been staring at this for a few hours and think I have a general idea of what is involved, but a guide would help everyone.

          Antoine Musso added a comment - - edited

          For what it is worth, the messages are defined in: src/main/resources/hudson/plugins/im/build_notify/Messages.properties

          SummaryOnlyBuildToChatNotifier.Summary=Project {0} build {1}: {2} in {3}: {4}
          SummaryOnlyBuildToChatNotifier.BuildIsFixed=Yippee, build fixed!\n
          SummaryOnlyBuildToChatNotifier.StartMessage=Starting build {0} for job {1}
          

          I would love an option to at least disable the BuildIsFixed message. The two other messages should be changeable in the interface, probably globally and on a per job basis. The Summary message shows the job URL which already contains the job name and build number, not much point in repeating them.

          Antoine Musso added a comment - - edited For what it is worth, the messages are defined in: src/main/resources/hudson/plugins/im/build_notify/Messages.properties SummaryOnlyBuildToChatNotifier.Summary=Project {0} build {1}: {2} in {3}: {4} SummaryOnlyBuildToChatNotifier.BuildIsFixed=Yippee, build fixed!\n SummaryOnlyBuildToChatNotifier.StartMessage=Starting build {0} for job {1} I would love an option to at least disable the BuildIsFixed message. The two other messages should be changeable in the interface, probably globally and on a per job basis. The Summary message shows the job URL which already contains the job name and build number, not much point in repeating them.

          Sorin Sbarnea added a comment -

          Is there a way to disable the "Yippee, build fixed" message completely? It drives me crazy to see so much spam as the real info is in the next line.

          Sorin Sbarnea added a comment - Is there a way to disable the "Yippee, build fixed" message completely? It drives me crazy to see so much spam as the real info is in the next line.

          Jim Klimov added a comment -

          Jim Klimov added a comment - See also https://issues.jenkins-ci.org/browse/JENKINS-34903?focusedCommentId=373370&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-373370 about concerns on the greater configurability

            kutzi kutzi
            keshureddyp keshureddyp
            Votes:
            4 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: