Getting "Exception caught: missing workspace /var/lib/jenkins-slave/workspace/SMOKE_TEST on Slave-LG-32" the exception, in scripted groovy pipeline execution.
As part of the build stage, we are running a docker container which executes the test cases and we see that the test case terminates abruptly and logs which are copied to the workspace also lost.
In our case, we want to explicitly clean up the workspace after copying the logs.
In which cases the workspace gets cleaned up?. How to avoid this cleanup?.