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

wooga / atlas-appcenter / 20
65%

Build:
DEFAULT BRANCH: master
Ran 04 Dec 2020 03:56PM UTC
Jobs 3
Files 7
Run time 1min
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

pending completion
20

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%)

2.93 hits per line

Jobs
ID Job ID Ran Files Coverage
1 20.1 04 Dec 2020 03:56PM UTC 0
97.65
2 20.2 04 Dec 2020 03:56PM UTC 0
97.65
3 20.3 04 Dec 2020 03:58PM UTC 0
97.65
Source Files on build 20
Detailed source file information is not available for this build.
  • Back to Repo
  • Jenkins Build #20
  • 0f9cfbe9 on github
  • Prev Build on master (#19)
  • Next Build on master (#22)
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