mirror of
https://github.com/GeyserMC/Geyser.git
synced 2025-12-28 03:09:08 +00:00
A better educated guess to fix the git branch
This commit is contained in:
@@ -84,7 +84,7 @@ configure<BlossomExtension> {
|
||||
|
||||
val mainFile = "src/main/java/org/geysermc/geyser/GeyserImpl.java"
|
||||
// On Jenkins, a detached head is checked out, so indra cannot determine the branch. Fortunately, this environment variable is available.
|
||||
val branchName = indra.branchName() ?: System.getenv("BRANCH") ?: "DEV"
|
||||
val branchName = indra.branchName() ?: System.getenv("GIT_LOCAL_BRANCH") ?: "DEV"
|
||||
val commit = indra.commit()
|
||||
val git = indra.git()
|
||||
val gitVersion = "git-${branchName}-${commit?.name?.substring(0, 7) ?: "0000000"}"
|
||||
|
||||
Reference in New Issue
Block a user