-
Improvement
-
Resolution: Fixed
-
Minor
-
None
In a job where multiple .apk files are produced it's not possible to use wildcards or to specify multiple artifacts to upload:
Uploading to testflight
File: */bin/*release.apk
java.io.FileNotFoundException: */bin/*release.apk (No such file or directory)
java.io.FileNotFoundException: */bin/*release.apk (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:137)
at org.apache.http.entity.mime.content.FileBody.writeTo(FileBody.java:78)
at org.apache.james.mime4j.message.MessageWriter.writeBody(MessageWriter.java:76)
at org.apache.http.entity.mime.HttpMultipart.doWriteTo(HttpMultipart.java:165)
at org.apache.http.entity.mime.HttpMultipart.writeTo(HttpMultipart.java:223)
at org.apache.http.entity.mime.MultipartEntity.writeTo(MultipartEntity.java:179)
at org.apache.http.impl.entity.EntitySerializer.serialize(EntitySerializer.java:127)
at org.apache.http.impl.AbstractHttpClientConnection.sendRequestEntity(AbstractHttpClientConnection.java:253)
at org.apache.http.impl.conn.AbstractClientConnAdapter.sendRequestEntity(AbstractClientConnAdapter.java:218)
at org.apache.http.protocol.HttpRequestExecutor.doSendRequest(HttpRequestExecutor.java:249)
at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:124)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:483)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:641)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:597)
at testflight.TestflightUploader.upload(TestflightUploader.java:117)
at testflight.TestflightRemoteRecorder.call(TestflightRemoteRecorder.java:61)
at hudson.remoting.LocalChannel.call(LocalChannel.java:45)
at testflight.TestflightRecorder.perform(TestflightRecorder.java:158)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:798)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:770)
at hudson.model.Build$BuildExecution.post2(Build.java:183)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:720)
at hudson.model.Run.execute(Run.java:1600)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:237)
Build step 'Upload to Testflight' marked build as failure
This is basically an app with several different skins, so the build produces multiple apk files. Archiving the artifacts using the above wildcard gives the expected results. It would be nice be able to pass either a wildcard or list of build files to the plugin.