Jenkins CI / CD无法发布到Android Playstore

时间:2018-07-23 17:00:34

标签: android jenkins continuous-integration continuous-deployment continuous-delivery

我正在尝试从Jenkins v2.134发布Android Singed apk,成功生成了已签名的apk((可以手动上传-已测试)。但是当涉及到发布时,它将失败并出现以下异常。

我正在使用JSON密钥访问Google API和服务。并且创建的用户还具有所需的必需权限。首先是默认版本showing some problem and I downgrade some version of plugins as they suggested

Googleplayandroidpublisher v1.5

令牌宏v1.10

Google OAuth v0.3

但是将签名上传到Android Playstore时会出现此异常

java.lang.NullPointerException
at org.jenkinsci.plugins.googleplayandroidpublisher.ApkUploadTask.execute(ApkUploadTask.java:81)
at org.jenkinsci.plugins.googleplayandroidpublisher.ApkUploadTask.execute(ApkUploadTask.java:35)
at org.jenkinsci.plugins.googleplayandroidpublisher.AbstractPublisherTask.call(AbstractPublisherTask.java:33)
at hudson.FilePath.act(FilePath.java:1163)
at org.jenkinsci.plugins.googleplayandroidpublisher.ApkPublisher.publishApk(ApkPublisher.java:313)
at org.jenkinsci.plugins.googleplayandroidpublisher.ApkPublisher.perform(ApkPublisher.java:183)
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:1840)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
Build step 'Upload Android APK to Google Play' marked build as failure 
Finished: FAILURE

谢谢。

0 个答案:

没有答案