adamgruber / mochawesome

A Gorgeous HTML/CSS Reporter for Mocha.js
https://gitter.im/mochawesome/general
MIT License
1.06k stars 160 forks source link

Device or Resources are busy #354

Closed dhakalsamundra closed 2 years ago

dhakalsamundra commented 2 years ago

Describe the bug I was running the cypress test and it can not find the mochawesome dir to delete it in Jenkins but the same code will run as expected way in the local.

Code Reproduce I run the test locally and add all the reports file in the github and also make the docker image for that one. And I run the Jenkins job, still it does not find the mochawseome folder to delete it in the container.

Expected behavior When I run the test in the container, it should delete the mochawesome dir of image. Screenshot 2021-09-13 at 11 31 10

dhakalsamundra commented 2 years ago

I used like the below to mount the volume outside from container to the Jenkins work dir.

sh "docker run -v ${WORKSPACE}/cypress/reports/mochareports/:/cypress-cmp/cypress/reports/mochareports/ cypress-cmp test"

When I used this one, then I will land in the above error issue but if I just run the docker run image name commandName, then, I can able to run the test but the report.html won't be updated as it will update only inside the docker.

So, anyone know how to mount the updated report.html in the Jenkins work dir from the container