[JIRA] (JENKINS-59914) When build step 'Upload app to AppCenter' changed build result to FAILURE in Jenkins

16 views
Skip to first unread message

ctolea@deloittece.com (JIRA)

unread,
Oct 24, 2019, 4:21:02 AM10/24/19
to jenkinsc...@googlegroups.com
Cristiana Tolea created an issue
 
Jenkins / Bug JENKINS-59914
When build step 'Upload app to AppCenter' changed build result to FAILURE in Jenkins
Issue Type: Bug Bug
Assignee: Unassigned
Components: appcenter-plugin
Created: 2019-10-24 08:20
Environment: Jenkins ver. 2.176.1
AppCenter plugin ver. 07.0
Priority: Major Major
Reporter: Cristiana Tolea

I have just configured a Post-build action in Jenkins in order to upload the builds to AppCenter. After the new build is created successfully by gradle, the Upload to AppCenter task starts and returns the following exceptions, causing the build to fail:

 

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

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

        at java.lang.Thread.run(Thread.java:745)

Caused by: retrofit2.HttpException: HTTP 404 Not Found

        ... 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.remoting.UserRequest.perform(UserRequest.java:212)

        at hudson.remoting.UserRequest.perform(UserRequest.java:54)

        at hudson.remoting.Request$2.run(Request.java:369)

        at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)

        at java.util.concurrent.FutureTask.run(FutureTask.java:266)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

        at java.lang.Thread.run(Thread.java:745)

        Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to mobile-build-mac

               at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1743)

               at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:357)

               at hudson.remoting.Channel.call(Channel.java:957)

               at hudson.FilePath.act(FilePath.java:1160)

               at io.jenkins.plugins.appcenter.AppCenterRecorder.uploadToAppCenter(AppCenterRecorder.java:131)

               at io.jenkins.plugins.appcenter.AppCenterRecorder.perform(AppCenterRecorder.java:118)

               at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:79)

               at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)

               at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741)

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

               at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)

               at hudson.model.ResourceController.execute(ResourceController.java:97)

               at hudson.model.Executor.run(Executor.java:429)

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)

        ... 9 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 404 Not Found

        ... 7 more

Build step 'Upload app to AppCenter' changed build result to FAILURE

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

ctolea@deloittece.com (JIRA)

unread,
Oct 28, 2019, 11:39:02 AM10/28/19
to jenkinsc...@googlegroups.com

mez.pahlan@gmail.com (JIRA)

unread,
Oct 28, 2019, 6:18:03 PM10/28/19
to jenkinsc...@googlegroups.com

mez.pahlan@gmail.com (JIRA)

unread,
Oct 28, 2019, 6:19:02 PM10/28/19
to jenkinsc...@googlegroups.com
Mez Pahlan commented on Bug JENKINS-59914
 
Re: When build step 'Upload app to AppCenter' changed build result to FAILURE in Jenkins

Hi Cristiana Tolea thanks for reporting this. The stack trace says that the url was not found (HTTP 404 Not Found) for the following url: 

v0.1/apps/{owner_name}/{app_name}/release_uploads

What are you using for owner_name and app_name? And more importantly where are you getting that information from?

ctolea@deloittece.com (JIRA)

unread,
Oct 29, 2019, 3:49:04 AM10/29/19
to jenkinsc...@googlegroups.com

Hi Mez Pahlan. I am using the names in clear as they appear in AppCenter platform. The owner name and app name are composed of multiple words separated by whitespace. I can see that in the appcenter url for the application the owner name and app name is separated by -. 

mez.pahlan@gmail.com (JIRA)

unread,
Oct 29, 2019, 3:56:03 AM10/29/19
to jenkinsc...@googlegroups.com

I believe you have to use the owner name and app name as it appears in the URL. Not as it appears in the web page. My apps all have spaces in them and I use the - version from the URL without issue.

Give that a go for both variables and let me know. Thanks.

ctolea@deloittece.com (JIRA)

unread,
Oct 29, 2019, 4:04:02 AM10/29/19
to jenkinsc...@googlegroups.com

I understand! I see that names must be passed as they appear in the url. thank you a lot, Mez Pahlan!!! 

mez.pahlan@gmail.com (JIRA)

unread,
Oct 29, 2019, 7:26:02 AM10/29/19
to jenkinsc...@googlegroups.com

mez.pahlan@gmail.com (JIRA)

unread,
Oct 29, 2019, 7:26:03 AM10/29/19
to jenkinsc...@googlegroups.com
Mez Pahlan closed an issue as Not A Defect
 
Change By: Mez Pahlan
Status: Open Closed
Resolution: Not A Defect
Reply all
Reply to author
Forward
0 new messages