sonarqube使用说明

IT运维 0 651
00224211
00224211 LV2 关注 2023年4月27日 17:14 编辑
<p><br></p><p class="MsoNormal" align="center" style="text-align:center"><b style="mso-bidi-font-weight: normal"><span lang="EN-US" style="font-size:14.0pt;mso-bidi-font-size:9.0pt; font-family:&quot;Arial&quot;,sans-serif">sonarqube</span></b><b style="mso-bidi-font-weight: normal"><span style="font-size:14.0pt;mso-bidi-font-size:9.0pt;mso-ascii-font-family: Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:Arial">使用说明</span></b><span lang="EN-US" style="font-size:14.0pt;mso-bidi-font-size:12.0pt"><o:p></o:p></span></p><div style="mso-element:para-border-div;border:solid windowtext 1.0pt; mso-border-alt:solid windowtext .5pt;padding:1.0pt 4.0pt 1.0pt 4.0pt"> <p><span style="font-weight: bold; font-size: small;">sonarqube使用说明</span><br>sonarqube :<br>访问地址1:http://10.201.4.14:30544/projects<br>访问地址2:http://10.201.4.6:30544/projects<br>sonarqube用户名/密码为: admin/admin123456</p> </div><p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p><p>登录后的页面:<br></p><p class="MsoNormal"><img src="https://51techud.yykj.com:9002/forum/sonar_1.png" style="max-width:100%;"><br></p><p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p><p>登录后的页面:<br><br>在jenkins中,使用sonarqube检查应用代码步骤:<br><br>1、 登录Jenkins<br>jenkins地址: http://10.201.4.2:8080<br>用户名:admin<br>密码:admin123456<br><br></p><p class="MsoListParagraph" style="margin-left:18.0pt;text-indent:0cm;mso-char-indent-count: 0"><img src="https://51techud.yykj.com:9002/forum/sonar_2.png" style="max-width:100%;"><br></p><p class="MsoListParagraph" style="margin-left:18.0pt;text-indent:0cm;mso-char-indent-count: 0"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p><p class="MsoListParagraph" style="margin-left:18.0pt;text-indent:-18.0pt; mso-char-indent-count:0;mso-list:l0 level1 lfo1"><!--[if !supportLists]--><span lang="EN-US"><span style="mso-list:Ignore">2、</span></span><!--[endif]-->这里以项目【<span lang="EN-US">fgbp-face-call-ne</span>】,做<span lang="EN-US"> sonarqube</span>配置,创建【<span lang="EN-US">fgbp-face-call-ne</span>】任务<span lang="EN-US"><o:p></o:p></span></p><p class="MsoListParagraph" style="margin-left:18.0pt;text-indent:0cm;mso-char-indent-count: 0"><img src="https://51techud.yykj.com:9002/forum/sonar_3.png" style="max-width:100%;"><br></p><p class="MsoListParagraph" style="margin-left:18.0pt;text-indent:0cm;mso-char-indent-count: 0"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p><p><br>3、 修改【fgbp-face-call-ne】任务的 git 地址和分支</p><p class="MsoListParagraph" style="margin-left:18.0pt;text-indent:0cm;mso-char-indent-count: 0"><img src="https://51techud.yykj.com:9002/forum/sonar_4.png" style="max-width:100%;"><br></p><p>修改后的截图</p><p class="MsoListParagraph" style="margin-left:18.0pt;text-indent:0cm;mso-char-indent-count: 0"><img src="https://51techud.yykj.com:9002/forum/sonar_5.png" style="max-width:100%;"><br></p><p class="MsoListParagraph" style="margin-left:18.0pt;text-indent:0cm;mso-char-indent-count: 0"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p><p class="MsoListParagraph" style="margin-left:18.0pt;text-indent:0cm;mso-char-indent-count: 0"><span lang="EN-US"><o:p></o:p></span></p><p>4、 点【立即构建】,做应用的代码检查</p><p class="MsoListParagraph" style="margin-left:18.0pt;text-indent:0cm;mso-char-indent-count: 0"><img src="https://51techud.yykj.com:9002/forum/sonar_6.png" style="max-width:100%;"><br></p><p class="MsoListParagraph" style="margin-left:18.0pt;text-indent:0cm;mso-char-indent-count: 0"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p><p class="MsoListParagraph" style="margin-left:18.0pt;text-indent:0cm;mso-char-indent-count: 0"><span lang="EN-US"><o:p></o:p></span></p><p>5、 在 sonarqube中,看代码检查报告(数据)</p><p class="MsoListParagraph" style="margin-left:18.0pt;text-indent:0cm;mso-char-indent-count: 0"><img src="https://51techud.yykj.com:9002/forum/sonar_7.png" style="max-width:100%;"><br></p><p class="MsoListParagraph" style="margin-left:18.0pt;text-indent:0cm;mso-char-indent-count: 0"><br></p><p>6、 在 sonarqube中, 查看项目检查的详细数据</p><p class="MsoListParagraph" style="margin-left:18.0pt;text-indent:0cm;mso-char-indent-count: 0"><img src="https://51techud.yykj.com:9002/forum/sonar_8.png" style="max-width:100%;"><br></p><p class="MsoListParagraph" style="margin-left:18.0pt;text-indent:0cm;mso-char-indent-count: 0"><img src="https://51techud.yykj.com:9002/forum/sonar_9.png" style="max-width:100%;"><br></p><p class="MsoListParagraph" style="margin-left:18.0pt;text-indent:0cm;mso-char-indent-count: 0"><br></p><p class="MsoListParagraph" style="margin-left:18.0pt;text-indent:0cm;mso-char-indent-count: 0">补充:</p><p>&nbsp; &nbsp; &nbsp; &nbsp;如果创建项目时,发现项目已经存在,且不是sonarqube的配置,则删除这个项目,重新创建这个项目即可</p><p class="MsoListParagraph" style="margin-left:18.0pt;text-indent:0cm;mso-char-indent-count: 0"><img src="https://51techud.yykj.com:9002/forum/sonar_10.png" style="max-width:100%;"><br></p><p class="MsoListParagraph" style="margin-left:18.0pt;text-indent:0cm;mso-char-indent-count: 0"><span lang="EN-US"><o:p><br></o:p></span></p><p class="MsoListParagraph" style="margin-left:18.0pt;text-indent:0cm;mso-char-indent-count: 0"><span lang="EN-US"><o:p>本文档说到的sonarqube使用,可通过看实操视频《sonarqube使用说明.mp4》进一步了解。&nbsp;</o:p></span></p><p class="MsoListParagraph" style="margin-left:18.0pt;text-indent:0cm;mso-char-indent-count: 0"><iframe src="/video?url=https://51techud.yykj.com:9002/forum/sonarqube%E4%BD%BF%E7%94%A8%E8%AF%B4%E6%98%8E.mp4" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true" style="text-indent: 0cm;"></iframe></p>
赞(0) 收藏(0)  分享
相关标签: sonarqube
0个回复
  • 消灭零回复
Vaptcha启动中...