Hi, I am running deployments on Octopus Cloud and one step is being run on Hosted Ubuntu machine inside my custom docker image.
At the end of the deployment step I’ve added
new_octopusartifact "test-results.html". However, the artifact is not being collected at the end of the step with error:
09:52:05 Verbose | Artifact test-results.html will be collected from /cypress/test-results.html after this step completes
09:52:05 Verbose | Process /bin/bash in /home/Octopus/Work/20210505095134-1028-96 exited with code 0
09:52:05 Verbose | Collecting artifact test-results.html
09:52:05 Warning | Artifact test-results.html not found at path ‘/cypress/test-results.html’. This can happen if the file is deleted before the task completes.
I believe this is somehow related to the step running inside the docker image, and the Docker image is being deleted before the artifact is collected. I am not doing any cleanup whatsoever.