Cleanup ssh and git functions

Change-Id: I5e9a1acab12e479d86321aa9822e6383a707d624
diff --git a/git-mirror-2way-pipeline.groovy b/git-mirror-2way-pipeline.groovy
index 0b7e023..e70e9e7 100644
--- a/git-mirror-2way-pipeline.groovy
+++ b/git-mirror-2way-pipeline.groovy
@@ -1,4 +1,5 @@
 def common = new com.mirantis.mk.Common()
+def git = new com.mirantis.mk.Git()
 stage("Mirror") {
   node() {
     try{
@@ -16,7 +17,7 @@
         checkout changelog: true, poll: true,
           scm: [$class: 'GitSCM', branches: pollBranches, doGenerateSubmoduleConfigurations: false,
           extensions: [[$class: 'CleanCheckout']],  submoduleCfg: [], userRemoteConfigs: [[credentialsId: CREDENTIALS_ID, url: SOURCE_URL]]]
-        common.mirrorGit(SOURCE_URL, TARGET_URL, CREDENTIALS_ID, BRANCHES, true, true, false)
+        git.mirrorGit(SOURCE_URL, TARGET_URL, CREDENTIALS_ID, BRANCHES, true, true, false)
       }
     } catch (Throwable e) {
        // If there was an error or exception thrown, the build failed
@@ -26,4 +27,4 @@
        common.sendNotification(currentBuild.result,"",["slack"])
     }
   }
-}
\ No newline at end of file
+}