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 (#3581)
  • Loading branch information
rodrigonull authored Jul 16, 2024
1 parent e966dd9 commit bdf1715
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .ci/jenkins/Jenkinsfile.deploy
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,9 @@ pipeline {
}
}
if (isRelease()) {
release.gpgImportKeyFromFileWithPassword(getReleaseGpgSignKeyCredsId(), getReleaseGpgSignPassphraseCredsId())
withCredentials([string(credentialsId: getReleaseGpgSignPassphraseCredsId(), variable: 'SIGNING_KEY_PASSWORD')]) {
mvnCmd.withProperty('gpg.passphrase', SIGNING_KEY_PASSWORD)
.withProfiles(['apache-release'])

mavenRunClosure()
}
release.gpgImportKeyFromStringWithoutPassword(getReleaseGpgSignKeyCredsId())
mavenCommand.withProfiles(['apache-release'])
mavenRunClosure()
} else {
mavenRunClosure()
}
Expand Down

0 comments on commit bdf1715

Please sign in to comment.