Advertisement
irobust

jenkins-dependency-check

Apr 3rd, 2019
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. 1. Install Plug-ins
  2. - SonarQube Scanner
  3. - Dependency Check
  4.  
  5. 2. GitHub Project
  6. - Projet URL = https://github.com/irobust/dependencyCheckDemo
  7.  
  8. 3. SCM
  9. - Git (Repo URL= https://github.com/irobust/dependencyCheckDemo.git)
  10.  
  11. 4.Scan with Dependency check
  12. - Set path to scan = ${WORKSPACE}/
  13. - Generate html report
  14.  
  15. 5. Create project and generate token in Sonarqube server
  16.  
  17. 6. Set Sonarqube Server
  18. - Go to configuration (SonarQube Servers)
  19. - Name = Sonarqube
  20. - Server URL = http://sonarqube:9000
  21. - Server Authentication Token = XXXXX
  22.  
  23. 7. Config Global Configuration Tool
  24. - Add sonarqube command
  25.  
  26. 8. Add Execute Sonarqube scanner
  27. - Set Analysis Properties
  28. sonar.projectKey=my:demo
  29. sonar.projectName=demo-project
  30. sonar.projectVersion=1.0
  31. sonar.sources=${WORKSPACE}/
  32. sonar.dependencyCheck.reportPath=${WORKSPACE}/dependency-check-report.xml
  33. sonar.dependencyCheck.htmlReportPath=${WORKSPACE}/dependency-check-report.html
  34.  
  35. 9. Archive
  36. - dependency-check-report.*
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement