-PversionIncrementer=incrementerPatch not working #764
Open
Description
./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?
Metadata
Assignees
Labels
No labels