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
  • Loading branch information
rodrigonull committed Jul 16, 2024
1 parent 1291fa3 commit 4f7d651
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 4f7d651

Please sign in to comment.