clone submodules using ssh agent
Change-Id: I70df9502e2c36e83144cc6a5d97dbef97e1a79bd
diff --git a/generate-cookiecutter-products.groovy b/generate-cookiecutter-products.groovy
index 783bd67..5ddea91 100644
--- a/generate-cookiecutter-products.groovy
+++ b/generate-cookiecutter-products.groovy
@@ -15,6 +15,7 @@
git = new com.mirantis.mk.Git()
python = new com.mirantis.mk.Python()
saltModelTesting = new com.mirantis.mk.SaltModelTesting()
+ssh = new com.mirantis.mk.Ssh()
timestamps {
node("python&&docker") {
@@ -51,7 +52,7 @@
sh "git init"
if (SHARED_RECLASS_URL != '') {
- sh "git submodule add ${SHARED_RECLASS_URL} '${modelEnv}/classes/system'"
+ ssh.agentSh "git submodule add ${SHARED_RECLASS_URL} '${modelEnv}/classes/system'"
git.commitGitChanges(modelEnv, "Added new shared reclass submodule", "${user}@localhost", "${user}")
}
}