我正在使用pipline来构建和运行单元测试。Jenkins不生成测试报告文件
这里是我的管道:
pipeline {
agent any
stages {
stage('Build') {
steps {
sh '''
./system/fuge/ci/docker-up.sh
./system/fuge/ci/docker-down.sh
'''
}
}
stage('Test') {
steps {
sh '''
./system/fuge/ci/docker-up-test.sh
'''
}
}
}
post {
always {
junit 'build/reports/**/*.xml'
}
}
}
我也得到thiss错误:
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Declarative: Post Actions)
[Pipeline] junit
Recording test results
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: No test report files were found. Configuration error?
Finished: FAILURE
任何人都知道什么是问题呢?
我也用的node.js,lab.js测试
当你运行'./ system/fuge/ci/docker-up-test.sh'在jenkins之外,做一些xml文件出现在'build/reports/**/*。xml'中? – burnettk
看起来像你的档案错误的文件夹,确保你有特定路径上的一些XML。您可以检查完成后运行管道的机器并找到xml,而不是修复已存档的命令。 –
测试报告在我的码头集装箱中,我如何访问它们? –