begin by enabling sonarqube functionality from within
play

Begin by enabling sonarqube functionality from within jenkins plugin - PDF document

Begin by enabling sonarqube functionality from within jenkins plugin manager Sonarqube should be installed on the same machine as jenkins. Sonarqube could take a few minutes to start. THe default login is admin/admin. We need to create a token


  1. Begin by enabling sonarqube functionality from within jenkins plugin manager Sonarqube should be installed on the same machine as jenkins.

  2. Sonarqube could take a few minutes to start.

  3. THe default login is admin/admin.

  4. We need to create a token that can be shared from jenkins to sonarqube so that they can communicate securely.

  5. I created a token called jenkinstoken (doesn’t matter what you call it). THe important thing is to copy your code so that you can import it to jenkins in a second.

  6. Look at jenkins credentials

  7. You might not have had that credential from above (but you should have if you configured a slave node for jenkins builds). Anyways, you need to create a secret text credential. The secret is the token you got from sonarqube.

  8. In your petclinic repo edit ‘sonar-project.properties’. The file might already exist as well. Change the line that has the projectName to your first name After you have added the file to your git repo. Configure your jenkins project with an additional build step to execute sonarqube scanner , you should fill in the path to project properties with sonar-project.properties . Run the build job. If you are successful, you should see a new project show up on sonarqube that shows you some amazing facts about your project.

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend