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

When using gradle to name an android app the App Center plugin is unable to locate the file

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Minor Minor
    • appcenter-plugin
    • None
    • Jenkins ver. 2.200
      App Center plugin ver 0.6.2

      We use the gradle to name the release versions of our apk via Jenkins and subsequently upload for distribution.

      The [Android signing plugin|https://github.com/jenkinsci/android-signing-plugin] is able finding files despite having special characters "*" in the file name .eg: app_name_v*_release.apk

      Unfortunately the App center plugin is not able to identify the file. Any recommendations ?

       

       

      [SignApksBuilder] signed APK app/build/outputs/apk/app_name_Release/app_v0.20.0_20191018_1512_app_name_Release-signed.apk[SignApksBuilder] signed APK app/build/outputs/apk/app_name_Release/app_v0.20.0_20191018_1512_app_name_Release-signed.apk[SignApksBuilder] archiving signed APK app/build/outputs/apk/app_name_Release/app_v0.20.0_20191018_1512_app_name_Release-signed.apk[SignApksBuilder] finished signing APKsio.jenkins.plugins.appcenter.AppCenterException: File not found: app/build/outputs/apk/app_name_Release/app_v*_app_name_Release.apk at io.jenkins.plugins.appcenter.task.internal.CheckFileExistsTask.execute(CheckFileExistsTask.java:44) at io.jenkins.plugins.appcenter.task.UploadTask.call(UploadTask.java:42) at io.jenkins.plugins.appcenter.task.UploadTask.call(UploadTask.java:17) at hudson.remoting.UserRequest.perform(UserRequest.java:211) 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)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:211) 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 Robot at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1741) at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356) at hudson.remoting.Channel.call(Channel.java:955) at hudson.FilePath.act(FilePath.java:1159) 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:1863) 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: File not found: app/build/outputs/apk/app_name_Release/app_v*_app_name_Release.apk 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 moreCaused by: io.jenkins.plugins.appcenter.AppCenterException: File not found: app/build/outputs/apk/app_name_Release/app_v*_app_name_Release.apk at io.jenkins.plugins.appcenter.task.internal.CheckFileExistsTask.execute(CheckFileExistsTask.java:44) at io.jenkins.plugins.appcenter.task.UploadTask.call(UploadTask.java:42) ... 9 moreBuild step 'Upload app to AppCenter' changed build result to FAILURE

       

            mezpahlan Mez Pahlan
            njoseph Navin Joseph
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: