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.
...
Solution - 1
Customers who already have tools running in their own Instance and want to integrate with Opsera
Solution - 2
Customers who don’t have tools in place and want to integrate directly with Opsera
Solution -1: Customers who already have tools:
Jenkins
...
Install Logstash plugin and add point to https://customerdomain-logstash.opsera.io
Login to Jenkins > Manage Jenkins > Manage Plugins > search for logstash plugin and install.
Screenshot : jenkins-installing-logstah-plugin.png
Login to Jenkins > Manage Jenkins > Configure > Under Logstash
Screenshot : jenkins-logstash-plugin.png
Index : Elasticsearch
(Leave Username and password blank)
Upon successful completion, Opsera will get the log information.
Sonarqube
...
From the sonarqube dashboard,
Create a user and token with and share it with via opsera portal.
User > My Account > Security
Screenshot : sonarqube-token.png
(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
Screenshot : sonar-add-webhook.png
...
Integration
Follow the below process to configure the Webhook.
Step 1
|
Step 2
|
Step 3
|
Step 4
|
Step 5
Once you have entered all the fields, Hit the Save Button. With these steps completed, now Log into Jenkins Tool to complete below steps. |
Step 6
|
Step 7
|
Step 8
|
Step 9
|
Step 10
|
Step 11Once the Restart is complete, Click Configure link from left Navigation. |
Step 12
|
Step 13
|
SonarQube ConfigurationTo integrate SonarQube, follow the below steps. |
Step 1Objective is to create Auth token to authorize Opsera to SonarQube.
|
Step 2
|
Step 3
|
Step 4
|
Step 5
|
Step 6
|
Step 7Now that you have created the Token, let’s update Opsera settings.
|
Step 8
|
Step 9In the Popup dialogbox,
|
Step 10Once you click Save Changes, Choose your Tool Name you just created. In this case, choose Sonarqube-demo from the list.
|
Step 11
|
Step 12
|
Step 13Type the below information in the popup dialogbox.
|
To Unsubscribe, from sonarqube,
Administration > configuration > webhooks >Delete.
Screenshot : sonar-add-webhook.png
For JMeter, Junit and XUnit to work as expected, you must configure filebeat before proceeding.
...
Under output.logstash add logstash-url as follows:
Filebeat File Sample:
Click the link for the complete sample filebeat file.https://drive.google.com/file/d/1COjLuCYQupsEWv7OWvgzSpWrOGuL-VlN/view?usp=sharing
Code Block output.logstash: # The Logstash hosts hosts: ["develk-logstash.opsera.io:5044"] ssl.enabled: true
Restart filebeat after Updating filebeat.yml:
Code Block sudo service filebeat restart
Check if filebeat config error
Code Block filebeat test config
To test if filebeat is able to establish connectivity to logstash
Code Block filebeat test output
...
Login into gitlab
Select project > Settings(left panel) > Webhook >
Add webhook to send all events to logstash
Screenshot : gitlab-add-webhook.png
...
Codeship
Add webhook and point to
Login to codeship dashboard > projects > “select your project” > Project settings (top-right) > Notifications >
Create user with read privileges and share username and password with opsera via email
Screenshot : Screenshot :
Codeship-project-settings.png
...
codeship-add-webhook.png
Solution -2: |
...
Tool Jenkins
...
Goto Platform page (https://opsera.io)
...
Create an application name
...
Select the tools you want to integrate and hit submit.
Direct Integration with Opsera |
SonarQube InstallationLog into Opsera Portal and Select Platform from the Left navigation |
Select Code Security Tool and click Deploy button. Click Confirm button in the popup window to confirm the installation. |
Jenkins InstallationIn the Platform page, Select Jenkins tool and click Confirm Button. |
|
...
|