Skip to content

Commit

Permalink
Correction in tag calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
kpiot123 committed Jan 20, 2025
1 parent 98f33bc commit 85aebfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def calcTags(version) {
tags += "${version.major}.${version.minor}.${version.rev}.${version.label}".toString()
}
// For non-master/non-release builds, change the tags to contain branch and build number
def isReleaseBuild = ci.isCi() && (ci.branch != null && (ci.branch.startsWith("master") || ci.branch.startsWith("release")) || ci.tag != null)
def isReleaseBuild = ci.isCi() && ((ci.branch != null && (ci.branch.startsWith("master") || ci.branch.startsWith("release"))) || ci.tag != null)
if (!isReleaseBuild) {
def branch = ci.tag ? ci.tag : ci.branch ? ci.branch.replace("/", ".") : "1.0.0"
tags = tags.stream().map({ it + "-build-${branch}-${ci.buildNumber}" }).collect(Collectors.toList())
Expand Down

0 comments on commit 85aebfb

Please # to comment.