Don't override user provided by credentials
There is no need to specify user/login in repository
URL if credentials are used.
Change-Id: Id9e998e5ed618daa07f6e661de01d8280e0fa50b
diff --git a/src/com/mirantis/mcp/Git.groovy b/src/com/mirantis/mcp/Git.groovy
index b18be10..b9b7556 100644
--- a/src/com/mirantis/mcp/Git.groovy
+++ b/src/com/mirantis/mcp/Git.groovy
@@ -88,7 +88,7 @@
userRemoteConfigs: [[
credentialsId: "${config.credentialsId}",
name: 'origin',
- url: "ssh://${config.credentialsId}@${config.host}:${port}/${config.project}.git"
+ url: "ssh://${config.host}:${port}/${config.project}.git"
]]
]
)
@@ -136,7 +136,7 @@
scmUserRemoteConfigs.put('url',"https://${GERRIT_HOST}/${GERRIT_PROJECT}")
} else {
// else use ssh checkout
- scmUserRemoteConfigs.put('url',"ssh://${GERRIT_NAME}@${GERRIT_HOST}:${GERRIT_PORT}/${GERRIT_PROJECT}.git")
+ scmUserRemoteConfigs.put('url',"ssh://${GERRIT_HOST}:${GERRIT_PORT}/${GERRIT_PROJECT}.git")
scmUserRemoteConfigs.put('credentialsId',credentials)
}