The buildbot.status.words.IRC status target creates an IRC bot
which will attach to certain channels and be available for status
queries. It can also be asked to announce builds as they occur, or be
told to shut up.
from buildbot.status import words
irc = words.IRC("irc.example.org", "botnickname",
channels=["channel1", "channel2"],
password="mysecretpassword",
notify_events={
'exception': 1,
'successToFailure': 1,
'failureToSuccess': 1,
})
c['status'].append(irc)
Take a look at the docstring for words.IRC for more details on
configuring this service. Note that the useSSL option requires
PyOpenSSL. The password argument, if provided, will be sent to
Nickserv to claim the nickname: some IRC servers will not allow clients to send
private messages until they have logged in with a password.
To use the service, you address messages at the buildbot, either
normally (botnickname: status) or with private messages
(/msg botnickname status). The buildbot will respond in kind.
Some of the commands currently available:
list buildersstatus BUILDERstatus allwatch BUILDERlast BUILDERjoin CHANNELleave CHANNELnotify on|off|list EVENTstartedfinishedsuccessfailedexceptionxToYhelp COMMANDhelp commands to get a list of known
commands.
sourceversionAdditionally, the config file may specify default notification options as shown in the example earlier.
If the allowForce=True option was used, some addtional commands
will be available:
force build BUILDER REASONstop build BUILDER REASON