Jenkin PlayStore上传插件似乎对我不起作用,总是得到以下奇怪的错误。手动上传jenkin apk build工作得很好。任何想法或猜测为什么?
以下是Jenkins输出控制台,并且事先非常感谢。
Archiving artifacts
Authenticating to Google Play API...
- Credential: xxxxxxx
- Application ID: com.xxx.xxx
ERROR: Build step failed with exception
java.lang.NullPointerException
at org.jenkinsci.plugins.googleplayandroidpublisher.Util.getPublisherErrorMessage(Util.java:97)
at org.jenkinsci.plugins.googleplayandroidpublisher.ApkPublisher.publishApk(ApkPublisher.java:383)
at org.jenkinsci.plugins.googleplayandroidpublisher.ApkPublisher.perform(ApkPublisher.java:198)
at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
at hudson.model.Build$BuildExecution.post2(Build.java:186)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
at hudson.model.Run.execute(Run.java:1749)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:421)
Build step 'Upload Android APK to Google Play' marked build as failure
答案 0 :(得分:0)
查看the source code,似乎抛出了PublisherApiException而没有错误消息。
这是非常奇怪的,因为应该始终填充此the source这个列表。
所以我无法看到当前来源可能发生的任何情况。您可能想尝试更新插件,或在调试器中运行它(或添加打印语句)以查看正在发生的事情。