-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement simple retry logic in case of app extracting error (#36)
Description =========== Appcenter returns an error every now and then `A problem occured while extracting your app`. This seems to be an internal issue as the support was not yet able to help out with this error. Under normal condidtion we trigger a rebuild and the upload works again. This little retry addition just checks for this specific error and retries the whole upload up to 3 times. Changes ======= * ![IMPROVE] uploader with retry when app extraction error is thrown
- Loading branch information
Showing
4 changed files
with
51 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
src/main/groovy/wooga/gradle/appcenter/error/AppCenterUploadException.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package wooga.gradle.appcenter.error | ||
|
||
import groovy.transform.InheritConstructors | ||
|
||
@InheritConstructors | ||
class AppCenterUploadException extends Exception { | ||
} | ||
|
||
@InheritConstructors | ||
class AppCenterAppExtractionException extends Exception { | ||
|
||
} | ||
|
||
@InheritConstructors | ||
class AppCenterMalwareDetectionException extends Exception { | ||
|
||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters