简体   繁体   English

Sonarqube on Jenkins与IVY项目

[英]Sonarqube on Jenkins with IVY project

I have a ivy project setup in jenkins, on which I like to run sonarqube analysis. 我在jenkins有一个常春藤项目设置,我喜欢在其上运行sonarqube分析。

Unfortunately it is not possible (it seems) to add the sonarqube analysis on the project itself, but I need to create a mirror project (free-style) with sonarqube scanner as only build step. 不幸的是,似乎不可能(似乎)在项目本身上添加声纳分析,但是我需要创建一个带有sonarqube扫描器的镜像项目(自由风格)作为构建步骤。

I also need to set then the basedir not to the mirror project, but to the original one. 我还需要将基础不是设置为镜像项目,而是设置为原始项目。

All this is a bit unfortunate and I was wondering whether there is another option to run a sonar analysis on an ivy project in jenkins ? 所有这一切都有点不幸,我想知道是否还有其他选择在詹金斯的常春藤项目中进行声纳分析?

I have Jenkins 2.7.4, Sonarqube plugin 2.4.4 我有Jenkins 2.7.4,Sonarqube插件2.4.4

I could achieve my goal with using the PostBuildAction plugin. 我可以使用PostBuildAction插件实现我的目标。

This allowed to add the sonarqube-scanner job to be added at the end of the run. 这允许添加在运行结束时添加的sonarqube-scanner作业。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM