Export GNUPGHOME for debsign
Change-Id: Id77c68390478186f5b9dbed7c4e8fbd48b71ca16
diff --git a/src/com/mirantis/mk/Debian.groovy b/src/com/mirantis/mk/Debian.groovy
index abcf02e..d7a1fae 100644
--- a/src/com/mirantis/mk/Debian.groovy
+++ b/src/com/mirantis/mk/Debian.groovy
@@ -203,7 +203,7 @@
sh("sed -i -e s,$orig_sha1,$new_sha1,g -e s,$orig_sha256,$new_sha256,g -e s,$orig_size,$new_size,g -e s,$orig_md5,$new_md5,g *.changes")
}
- sh("debsign --re-sign -k ${gpg_key_id} *.changes")
+ sh("export GNUPGHOME=${workspace}/.gnupg; debsign --re-sign -k ${gpg_key_id} *.changes")
sh("dput -f \"ppa:${ppaRepo}\" *.changes")
}
}