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

wooga / atlas-appcenter / 22
65%

Build:
DEFAULT BRANCH: master
Ran 09 Dec 2020 10:19AM UTC
Jobs 3
Files 7
Run time 57s
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
22

push

jenkins

Fix deprecated publish flow (#27)

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

Appcenter suddenly without warning deprecated the old publish flow which
used a hockeyapp proxy for binary uploads. We suddenly saw 500 server
errors for the initail call to create an upload resource.
This was a planned [maintenance][appcenter_maintenance] from appcenter
which I had no knowledge of. The solution from appcener is to use the
latest version of the appcenter cli or update the upload flow based on
the cli implementation. I used the [appcenter fastlane plugin] as
reference as this was easier to read.

The new flow is somewhat similar but way more complicated.

Here are the old steps:

* create upload resource
* upload binary to provided upload url from created upload resource
  (`hockey upload url`)
* commit binary upload to the upload resource (this returns a releaseId)
* distribute release to destinations

The new flow

* create a release upload
* upload the binary to files.appcenter.ms in multiple steps
  * set binary metadata (filename, filesize). this call returns a
    chunksize
  * uplaod binary in chunks (~4MB)
  * mark upload as finished
* set state of release upload to `uploadFinished`
* poll appcenter for `releaseId` for given `uploadId`
* load the release to get download and install url
* ditribute release to destinations

I implemented these steps as static methods in `AppCenterRest` this is
something we need to address. This scope of this little plugin which
started as a simple hockeyapp upload task with a single http call needs
now somewhat more structure.

The recall logic from the last patch (#26) is partially removed. I still
kept the gradle properties etc but these are unsused in this first
implementation. The [fastlane plugin][fastlane_appcenter_helper] only
does a retry for > 500 and < 200 calls.

The fastlane plugin is also doing some release metadata upload which we
don't do at all. I would check if we need this a... (continued)

271 of 288 relevant lines covered (94.1%)

2.82 hits per line

Jobs
ID Job ID Ran Files Coverage
1 22.1 09 Dec 2020 10:19AM UTC 0
94.1
2 22.2 09 Dec 2020 10:20AM UTC 0
94.1
3 22.3 09 Dec 2020 10:20AM UTC 0
94.1
Source Files on build 22
Detailed source file information is not available for this build.
  • Back to Repo
  • Jenkins Build #22
  • f07aba1f on github
  • Prev Build on master (#20)
  • Next Build on master (#24)
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