有JUnit附件Jenkins插件的工作吗? [英] Is there an example of JUnit Attachments Jenkins Plugin working?
问题描述
我一直在试图在最后一个小时,以获得以下工作。我有我的附件存储在目标目录中。但是它们不在类级别或测试级别的测试页上链接。
I have been trying for the last hour or so to get the following working. I have my attachments stored in the target directory. But they are not linked on the test pages at either the class level or the test level.
我尝试过以下每种组合:
I have tried every combination of the following:
-
target / surefire-reports / [class] /
与目标/ surefire-reports / [class] .xml
c>目标/ surefire-reports / [class.mothod] / c> -
[class] .xml
- 将附件文件夹放入目标
/ testArtifacts / [class] /
在附件文件夹 中打印
[[ATTACHMENT | target / testArtifacts / [class] /captureDebug.txt]]
target / testArtifacts / [class] /
并打印 [[ATTACHMENT | / var / lib / jenkins /.../ target / testArtifacts / ] /captureDebug.txt]]
in std out - putting the attachment folder
target/surefire-reports/[class]/
with the target/surefire-reports/[class].xml
folder target/surefire-reports/[class.mothod]/
with thetarget/surefire-reports/[class].xml
- putting the attachment folder in target
/testArtifacts/[class]/
and printing[[ATTACHMENT|target/testArtifacts/[class]/captureDebug.txt]]
in std out - putting the attachment folder in
target/testArtifacts/[class]/
and printing[[ATTACHMENT|/var/lib/jenkins/.../target/testArtifacts/[class]/captureDebug.txt]]
in std out
我的Jenkins版本是1.529,JUnit附件插件是1.3。
My Jenkins version is 1.529 and JUnit Attachments Plugin is 1.3.
https://wiki.jenkins-ci.org/display/JENKINS/JUnit+Attachments+插件
我创建了一个简单的项目来说明这个问题,您可以在这里找到:
I created a simple project that exemplifies this problem, you can get it here:
https://github.com/marklemay/simple-failing-project
它是用命令行maven构建的( mvn -U -Pci clean integration-test -e
)。
It is build with command line maven (mvn -U -Pci clean integration-test -e
).
推荐答案
我认为这个问题的解决方案是升级到最新版本的Jenkins。我的公司对我们如何配置JUnit做了博客文章附件Jenkins插件,以帮助任何人。
I think the solution to this problem is upgrade to the latest version of Jenkins. My company did a blog post about how we configure the JUnit Attachments Jenkins Plugin, in case that helps anyone.
这篇关于有JUnit附件Jenkins插件的工作吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!