From c41a92b1493a3ac4a0da5f1a6f5a4358d527852d 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 57853c3d090..5653b05cb4e 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}"