{% extends "zerver/portico.html" %} {# API information page #} {% block portico_content %}
The English poet John Donne once wrote that "no man is an island", and we feel the same about software. No system exists in complete isolation, so we've made it easy for Zulip to connect to the services you already use.
With the integrations below, your team can stay up-to-date on code changes, issue tickets, build system results, and much more. So ask not for whom the notification tolls—it tolls for thee! (Or for a team member of yours, I guess.)
First, create a bot from your settings page. Look for the bot's email and API key:
The bot email address doesn't actually need to be a valid email address.
Then, follow the integration instructions below for the service you are interested in. It's as easy as that! If you run into any trouble, don't hesitate to email us.
{#--------------------------------------------------------------------#}Zulip supports both SVN and Git notifications from Beanstalk. In the beanstalk web application, go to the Setup page, and choose the Integrations tab.
Choose the Webhooks
integration from the list presented. Make sure to replace the @
in the bot's email address with %40
,
as Beanstalk's website will incorrectly refuse to parse a username containing a @
.
In the URL field, enter https://bot_email:bot_api_key@api.zulip.com/v1/external/beanstalk
:
Congratulations! You're done!
Whenever you do a
deployment, you'll get an automated notification that looks like
this:
First, download and install our Python
bindings and example scripts on your Capistrano server.
Once you've done that, you'll use the zulip-send
utility to notify you when certain events happen.
Here's some example code for sending a Zulip notification after a deployment has completed:
after 'deploy', 'notify:humbug' namespace :notify do desc "Post a message to Zulip that we've deployed" task :humbug do # this will post to Zulip as the user defined in # ~/.zuliprc if you omit --user and --api-key run_locally "echo ':beers: I just deployed to #{stage}! :beers:' | zulip-send \ --user capistrano-bot@example.com --api-key a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5 \ --stream commits --subject deployments || true" end end
Some notes:
--user
and --api-key
above, you can fill out ~/.zuliprc
on your Capistrano
machine. For instructions on how to write that file, see the API page.deploy
above to
another step of your deployment process, if you'd like the
notification to fire at a different time.Congratulations! You're done!
Whenever you do a
deployment, you'll get an automated notification that looks like
this:
Thanks to Wes of TurboVote for submitting this integration!
First, download and install our Python bindings and example scripts on your Git server.
Next, open integrations/git/zulip_git_config.py
in your favorite editor, and change the following lines to
specify the email address and API key for your Git bot:
ZULIP_USER = "git-bot@example.com" ZULIP_API_KEY = "0123456789abcdef0123456789abcdef"
You can also specify which pushes will result in
notifications and to what stream the notifications will be sent
by modifying the commit_notice_destination
function
in zulip_git_config.py
. By default, pushes to
the master
and test-post-receive
branches will result in a notification to
stream commits
.
Save integrations/git/zulip_git_config.py
to
the .git/hooks
directory of your git
repository.
Symlink
/usr/local/share/zulip/integrations/git/post-receive
into the .git/hooks
directory of your git repository.
Congratulations! You're done!
Whenever you make
a push to the master
branch of your git repository
(or whatever you configured above), the Zulip git plugin will
send an automated notification that looks like this:
Testing
You can test the plugin without changing
your master
branch by pushing to
the test-post-receive
branch.
First, go to your repository page and click "Settings":
From there, select "Service Hooks":
Select "Humbug" from the list, fill in the API key and email address for your bot, check the "active" checkbox, and pick "Update settings":
Congratulations! You're done!
When people push
to your repository, you'll see a commit message like the
following, to the stream commits
with a subject that matches the repository name (in this case "humbug-test"):
Install the plugin
Install the "Humbug" plugin by going to Manage Jenkins
> Manage Plugins > Available
, typing in "Humbug", and
clicking "Install without restart".
Configure the plugin
Once the plugin
is installed, configure it by going to Manage Jenkins >
Configure System
. Scroll to the section labeled "Humbug
Notification Settings", and specify your bot's email address,
API key, where you'd like your notification messages to go (we
recommend the stream jenkins
), and whether you'd
like a notification on every build, or only when the build fails
(Smart Notification).
Configure a post-build action for your project
Once you've done that, it's time to configure one of your
projects to use the Zulip notification plugin. From your
project page, click "Configure" on the left sidebar. Scroll to
the bottom until you find the section labeled "Post-build
Actions". Click the dropdown and select "Humbug
Notification". It should look as below. Then click "Save".
Congratulations! You're done!
When your builds
fail or succeed, you'll see a commit message like the following
with a subject that matches the project name (in this case
"Humbug Test"):
Troubleshooting
jenkins
) already exist? If not, add yourself to it and try again.In your JIRA administration control panel, go to the Webhooks page. If you are using the OnDemand hosted JIRA, follow the instructions on the Atlassian wiki for locating the Webhook UI.
Give your new web hook a name, and for the URL provide the following:
https://api.zulip.com/v1/external/jira?api_key=abcdefgh&stream=jira
where api_key
is the API key of your Zulip bot,
and stream
is the stream name you want the
notifications sent to. The stream must already exist.
Next, go back to Zulip and set up a stream called "jira," if it does not already exist. (If you prefer your JIRA notifications to go to a stream other than "jira," then change the URL above to match it.)
Congratulations! You're done!
Updates from JIRA will be sent to the Zulip stream you specified in the JIRA web-hook.
Plugin Installation
The JIRA integration plugin requires two JIRA plugins. Please install the following plugins using the Universal Plugin Manager in your JIRA installation:SSL Setup
As Zulip is using a StartCOM SSL certificate that is not recognized by default in the Java installation shipped with JIRA, you will need to tell JIRA about the certificate. Navigate toAdministration > System > Configure SSL
and in
the Import SSL Certificates
field, enter https://api.zulip.com
. After clicking Save Certificates
,
follow the on-screen instructions and restart JIRA for it to recognize the proper certificates.
Zulip Integration
Copy the folderintegrations/jira/org/
(from the tarball you downloaded above) to your JIRA classes
folder.
For self-contained JIRA installations, this will be atlassian-jira/WEB-INF/classes/
, but this may be different in your deployment.
Edit the constants at the top of org/zulip/jira/ZulipListener.groovy
and fill them with the appropriate values:
String zulipEmail = "jira-notifications-bot@example.com" String zulipAPIKey = "0123456789abcdef0123456789abcdef" String zulipStream = "JIRA" String issueBaseUrl = "https://jira.COMPANY.com/browse/"
In the Administrators page, navigate to Plugins > Other > Script Listeners
. In the Add Listener
section, click on
the Custom Listener
option. Select the events you wish the Zulip integration to fire for, and the projects you wish Zulip to be notified for.
In the Name of groovy class
field, enter org.zulip.jira.ZulipListener
.
Click Add Listener
, and JIRA will now notify your Zulip of changes to your issues!
Congratulations! You're done!
Updates from JIRA will be sent to the stream you've configured, as below.
First, download and install our Python bindings and example scripts on your Nagios server.
Next, open integrations/nagios/zuliprc.example
in your favorite editor, and change the following lines to
specify the email address and API key for your Nagios bot,
saving it to /etc/nagios3/zuliprc
on your Nagios
server:
[api] email=NAGIOS_BOT_EMAIL_ADDRESS key=NAGIOS_BOT_API_KEY
Copy integrations/nagios/zulip_nagios.cfg
to /etc/nagios3/conf.d
on your Nagios server.
Finally, add zulip
to the members
list for one or more of the contact groups in the CONTACT
GROUPS
section
of /etc/nagios3/conf.d/contacts.cfg
, doing
something like:
define contactgroup{
contactgroup_name admins
alias Nagios Administrators
members monitoring, zulip
}
/etc/init.d/nagios3 reload
.
Congratulations! You're done!
When your Nagios
system makes an alert, you'll see a message like the following,
to the stream nagios
(to change this, edit the
arguments to nagios-notify-zulip
in /etc/nagios3/conf.d/zulip_nagios.cfg
) with a
subject indicating the service with an issue:
Testing
If you
have external
commands enabled in Nagios, you can generate a test notice
from your Nagios instance by visiting using the Send
custom service notification
command in
the Service Commands
section of any individual
service's page on your Nagios instance.
Troubleshooting
You can confirm whether you've
correctly configured Nagios to run the Zulip plugin by looking
for SERVICE NOTIFICATION
lines mentioning zulip
in /var/log/nagios3/nagios.log
. You can confirm
whether you've configured the Zulip plugin code correctly by
running /usr/local/share/zulip/integrations/nagios/nagios-notify-zulip
directly.
Zulip supports Pivotal Tracker integration and can notify you of changes to the stories in your Pivotal Tracker project. In the Settings page
for your project, choose the Integrations tab. Scroll down to the Activity Web Hook
section, and enter the following url:
https://api.zulip.com/v1/external/pivotal?api_key=abcdefgh&stream=pivotal
where api_key
is the API key of your Zulip bot,
and stream
is the stream name you want the
notifications sent to. The stream must already exist.
Congratulations! You're done!
When you make changes in Pivotal Tracker they will be reflected in Zulip:
New Relic can send messages to a Zulip stream for alerts and deploys. In your New Relic Account Settings page, click "Integrations", then "Alerting notifications". On the "Webhook" tab, enter the following webhook URL:
https://api.zulip.com/v1/external/newrelic?api_key=abcdefgh&stream=newrelic
where api_key
is the API key of your Zulip bot,
and stream
is the stream name you want the
notifications sent to. The stream must already exist.
Congratulations! You're done!
Your New Relic events will
appear in Zulip:
It is easy to send Zulips on SVN commits, by configuring a post-commit hook. To do this:
pysvn
. On Linux, you can install
the python-svn
package. On other platforms, you can install
a binary or from source following
the instructions
on the pysvn website.integrations/svn/zulip_svn_config.py
and integrations/svn/post-commit
from the API bindings
directory to the hooks
subdirectory of your SVN
repository.zulip_svn_config.py
in your favorite editor and
change the ZULIP_USER
and ZULIP_API_KEY
variables at the top of the file to the credentials for the bot you'd
like to use for this integration.commits
; if you'd prefer a different stream, change it
now in zulip_svn_config.py
. Make sure that everyone
interested in getting these post-commit Zulips is subscribed to that
stream!Congratulations! You're done!
When you commit to this SVN
repository, the team can see these updates in real time in Zulip:
First, download and install our Python bindings and example scripts on your Trac server.
Next, open integrations/trac/zulip_trac_config.py
in
your favorite editor, and change the following lines to specify
your bot's email address, API key, and where you'd like your
notification messages to go (by default,
stream trac
):
ZULIP_USER = "trac-notifications-bot@example.com" ZULIP_API_KEY = "0123456789abcdef0123456789abcdef" STREAM_FOR_NOTIFICATIONS = "trac" TRAC_BASE_TICKET_URL = "https://trac.example.com/ticket"
Copy integrations/trac/zulip_trac.py
and integrations/trac/zulip_trac_config.py
into
your Trac installation's plugins/
subdirectory. Once you've done that, edit your Trac
installation's conf/trac.ini
to
add zulip_trac
to the [components]
section, as follows:
[components] zulip_trac = enabled
You may then need to restart Trac (or Apache) so that Trac will load our plugin.
Congratulations! You're done!
When people open
new tickets (or edit existing tickets), you'll see a message
like the following, to the stream trac
(or whatever
you configured above) with a subject that matches the ticket
name:
Additional trac configuration
After using the plugin
for a while, you may want to customize which changes to tickets
result in a Zulip notification using
the TRAC_NOTIFY_FIELDS
setting
in zulip_trac_config.py
.
Download a copy
of trello-to-zulip
and follow the instructions in README.md
. When you
make changes in Trello, they will be reflected in Zulip:
Thanks to Nathan from FoundationDB for submitting this integration!