[FIXED JENKINS-16314] Retain tag information on post-checkout cleanup