-
Notifications
You must be signed in to change notification settings - Fork 16
LiDOP Workshop Tutorial
dnleimbacher edited this page Dec 12, 2018
·
33 revisions
Use Jenkins
- Go to Environment
- Use Create_Service and build with Parameters for each Service
a. Selenium
b. SonarQube

- Go to LiDOP
- Load Plugin
- Build with Parameters
a. Select Repo
b. Set Clone Repo (Tick CopyRepository)
c. Build the pipeline

- Move back to the Jenkins main overview
- Select your {PROJECTNAME} folder
- Select [Build_Application] pipeline
- Build Now

- Check build history to find the link [goto APP]
- Right-click on APP and open in new TAB
- See the demo page displayed
Use GitBucket
- Sign in
- DemoProject/app/src/app.js
- Change message in Line 19
- Checkin

- Check pipeline in Jenkins
- Check App page
Use GitBucket
- DemoProject/app/test/integration/test.js
- Change Name in Line 58

- Checkin change
- GoTo Jenkins and check Pipeline
- Goto LiDOP Main Page
a. Click Selenium Icon, encounter Selenium Node
b. How is the app tested?
Use Sonarqube, Gitbucket and Jenkins
- Show SonarQube
- Go to Gitbucket
2.1 change App/src/app.js
2.2 Duplicate line “5”
2.3 Commit change
2.4 Check Pipeline
- Check SonarQube
3.1 Go to the failed Project
3.1.1 Click on Coverage on new Code
3.1.2 Choose the App.js File
3.1.3 Select the line with the error
3.1.1.1 Open
3.1.1.2 Resolve as won’t fix
3.1.1.3 Add Comment
3.2 Rebuild pipeline
3.2.1 Result green
Gitbucket and Jenkins
- Goto Bitbucket build/App.Jenkinsfile
- Change Line 63 to stage(“Deploy App for Testing”){
- Copy Line 63 – 77
- Add it after Line 98, we are creating a new Stage
a. Rename Stage Deploy App for Pro
b. Change Port to 9110
c. Commit Change
- Check App
a. /port/9110
Use Jenkins, ELK
- Goto Environment
- Create Service ELK
- Check on LiDOP Main Page for ELK
- Click on ELK icon
- Kibana view loads
- Goto Dashboards and select [Metricbeat Docker] Overview
- Check containers running on LiDOP
a. How many are running?
- Goto Dashboards
a. Select [Metricbeat System] Host overview
- Check the HOST information collected by ELK
a. What is the memory consumption?