From a386c6cdda26ce6f058165a4349eff1cb0c6ed93 Mon Sep 17 00:00:00 2001 From: Rushabh Date: Thu, 22 Aug 2019 14:48:58 -0700 Subject: [PATCH] HBASE-22852 Stop gpg agent daemons in hbase nightlies. (#525) Signed-off-by: Stack Signed-off-by: Sean Busbey (cherry picked from commit 0438fdc0f66f777e691123e04f638ad7996f764e) --- .../jenkins-scripts/cache-apache-project-artifact.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dev-support/jenkins-scripts/cache-apache-project-artifact.sh b/dev-support/jenkins-scripts/cache-apache-project-artifact.sh index 57853c3d090e..5653b05cb4e2 100755 --- a/dev-support/jenkins-scripts/cache-apache-project-artifact.sh +++ b/dev-support/jenkins-scripts/cache-apache-project-artifact.sh @@ -78,6 +78,12 @@ else fi function cleanup { + if [ -n "${keys}" ]; then + echo "Stopping gpg agent daemon" + gpgconf --homedir "${working_dir}/.gpg" --kill gpg-agent + echo "Stopped gpg agent daemon" + fi + if [ "true" = "${cleanup}" ]; then echo "cleaning up temp space." rm -rf "${working_dir}"