From 4f7d6516a0d7ad19304e46cab774ef1679aa94f4 Mon Sep 17 00:00:00 2001 From: Rodrigo Antunes Date: Tue, 16 Jul 2024 10:06:40 -0300 Subject: [PATCH] Adjust pipelines to use the gpg key provided by Apache to sign the artifacts --- .ci/jenkins/Jenkinsfile.deploy | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.ci/jenkins/Jenkinsfile.deploy b/.ci/jenkins/Jenkinsfile.deploy index c1ca9c830a..912164d282 100644 --- a/.ci/jenkins/Jenkinsfile.deploy +++ b/.ci/jenkins/Jenkinsfile.deploy @@ -123,12 +123,9 @@ pipeline { } } if (isRelease()) { - release.gpgImportKeyFromFileWithPassword(getReleaseGpgSignKeyCredsId(), getReleaseGpgSignPassphraseCredsId()) - withCredentials([string(credentialsId: getReleaseGpgSignPassphraseCredsId(), variable: 'SIGNING_KEY_PASSWORD')]) { - mavenCommand.withProperty('gpg.passphrase', SIGNING_KEY_PASSWORD) - mavenCommand.withProfiles(['apache-release']) - mavenRunClosure() - } + release.gpgImportKeyFromStringWithoutPassword(getReleaseGpgSignKeyCredsId()) + mavenCommand.withProfiles(['apache-release']) + mavenRunClosure() } else { mavenRunClosure() }