Merge "Remove redutant vars/ folder"
diff --git a/src/com/mirantis/mcp/Git.groovy b/src/com/mirantis/mcp/Git.groovy
index 4bf2056..7281a04 100644
--- a/src/com/mirantis/mcp/Git.groovy
+++ b/src/com/mirantis/mcp/Git.groovy
@@ -65,6 +65,7 @@
   body()
 
   def merge = config.withMerge ?: false
+  def wipe = config.withWipeOut ?: false
   def targetDir = config.targetDir ?: "./"
   def port = config.port ?: "29418"
 
@@ -79,6 +80,11 @@
     scmExtensions.add([$class: 'LocalBranch', localBranch: "${config.branch}"])
   }
 
+  // we need wipe workspace before checkout
+  if (wipe) {
+    scmExtensions.add([$class: 'WipeWorkspace'])
+  }
+
   checkout(
     scm: [
       $class: 'GitSCM',