Commit 4ea739f9 authored by Stephane Nicoll's avatar Stephane Nicoll

Polish "Pass CI branch parameter to build scan"

See gh-19658
parent 240f2fb2
...@@ -52,7 +52,7 @@ boolean isCi() { ...@@ -52,7 +52,7 @@ boolean isCi() {
String getBranch() { String getBranch() {
def branch = System.getenv('BRANCH') def branch = System.getenv('BRANCH')
if (branch != null && !branch.isEmpty()) { if (branch) {
return branch return branch
} }
return execAndGetStdout('git', 'rev-parse', '--abbrev-ref', 'HEAD') return execAndGetStdout('git', 'rev-parse', '--abbrev-ref', 'HEAD')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment