jenkinsci/jabber-plugin — pull request #7 by mrtidy (2012-03-25 22:21:54+00:00)
Title: support resource in Jabber ID in JabberIMConnection

We use Openfire for our Jabber / XMPP server and we have a few different Jenkins instances. The Jenkins instances share a build user provided to us by IT so that the different groups can easily configure Jenkins to connections to the chat rooms. Openfire requires different resource identifiers for multiple user connections even if they're in different chat rooms.

I've changed JabberIMConnection so that if a resource is not specified in the Jabber ID then 'Jenkins' is still used; however, if a resource is specified then that will be used. In local testing, this does show that it takes care of our problem of trying share one build user across multiple Jenkins instances.

Please consider adding this into the main plugin in case others want to use the resource as well.

Thank you.

- jeremiah