Finally found the solution
I had the public part of the GPG key on the server, but not the private part (Doh).
Really helpful error messages, thanks Maven... :)
题
Has anybody got this working?
Teamcity seems unable to get my gpg key from my settings.xml.
I have tried:
No matter what I do I end up with:
Failed to execute goal org.apache.maven.plugins:maven-gpg-plugin:1.1:sign (sign-artifacts) on project driver-binary-downloader-maven-plugin: Cannot obtain passphrase in batch mode
I't exceptionally frustrating because the setings.xml is being read initially (it's using it for the VCS credentials), Teamcity is just not passing it into the gpg signing phase.
This was working fine in Teamcity 7 and i've compared all my settings and they seem the same, I'm currently at a loss.
解决方案
Finally found the solution
I had the public part of the GPG key on the server, but not the private part (Doh).
Really helpful error messages, thanks Maven... :)