Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This page is an overview of what you need to do to onboard your CI/CD systems and tools and maintain a single pane of solution on Opsera.

...

  1. Solution - 1

    1. Customers who already have tools running in their own Instance and want to integrate with Opsera

  2. Solution - 2

    1. Customers who don’t have tools in place and want to integrate directly with Opsera

Solution -1: Customers who already have tools:

Jenkins

  1. Follow the below process to configure the Webhook.

Log into Opsera Portal and select Tool Registry from left navigation.

Click + New Tool Button to add a tool.

Image RemovedImage Added

Once you click Add Tool, a popup will be displayed. Type Jenkins Tool Name in the Tool Name input and Type Jenkins as Tool Identifier in the dropdown.

Once you click Create tool from the Modal Popup, Choose your Tool Name from the Main Tool Registry screen. Then, Click the Connections TAB to enter all the below fields.

Hit Save Button once you are done. With these steps completed, now Log into Jenkins Tool to complete below steps.

Click the Create Tool Button once you have completed previous inputs in the popup.

Log into Jenkins

Click Manage Jenkins

In the Manage Jenkins page, Choose Notification

Once you select the Job and click install, Jenkins Installation will start as shown below.

Once Installation is complete, Jenkins will restart.

Once the Restart is completed, Click Configure from left Navigation.

Goto Job Notifications TAB and enter the Webhook URL

Now you have completed all the steps required. Once you run any job via Jenkins on your end, Analytics will be available at Opsera Portal.

Sonarqube

...

From the sonarqube dashboard, 

  1. Create a user and token with and share it with via opsera portal. 

    1. User > My Account > Security 

    2. Screenshot : Fig 2

      Image Removed

  2. (we (Opsera team) are manually setting logstash environment variable)

Customer to add Webhook to send data to https://customerdomain-logstash.opsera.io

...

During onboarding process, email will be sent to customer with Logstash URL

...

Login to sonarqube dashboard

...

Administration > configuration > webhooks > create 

  1. Screenshot : sonar-add-webhook.png

    Image Removed

...

SonarQube Configuration

To integrate SonarQube, follow the below steps.

Login to SonarQube portal to create Auth token which is required for Opsera Integration.

Once you login, Click + Icon located on the top right menu.

Image Added

Enter an unique Project key name and Display name.

Image Added

Note the Project Key you just created.

Image Added

Now we have to create a Token that you can use with Opsera. Click Administrator link from Top right menu.

Image Added

In the Administrator screen, click Security TAB to create the Security Token.

Image Added

Once you have created, you should see a success message as shown below.

Image Added

Now that you have created the Token, let’s update Opsera settings.

Log into Opsera Portal and select Tool Registry from left navigation.

Image Added

Click + New Tool Button to add a tool.

Image Added

In the Popup dialogbox,

  1. Type a tool name.

  2. Choose SonarQube as your Tool.

  3. Select Code Scan as Tool Type from the Dropdown

  4. Click Save Changes

Image Added

Once you click Save Changes, Choose your Tool Name you just created. In this case, choose Sonarqube-demo from the list.

  1. In the Pop-up, Click Connections TAB to complete the highlighted fields.

Image Added

Once you click save, login to SonarQube Portal.

Once you login, click Configuration from top left Menu and Choose Webhooks.

Image Added

Click Create Button located on the right side.

Image Added

Type the below information in the popup dialogbox.

Image Added

Finally Click Create button to complete the Webhook.

  1. To Unsubscribe, from sonarqube, 

    1. Administration > configuration > webhooks >Delete.

      1. Screenshot : sonar-add-webhook.png

...

  1. Login into gitlab

  2. Select project > Settings(left panel) >  Webhook > 

  3. Add webhook to send all events to logstash

    1. https://customerdomain-logstash.opsera.io/webhook/gitlab

Screenshot : gitlab-add-webhook.png

...

Codeship

  1. Add webhook and point to 

    1. Login to codeship dashboard > projects > “select your project” >  Project settings (top-right) > Notifications >  

    2. https://customerdomain-logstash.opsera.io/webhook/codeship

    3. Create user with read privileges and share  username and password with opsera via email

    4. Screenshot : Screenshot : codeship-add-webhook.png

Solution -2:

...

Tool Jenkins

...

Goto Platform page (https://opsera.io)

...

Create an application name

...

Direct Integration with Opsera

SonarQube Installation

Log into Opsera Portal and Select Platform from the Left navigation

Image Added

Select Code Security Tool and click Deploy button.

Image Added

Click Confirm button in the popup window to confirm the installation.

Jenkins Installation

In the Platform page, Select Jenkins tool and click Confirm Button.

Image Added

  1. Once you submit, Email will be sent with Tool/URL information. This will take approximately 15 mins.

  2. Logstash plugin and Filebeat is automatically configured by java-microservice.

  3. ELK stack and DB details will be sent via email

...

  1. .