-
Notifications
You must be signed in to change notification settings - Fork 16
LiDOP Workshop Tutorial
dnleimbacher edited this page Jul 30, 2019
·
33 revisions
On a windows machine, use cmd or powershell and not git bash for executing vagrant up
- Clone the Git Repository
- Go to the Lidop Directory
- Start Lidop Virtual Machine
git clone https://github.com/LivingDevOps/LiDOP.git
cd lidop
vagrant up
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
https://github.com/LivingDevOps/LiDOP.helloworld_nodejs.git
- 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/]
Use GitBucket
- Sign in
- DemoProject/app/src/app.js
- Change message in Line 17
- Checkin
Link to Gitbucket:
http://10.20.30.40/gitbucket
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
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/