`

Integrate Jenkins with Sonar

 
阅读更多

原创转载请注明出处:http://agilestyle.iteye.com/blog/2356314

 

Prerequisite

Jenkins默认已经下载安装完毕(Windows和Linux安装大同小异,这里不赘述)

Jenkins中Git,JDK,Maven已经配置完毕


 

 

Integration Steps

安装SonarQube插件


Note:

这里已经安装过SonarQube,所以在Installed界面

 

下载Sonar

https://www.sonarqube.org/downloads/


Note:

下载之后,启动Sonar,http://localhost:9000/account/security,默认登录账号/密码:admin/admin,generate token


 

 

下载SonarQube Scanner

https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner


 

configure中配置SonarQube servers

 

Global Tool Configuration中配置SonarQube Scanner

项目configure中配置Build —— Execute SonarQube Scanner

#require metadata
sonar.projectKey=PetClinic
sonar.projectName=PetClinic
sonar.projectVersion=1.0

#Path to source directory
sonar.sources=F:/Program Files/Jenkins/workspace/$JOB_NAME/src


 

save之后,build

Note:

build之前,记得把Proxy关掉,省的出现一些莫名其妙的错误,又不知所以然 

 

build成功后查看SonarQube的Detail


 

查看Jenkins中项目的Dashboard信息

 

 

Reference

https://jenkins.io/

https://www.sonarqube.org/downloads/

https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner

https://docs.sonarqube.org/display/SONAR/Analysis+Parameters

  • 大小: 172.6 KB
  • 大小: 49.4 KB
  • 大小: 144.5 KB
  • 大小: 119.8 KB
  • 大小: 97.5 KB
  • 大小: 112.4 KB
  • 大小: 101.4 KB
  • 大小: 118.3 KB
  • 大小: 181.2 KB
  • 大小: 97.7 KB
  • 大小: 45.2 KB
分享到:
评论

相关推荐

    Jenkins Essentials.pdf

    If you are a Jenkins novice or beginner with a basic understanding of continuous integration, then this is the book for you. Beginners in Jenkins will get quick hands-on experience and gain the ...

    Jenkins Fundamentals

    You will learn how to deploy via Docker and integrate with Git. Next you will move on to understanding bespoke plugins and services to further customize your workflow, and dynamically adjust your ...

    Jenkins 2--Up and Running

    Design, implement, and execute continuous delivery pipelines with a level of flexibility, control, and ease of maintenance that was not possible with Jenkins before. With this practical book, build ...

    Jenkins Essentials - Second Edition

    Explore Continuous Integration and automation, along with how to manage and configure Jenkins Master using Jenkins to build, test, and package Java applications Learn about Jenkins' extensible ...

    apach module for integrate with tomcat

    apach module for integrate with tomcat

    BIRT integrate with RCP

    Here comes an example to show how BIRT integrate with RCP,This is not a complete project,But snippets are foundation to built large projects. It's worth learning.

    integrate_with_geopandas.ipynb

    GEE训练教程

    How to integrate BIEE with Oracle SSO Portal.doc

    【整合BIEE与Oracle SSO门户的详细步骤】 在企业级IT环境中,实现单点登录(SSO)是提高用户便利性和系统安全性的重要手段。本文档将详细讲解如何将Oracle Business Intelligence Enterprise Edition(BIEE)与...

    install+integrate VTK with microsoft visual C++ 2010 express

    【知识点详解】 本文主要介绍如何在Microsoft Visual C++ 2010 Express环境下安装和集成Visualization Toolkit(VTK)。VTK是一个开源的、用于三维图形渲染和可视化的库,广泛应用于科学计算和数据分析领域。...

    Compile to integrate with whatsap, receive and send direct msg

    Compile to integrate with whatsap, receive and send direct msg in your application delphi fully full component. see the video below for you to see how the component works ...

    jenkins pipeline关系

    Read more about how to integrate steps into your Pipeline in the Steps section of the Pipeline Syntax page

    Data Analytics with Spark Using Python

    • Efficiently integrate Spark with both SQL and nonrelational data stores • Perform stream processing and messaging with Spark Streaming and Apache Kafka • Implement predictive modeling with SparkR...

    Pro RESTful APIs Design Build and Integrate with REST JSON XML and JAX-RS 无水印pdf

    Pro RESTful APIs Design Build and Integrate with REST JSON XML and JAX-RS 英文无水印pdf pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn...

    Integrate就医服务平台论文

    《Integrate就医服务平台论文》是一份深入探讨现代医疗系统整合技术的重要文献,旨在解析和阐述Integrate就医服务平台的设计理念、架构及其与硬件设备的交互方式。这篇论文详细介绍了如何通过集成化的方式提升医疗...

    Web Programming with Dart

    Web Programming with Dart is for programmers who want to master the new Dart programming language from Google, and also web developers who want to understand how Dart can integrate perfectly with ...

    SINUMERIK Integrate Create MyHMI /WinCC V14[手册].pdf

    1. 手册概述:本手册是针对SINUMERIK Integrate Create MyHMI / WinCC V14的配置手册,专门适用于数控系统SINUMERIK 840D sl 和 840DE sl,以及CNC软件840D sl 和 840DE sl V4.5和V4.7版本,还包括TIAPortal V1410/...

    practical internet of things with javascript

    You will then move on to build a weather station with temperature, humidity and moisture sensors and further integrate Alexa with it. Further, you will build a smart wearable for understanding the ...

Global site tag (gtag.js) - Google Analytics