Jenkins pipeline stuck on old version of git repo

I believe that what you are seeing is the docker cache, not a jenkins cache. Try to use --no-cache.

sh 'docker build --no-cache -t spring_mock .'
1 Like