allegro / allegro/axion-release-plugin
-PversionIncrementer=incrementerPatch not working
- Linguagem predominante
- Groovy
- Estrelas
- 641
- Forks
- 165
- Merge médio
- 49min
- PRs com merge (30d)
- 9
Descrição
```./gradlew --stacktrace release -Prelease.forceVersion=0.1.0 -Prelease.versionIncrementer=incrementPatch -Prelease.disableChecks -Prelease.pushTagsOnly```
I'm using this command in a CI/CD pipeline on a repo that already has tags.
But the output is saying this:
```
> Task :release FAILED
Replacing pattern "version: 0.1.0" with "version: 0.1.0" in /azp/_work/1/s/README.md
Creating tag: basket-online-0.1.0
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':release'.
> org.eclipse.jgit.api.errors.RefAlreadyExistsException: tag 'Tag={
object 836e8d53f9cd0a9a11070f82d238145d658f3c83
type commit
tag basket-online-0.1.0
tagger PersonIdent[root, root@azdevops-scaledjob-wnw2s-tkds8, Tue May 28 14:30:24 2024 +0000]
}' already exists
```
`build.gradle` configuration:
```
scmVersion {
ignoreUncommittedChanges = false
versionIncrementer 'incrementMinor'
tag {
prefix = 'basket-online'
versionSeparator = '-'
}
nextVersion {
suffix = 'SNAPSHOT'
separator = '-'
}
hooks {
//Not yet working
pre 'fileUpdate', [file: 'README.md', pattern: { v, c -> /version: $v/ }, replacement: { v, c -> "version: $v" }]
pre 'commit'
}
}
```
Version is ```1.13.6```. Can you help please?
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Avaliação
Esta issue ainda não foi avaliada.