Issue Type: Bug Bug
Assignee: Christopher Orr
Components: google-play-android-publisher-plugin
Created: 01/Nov/14 2:08 PM
Description:

I got this report and the stacktrace below:

"Some times when uploading apk’s (has happened 2 times now) the plugins thinks that upload failed.
It then says that "No changes were applied to the Google Play account» but when checking in Google Play console, all apk’s were uploaded and published!"

Essentially the Google Play Publishing API fails to respond in time, so we assume failure.

Unfortunately from my testing, I've seen this a few times — timeouts or HTTP 500 server errors — even although the changes may have been applied. The API is not the most reliable.

So we should handle this particular situation (i.e. a timeout while committing the edits) and inform the user that the build outcome is unknown.

Assigning uploaded APK(s) to alpha release track...
The alpha release track will now contain the APK(s): 10040, 20045, 30043, 40044, 50041, 60042
Upload failed: org.jenkinsci.plugins.googleplayandroidpublisher.PublisherApiException: java.net.SocketTimeoutException: Read timed out
	at org.jenkinsci.plugins.googleplayandroidpublisher.AbstractPublisherTask.call(AbstractPublisherTask.java:34)
	at hudson.FilePath.act(FilePath.java:1006)
	at org.jenkinsci.plugins.googleplayandroidpublisher.ApkPublisher.perform(ApkPublisher.java:302)
	at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:32)
    ...
Caused by: java.net.SocketTimeoutException: Read timed out
	at java.net.SocketInputStream.socketRead0(Native Method)
	at java.net.SocketInputStream.read(SocketInputStream.java:152)
    ...
	at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:965)
	at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:410)
	at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:343)
	at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:460)
	at org.jenkinsci.plugins.googleplayandroidpublisher.ApkUploadTask.execute(ApkUploadTask.java:190)
	at org.jenkinsci.plugins.googleplayandroidpublisher.ApkUploadTask.execute(ApkUploadTask.java:41)
	at org.jenkinsci.plugins.googleplayandroidpublisher.AbstractPublisherTask.call(AbstractPublisherTask.java:31)
	... 11 more

- No changes were applied to the Google Play account
Build step 'Upload Android APK to Google Play' marked build as failure
Project: Jenkins
Priority: Minor Minor
Reporter: Christopher Orr
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to