**  
**

**Viber notification plugin for Jenkins **

** **This plugin sends out notifications/text messages directly to your
Viber public account via Jenkins.  Each public account would an unique
authentication token which you need to configure in Jenkins.  The
authentication token (also known as application key) is a unique and
secret account identifier. It is used to authenticate requests in the
Public Accounts API and to prevent unauthorized persons from sending
requests on behalf of a Public Account. You will need this token during
the integration process (Viber public account + Jenkins). The
authentication token is generated upon Public Account creation and can
be viewed by the account's admins in the "edit info" screen of their
Public Account.

![](docs/images/vibersnip.PNG)

 

 

Below link would guide you on  how to create your own viber public
account.

<https://support.viber.com/customer/portal/articles/2733413-create-a-public-account>

Once account is created, add members and you're good to go.

 

**Steps to add Viber notification plugin to your Jenkins job:**

** **

Simple demonstration of how you can add the plugin and send a simple
text message to Viber public account via Jenkins.

 

1.  Launch Jenkins & click on ‘Manage Jenkins’.  
    ![](docs/images/jenkins01.PNG)

 

      2. Click on ‘Manage Plugins’

   
 ![](docs/images/jenkins02.PNG)

 

      3.Click on ‘Available’ tab and then search for Viber Notification
plugin

![](docs/images/viber-jenkins.PNG)

 

 

(If the plugin is not listed then, click on ‘Check Now’ button as shown
below. This will sync your Jenkins with the central plugin repository. )
Once this is done, search for Viber notification plugin.

 ![](docs/images/jenkins.PNG)

 

     4. Install the plugin and restart your Jenkins.

   
 ![](docs/images/viber_notification.png)

     5.Go to your project, click on configure and in the build steps
select Viber Notification

   
 ![](docs/images/viber.PNG)

      6.Key in the auth token of the public account that you want to
send message to, sender name and the message content.

       7.Build your project.

 

Once build process is done , you’ll see the message in your Viber public
account.  (If you want to send the build status and want Jenkins to
trigger Viber notification post build process, you need to use this
plugin along with Flexible Publish plugin)

![](docs/images/vibernotif.png)