You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
One more observation is that the plugin seems to be printing 0.1.0 for gradlew currentVersion only when the latest commit does not have an associated tag. If the latest commit has a tag associated with it, it seems to be printing the version correctly.
./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:
build.gradle
configuration:Version is
1.13.6
. Can you help please?The text was updated successfully, but these errors were encountered: