Skip to content

Add http retries (like 3) before failing the build #1187

Description

@hfhbd

I use sigstore to sign my artifacts that are automatically published to MavenCentral. Unfortunately, having 1 single failure during the creation of the signature fails the complete build and I need to restart the whole publishing process, including changing the version number (because of automatic publishing).

Caused by: dev.sigstore.KeylessSignerException: Failed to put entry in rekor
Caused by: org.apache.http.ConnectionClosedException: Premature end of chunk coded message body: closing chunk expected

BuildScan: https://gradle.com/s/coglbxlkoksvu

According to the logs, the rekor server closed the connection. While there is an (temporary) bug in the rekor infrastructure because I can reproduce it, the sigstore gradle plugin should retry the operation instead of failing the build directly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions