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 .'
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 .'