• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wooga / atlas-appcenter / 20 / 3
65%
master: 65%

Build:
DEFAULT BRANCH: master
Ran 04 Dec 2020 03:58PM UTC
Files 7
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

04 Dec 2020 03:56PM UTC coverage: 97.653% (-1.2%) from 98.876%
20.3

push

jenkins

Add retry logic for upload call (#26)

Description
===========

It happens quite often that the binary upload call fails with an error
in the 500 range. I have no real idea what the root cause is since it's
a server error. Maybe the inital `createUploadResource` resource call is
to blame. This patch adds a simple retry logic around the upload task to
check if our errors go down when we try to redo the call a few times
with a timeout in between.

The values for retryCount and retryTimeout can be passed as usual via
properties, env or directly in script.

| property              | gradle property name              | environment variable                |
| --------------------- | --------------------------------- | ----------------------------------- |
| retryCount            | `appCenter.retryCount`            | `APP_CENTER_RETRY_COUNT`            |
| retryTimeout          | `appCenter.retryTimeout`          | `APP_CENTER_RETRY_TIMEOUT`          |

The default values are `3` for the `retryCount` and `5` seconds for the
`retryTimeout`.

To test the logic I had to split the actual call into a helper method.
It would be cleaner to also move the other methods over but I treat this
change as a temp fix than a proper implemenation. Maybe I roll this back
...

Changes
=======

* ![ADD] retry logic for upload call

208 of 213 relevant lines covered (97.65%)

0.98 hits per line

Source Files on job 20.3
  • Tree
  • List 0
  • Changed 6
  • Source Changed 6
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 20
  • 0f9cfbe9 on github
  • Prev Job for on master (#19.2)
  • Next Job for on master (#22.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc