Skip to content

Commit 3b61f6b

Browse files
committed
Adjust for deprecated gpg.passphrase
Tycho updated to newer maven-gpg-plugin which deprecates it.
1 parent ceef24a commit 3b61f6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: Jenkinsfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ spec:
5858
stage('Build') {
5959
steps {
6060
container('container') {
61-
withCredentials([file(credentialsId: 'secret-subkeys.asc', variable: 'KEYRING'),string(credentialsId: 'gpg-passphrase', variable: 'KEYRING_PASSPHRASE') ]) {
61+
withCredentials([file(credentialsId: 'secret-subkeys.asc', variable: 'KEYRING'),string(credentialsId: 'gpg-passphrase', variable: 'MAVEN_GPG_PASSPHRASE') ]) {
6262
wrap([$class: 'Xvnc', useXauthority: true]) {
63-
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'''
63+
sh '''mvn -e -Psign -Dmaven.test.failure.ignore=true -ntp -Ddash.fail=true -Dtycho.pgp.signer.bc.secretKeys="${KEYRING}" clean verify'''
6464
}
6565
}}
6666
}

0 commit comments

Comments
 (0)