[CHORE] Fix build display info for jenkins

This commit is contained in:
2024-06-11 22:24:12 +02:00
parent fabef0e6f1
commit dd69ecd7cc
2 changed files with 4 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
def JDK = "21"
def majorMc = "1.21";
pipeline {
agent {
@@ -17,7 +18,7 @@ pipeline {
stage("Notify Discord") {
steps {
discordSend webhookURL: env.FDD_WH_ADMIN,
title: "Deploy Started: CraterLib Port Deploy #${BUILD_NUMBER}",
title: "Deploy Started: CraterLib ${majorMc} Deploy #${BUILD_NUMBER}",
link: env.BUILD_URL,
result: 'SUCCESS',
description: "Build: [${BUILD_NUMBER}](${env.BUILD_URL})"

View File

@@ -1,7 +1,7 @@
def projectName = "CraterLib";
def projectIcon = "https://cdn.modrinth.com/data/Nn8Wasaq/a172c634683a11a2e9ae593e56eba7885743bb44.png";
def JDK = "21";
def majorMc = "Port";
def majorMc = "1.21";
def modLoaders = "neoforge|fabric|quilt";
def supportedMc = "1.21";
def reltype = "port";
@@ -33,7 +33,7 @@ pipeline {
stage("Prepare") {
steps {
sh "chmod +x ./gradlew"
sh "./gradlew build -PreleaseType=port"
sh "./gradlew build -PreleaseType=${reltype}"
}
}