[FIXED JENKINS-18834] moving Prune before Fetch
Merge remote-tracking branch 'sapone/refactoring' into refactoring