Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-59943

Issue while uploading android apk to app center

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Trivial Trivial
    • appcenter-plugin
    • None
    • Jenkin 2.190.1
      App Center 0.7.1

      Started by user
      admin
      Code Used:

      node{
      appCenter apiToken:'API KEY', appName: 'JenkinBuild', distributionGroups: 'Tester', notifyTesters: true, ownerName: 'BirdziIn', pathToApp: '/home/jenkin/app-debug.apk', releaseNotes: '- Jenkin pipeline buid'
      }

      Error Log:

      Running in Durability level: MAX_SURVIVABILITY[Pipeline] Start of Pipeline[Pipeline] nodeRunning on Jenkins in /var/lib/jenkins/workspace/ScriptSavePipeline[Pipeline]

      {[Pipeline] appCenterFile found: /home/jenkin/app-debug.apk Creating an upload resource. io.jenkins.plugins.appcenter.AppCenterException: Create upload resource unsuccessful: at io.jenkins.plugins.appcenter.task.internal.CreateUploadResourceTask.lambda$execute$0(CreateUploadResourceTask.java:48) at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:760) at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:736) at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474) at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:1977) at retrofit2.CompletableFutureCallAdapterFactory$BodyCallAdapter$2.onResponse(CompletableFutureCallAdapterFactory.java:81) at retrofit2.OkHttpCall$1.onResponse(OkHttpCall.java:129) at okhttp3.RealCall$AsyncCall.execute(RealCall.java:174) at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: retrofit2.HttpException: HTTP 403 Forbidden ... 7 more io.jenkins.plugins.appcenter.AppCenterException: Upload to AppCenter failed. at io.jenkins.plugins.appcenter.task.UploadTask.call(UploadTask.java:56) at io.jenkins.plugins.appcenter.task.UploadTask.call(UploadTask.java:17) at hudson.FilePath.act(FilePath.java:1165) at io.jenkins.plugins.appcenter.AppCenterRecorder.uploadToAppCenter(AppCenterRecorder.java:142) at io.jenkins.plugins.appcenter.AppCenterRecorder.perform(AppCenterRecorder.java:129) at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80) at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67) at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: java.util.concurrent.ExecutionException: io.jenkins.plugins.appcenter.AppCenterException: Create upload resource unsuccessful: at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357) at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1895) at io.jenkins.plugins.appcenter.task.UploadTask.call(UploadTask.java:54) ... 12 more Caused by: io.jenkins.plugins.appcenter.AppCenterException: Create upload resource unsuccessful: at io.jenkins.plugins.appcenter.task.internal.CreateUploadResourceTask.lambda$execute$0(CreateUploadResourceTask.java:48) at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:760) at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:736) at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474) at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:1977) at retrofit2.CompletableFutureCallAdapterFactory$BodyCallAdapter$2.onResponse(CompletableFutureCallAdapterFactory.java:81) at retrofit2.OkHttpCall$1.onResponse(OkHttpCall.java:129) at okhttp3.RealCall$AsyncCall.execute(RealCall.java:174) at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32) ... 3 more Caused by: retrofit2.HttpException: HTTP 403 Forbidden ... 7 more[Pipeline] }

      [Pipeline] // node[Pipeline] End of PipelineFinished: FAILURE

            Unassigned Unassigned
            gmane Girish Mane
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: