mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Polish "Pass CI branch parameter to build scan"
See gh-19658
This commit is contained in:
parent
240f2fb2c8
commit
4ea739f91c
@ -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')
|
||||||
|
Loading…
Reference in New Issue
Block a user