jenkins assembly sonar, jacoco

Because the company is a maven project, only the construction of the
maven
.
write picture description here
Set the configuration sonarqube
write picture description here
Finally, you can build the job

Build a maven project The
key configuration is as follows
write picture description here
After the build is complete, you can go to the sonarqube server to see the structure

In order to directly see the results generated by jacoco on jenkins, you can use the jacoco plugin of jenkins to add post-build operations to
write picture description here
the built project configuration After the
write picture description here
build is complete, you can see the following chart on the jenkins project home page
]write picture description here

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325711611&siteId=291194637