mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
One more try on branch name
This commit is contained in:
parent
fd2c242230
commit
9791e7b544
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ configure<BlossomExtension> {
|
||||||
|
|
||||||
val mainFile = "src/main/java/org/geysermc/geyser/GeyserImpl.java"
|
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.
|
// 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("GIT_LOCAL_BRANCH") ?: "DEV"
|
val branchName = indra.branchName() ?: System.getenv("BRANCH_NAME") ?: "DEV"
|
||||||
val commit = indra.commit()
|
val commit = indra.commit()
|
||||||
val git = indra.git()
|
val git = indra.git()
|
||||||
val gitVersion = "git-${branchName}-${commit?.name?.substring(0, 7) ?: "0000000"}"
|
val gitVersion = "git-${branchName}-${commit?.name?.substring(0, 7) ?: "0000000"}"
|
||||||
|
|
Loading…
Reference in a new issue