From 4ea739f91c8a259fe218193ecf6904e5544cac10 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Thu, 16 Jan 2020 15:41:41 +0100 Subject: [PATCH] Polish "Pass CI branch parameter to build scan" See gh-19658 --- gradle/build-scan-user-data.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle/build-scan-user-data.gradle b/gradle/build-scan-user-data.gradle index 53ca00634c..53a6b5b4fe 100644 --- a/gradle/build-scan-user-data.gradle +++ b/gradle/build-scan-user-data.gradle @@ -52,7 +52,7 @@ boolean isCi() { String getBranch() { def branch = System.getenv('BRANCH') - if (branch != null && !branch.isEmpty()) { + if (branch) { return branch } return execAndGetStdout('git', 'rev-parse', '--abbrev-ref', 'HEAD')