I am using pipline to build and run unit tests.
Here is my pipeline:
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'
}
}
}
And I get thiss error:
[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
Anyone know what is a problem?
I also use node.js, lab.js for testing