allegro / allegro/axion-release-plugin

ReleaseFailedException on concurrent attempts to increment version

Aberta
#715 0 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
Groovy
Estrelas
641
Forks
165
Merge médio
49min
PRs com merge (30d)
9

Descrição

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.

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.