mirror of
https://github.com/FabricMC/fabric.git
synced 2025-04-21 03:10:54 -04:00
Fix branch name on jenkins
This commit is contained in:
parent
34cdeba3b0
commit
65dbd72c87
1 changed files with 5 additions and 0 deletions
|
@ -32,6 +32,9 @@ def getSubprojectVersion(project, version) {
|
|||
}
|
||||
|
||||
def getBranch(){
|
||||
if(System.getenv().GIT_BRANCH){
|
||||
return System.getenv().GIT_BRANCH
|
||||
}
|
||||
if (grgit == null) {
|
||||
return "unknown"
|
||||
}
|
||||
|
@ -206,6 +209,8 @@ dependencies {
|
|||
|
||||
version = Globals.baseVersion + "+" + (ENV.BUILD_NUMBER ? ("build." + ENV.BUILD_NUMBER) : "local") + "-" + getBranch()
|
||||
|
||||
logger.lifecycle("Building Fabric: " + version)
|
||||
|
||||
curseforge {
|
||||
if (project.hasProperty('curse_api_key')){
|
||||
apiKey = project.getProperty('curse_api_key')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue