Skip to content

Commit

Permalink
Adjust for deprecated gpg.passphrase
Browse files Browse the repository at this point in the history
Tycho updated to newer maven-gpg-plugin which deprecates it.
  • Loading branch information
akurtakov committed Nov 18, 2024
1 parent ceef24a commit 3b61f6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ spec:
stage('Build') {
steps {
container('container') {
withCredentials([file(credentialsId: 'secret-subkeys.asc', variable: 'KEYRING'),string(credentialsId: 'gpg-passphrase', variable: 'KEYRING_PASSPHRASE') ]) {
withCredentials([file(credentialsId: 'secret-subkeys.asc', variable: 'KEYRING'),string(credentialsId: 'gpg-passphrase', variable: 'MAVEN_GPG_PASSPHRASE') ]) {
wrap([$class: 'Xvnc', useXauthority: true]) {
sh '''mvn -e -Psign -Dmaven.test.failure.ignore=true -ntp -Ddash.fail=true -Dgpg.passphrase="${KEYRING_PASSPHRASE}" -Dtycho.pgp.signer.bc.secretKeys="${KEYRING}" clean verify'''
sh '''mvn -e -Psign -Dmaven.test.failure.ignore=true -ntp -Ddash.fail=true -Dtycho.pgp.signer.bc.secretKeys="${KEYRING}" clean verify'''
}
}}
}
Expand Down

0 comments on commit 3b61f6b

Please sign in to comment.