Has anybody got this working?

Teamcity seems unable to get my gpg key from my settings.xml.

I have tried:

  • Uploading a custom settings.xml for the project.
  • Placing it on disk and specifying a custom file location.
  • Putting it in the default locations specified here: http://confluence.jetbrains.com/pages/viewpage.action?pageId=50505270
  • Passing the gpg key on the command line.
  • Using different versions of the mvn release plugin just in case this was a problem (I'm currently using 2.4.2)

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... :)

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top