change directory for gpg key
Change-Id: I7f47962f6fcccf4e868cc4ed3a85039f68cdc432
diff --git a/src/com/mirantis/mk/Debian.groovy b/src/com/mirantis/mk/Debian.groovy
index 2d2b76c..abcf02e 100644
--- a/src/com/mirantis/mk/Debian.groovy
+++ b/src/com/mirantis/mk/Debian.groovy
@@ -165,7 +165,7 @@
def privKey = common.getCredentials(privateKeyCredId, "key")
def private_key = privKey.privateKeySource.privateKey
writeFile file:"${workspace}/private.key", text: private_key
- sh(script: "gpg --no-tty --allow-secret-key-import --homedir ${workspace} --import ./private.key")
+ sh(script: "gpg --no-tty --allow-secret-key-import --homedir ${workspace}/.gnupg --import ./private.key")
}
/*