[JIRA] (JENKINS-60171) HTTP 422 uploading Android APK artifact
Title: Message Title Jovan Kljajic commented on JENKINS-60171 Re: HTTP 422 uploading Android APK artifact Mez Pahlan Thank you for your time. The change you proposed worked well with 0.7.2. Since apk file isn't directly under app directory, I'm using: appCenter pathToApp: "app/**/*.apk", ... And it works like a charm! Thank you, much obliged! Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.203126.1573734069000.4654.1574280960198%40Atlassian.JIRA.
[JIRA] (JENKINS-60171) HTTP 422 uploading Android APK artifact
Title: Message Title Jovan Kljajic commented on JENKINS-60171 Re: HTTP 422 uploading Android APK artifact Hi, File names are: Previous job: app-debug-androidTest.apk Latest job: app-0.1.0-1-20-11-15.04.apk Downgrade from 0.7.2 to 0.7.1 fixes the issue.. Here is the pipeline snippet: stage('Upload to App Center'){ if (config.appCenter) { withCredentials([string(credentialsId: 'appcenter-token', variable: 'APPCENTER_API_TOKEN')]) { sh "find app -type f -name \"*.apk\" | xargs ls -Art | tail -n 1 > file_to_upload.txt" def latestApk = readFile("${WORKSPACE}/file_to_upload.txt").trim() println latestApk appCenter apiToken: "${APPCENTER_API_TOKEN}", appName: 'Ommited', distributionGroups: 'Ommited', ownerName: 'XYZ', pathToApp: "${latestApk}" } } } Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
[JIRA] (JENKINS-60171) HTTP 422 uploading Android APK artifact
Title: Message Title Jovan Kljajic commented on JENKINS-60171 Re: HTTP 422 uploading Android APK artifact Jenkins version: 2.190.1, same behavior on 2.190.2 AppCenter plugin: 0.7.2 As of today, 2019-11-20, we are experiencing the same issue. Note that we were using 2.190.1 and upgrade to 2.190.2 didn't change the issue: Creating an upload resource. 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:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to EC2 (Ava) - android (i-0f83c70aa209598cf) 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:1162) 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) ... 4 more Caused by: java.util.concurrent.ExecutionException: io.jenkins.plugins.appcenter.AppCenterException: Upload app to 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: Upload app to resource unsuccessful: at io.jenkins.plugins.appcenter.AppCenterLogger.logFailure(AppCenterLogger.java:23) at io.jenkins.plugins.appcenter.task.internal.UploadAppToResourceTask.lambda$execute$0(UploadAppToResourceTask.java:66) 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