mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-20 06:29:16 +00:00
Polish "Pass CI branch parameter to build scan"
See gh-19658
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user