Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReleaseFailedException on concurrent attempts to increment version #715

Open
jonathanmash opened this issue Feb 19, 2024 · 0 comments
Open

Comments

@jonathanmash
Copy link

In the event that two separate processes attempt to increment the version for a module at the same time, then the following exception is thrown in one of them.

FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':module:release'.
pl.allegro.tech.build.axion.release.ReleaseFailedException (no error message)
Try:
Run with --stacktrace option to get the stack trace.
Run with --scan to get full insights.
Get more help at https://help.gradle.org/

This can be worked around by performing a git fetch --tags and then retrying the release task which, on the second attempt then concludes that there is nothing to be released as the other process has already tagged this commit successfully.

Presumably the issue here is a rejection by the git repository of the push. It would be good if such a rejection is encountered if the axion-release-plugin could automatically perform a fetch and re-attempt the push itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant