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

Invalid target generated when the Jabber destination is not a group Chat

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • job-dsl-plugin
    • None
    • not environment specific

      When using publishJabber('individual@server', 'ALL', 'Default'), the generated config is:

      <hudson.plugins.im.GroupChatIMMessageTarget>
      <name>individual@server</name>
      </hudson.plugins.im.GroupChatIMMessageTarget>

      whereas it should be:

      <hudson.plugins.im.DefaultIMMessageTarget>
      <value>individual@server</value>
      </hudson.plugins.im.DefaultIMMessageTarget>

      This results in the individual being treated as a target group chat, and the notification is never received (plus there's a nasty stacktrace in the build log)

      Here's a Pull request that fixes the issue:
      https://github.com/jenkinsci/job-dsl-plugin/pull/206

            daspilker Daniel Spilker
            schwing Thierry Guérin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: