Skip to content

Commit 4ea739f

Browse files
committed
Polish "Pass CI branch parameter to build scan"
See gh-19658
1 parent 240f2fb commit 4ea739f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gradle/build-scan-user-data.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ boolean isCi() {
5252

5353
String getBranch() {
5454
def branch = System.getenv('BRANCH')
55-
if (branch != null && !branch.isEmpty()) {
55+
if (branch) {
5656
return branch
5757
}
5858
return execAndGetStdout('git', 'rev-parse', '--abbrev-ref', 'HEAD')

0 commit comments

Comments
 (0)