-
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
Link to Demo Page:
http://10.20.30.40:9100/ttp://10.20.30.40:9100/
Use GitBucket
- Sign in
- DemoProject/app/src/app.js
- Change message in Line 19

- Checkin
Link to Gitbucket:
http://10.20.30.40/gitbucket
- Check pipeline in Jenkins
- Check App page
Use GitBucket
- DemoProject/app/test/integration/test.js
- Change Text 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?
Link to Gitbucket:
http://10.20.30.40/gitbucket
Link to Lidop MainPage:
http://10.20.30.40/
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
Link to Demo Page:
http://10.20.30.40: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?