fix junit test-report generation
Opened this issue · 1 comments
adisakshya commented
The code to generate the test-report is;
/*
* Get JUnit test reports
*/
def getTestReports(String VERSION) {
def testContainerID = getTestContainerID(VERSION)
executeCommand('docker cp ' + testContainerID + ':/usr/src/app/build .')
junit './build/reports/*.xml'
}
Reports are present in the test-container which generate them. Maybe the docker-cp
command used here is incorrect, it runs on the Jenkins docker-container but doesn't copy the reports from test-container to Jenkins docker-container and the pipeline fails.
issue-label-bot commented
Issue-Label Bot is automatically applying the label bug
to this issue, with a confidence of 0.94. Please mark this comment with 👍 or 👎 to give our bot feedback!
Links: app homepage, dashboard and code for this bot.