[JENKINS-19591] Try to fix branch name conflict when fetching by executing git remote prune first