My CI job creates __pycache__ as root, can't clean the workspace on next run My CI job creates __pycache__ as root, can't clean the workspace on next run jenkins jenkins

My CI job creates __pycache__ as root, can't clean the workspace on next run


Found a solution/workaround, by making sure the user inside the docker container has the same UID/GID as my host user, like this: https://medium.com/redbubble/running-a-docker-container-as-a-non-root-user-7d2e00f8ee15.