3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-11-20 06:50:09 +01:00

A better educated guess to fix the git branch

Dieser Commit ist enthalten in:
Camotoy 2022-09-18 15:56:46 -04:00
Ursprung 8605f0a91c
Commit f11dc6d03d
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 7EEFB66FE798081F

Datei anzeigen

@ -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"}"