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