The following Pipeline steps result in an error:
Jenkins output (debug output omitted):
When the steps are not enclosed in docker.inside everything works fine.
My guess is that the Jenkins artifactory plugin creates files in the /tmp dir of the slave running the container instead of either using the workspace@tmp dir or the /tmp inside the container. After the gradle run the Jenkins plugin tries to read the file from /tmp in the container, where it was never created.
We want to run multiple containers per slave so mounting the /tmp directory in the container is not possible.