Closed dhakalsamundra closed 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
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](https://user-images.githubusercontent.com/40796489/133051828-1f714e7e-5ffc-42ed-93f4-168231b0bb58.png)