Polish "Pass CI branch parameter to build scan"

See gh-19658
This commit is contained in:
Stephane Nicoll 2020-01-16 15:41:41 +01:00
parent 240f2fb2c8
commit 4ea739f91c

View File

@ -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')