adisakshya / pipeline_demo

CI/CD pipeline with docker, jenkins, ansible and kubernetes
MIT License
0 stars 0 forks source link

fix junit test-report generation #5

Open adisakshya opened 4 years ago

adisakshya commented 4 years ago

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[bot] commented 4 years ago

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.94. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.