Skip to content

Commit

Permalink
Adjust pipelines to use the gpg key provided by Apache to sign the ar…
Browse files Browse the repository at this point in the history
…tifacts (#2079)
  • Loading branch information
rodrigonull authored Jul 16, 2024
1 parent 7f61972 commit 2e1bde1
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .ci/jenkins/Jenkinsfile.deploy
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit 2e1bde1

Please sign in to comment.