I saw maven repo is copied to /opt/.m2 directory on Jenkins slave from maven server and it fills up Jenkins slave disk. I wanna clean it up. How can I do it? can I remove all of the repos from Jenkins slave after each build? is that necessary to keep all dependencies on Jenkins slave but they are already existing in maven server.
- clean up maven repo in Jenkins slave JasonX