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}"