gitlab ci: fix wrong branch

This commit is contained in:
Moritz Zwerger 2024-01-22 03:35:33 +01:00
parent 98731e1203
commit af4cc4ac50
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -470,7 +470,7 @@ val versionJsonTask = tasks.register("versionJson") {
println(status)
}
return mapOf(
"branch" to git.branch.current().name,
"branch" to (System.getenv()["CI_COMMIT_BRANCH"] ?: git.branch.current().name),
"commit" to commit.id,
"commit_short" to commit.abbreviatedId,
"dirty" to !status.isClean,