我注意到jenkins声呐的jacoco插件已发布,我的问题是如何在pom.xml
中进行配置?我已经制作了jacoco.exec
,但是如何使用jacoco插件制作.xml
文件?我在github(Jacoco Plugin on GitHub)上找到它
我已经下载了zip并尝试将其编译为maven,但出现错误
The project org.jenkins-ci.plugins:jacoco:1.0.1-SNAPSHOT (D:\Projects\jenkinsci-jacoco-plugin\pom.xml) has 1 error
Non-resolvable parent POM for org.jenkins-ci.plugins:plugin:1.424.6: Could not transfer artifact org.jenkins-ci:jenkins:pom:1.21 from/to repo.jenkins-ci.org (http://repo.jenkins-ci.org/public/):
Error transferring file: Server returned HTTP response code: 503 for URL: http://repo.jenkins-ci.org/public/org/jenkins-ci/jenkins/1.21/jenkins-1.21.pom @ org.jenkins-ci.plugins:plugin:1.424.6,
C:\Documents and Settings\ro1v0367\.m2\repository\org\jenkins-ci\plugins\plugin\1.424.6\plugin-1.424.6.pom, line 4, column 11 -> [Help 2]
最佳答案
那些想尝试使用jacoco插件的人现在拥有很好的测试覆盖范围,而且已经发布了几个月,并且不需要声纳就可以在Jenkins上工作。一些有用的链接对那些感兴趣的人:
https://stackoverflow.com/questions/11134387/