[CHORE] Fix build display info for jenkins
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
def JDK = "21"
|
def JDK = "21"
|
||||||
|
def majorMc = "1.21";
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
agent {
|
agent {
|
||||||
@@ -17,7 +18,7 @@ pipeline {
|
|||||||
stage("Notify Discord") {
|
stage("Notify Discord") {
|
||||||
steps {
|
steps {
|
||||||
discordSend webhookURL: env.FDD_WH_ADMIN,
|
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,
|
link: env.BUILD_URL,
|
||||||
result: 'SUCCESS',
|
result: 'SUCCESS',
|
||||||
description: "Build: [${BUILD_NUMBER}](${env.BUILD_URL})"
|
description: "Build: [${BUILD_NUMBER}](${env.BUILD_URL})"
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
def projectName = "CraterLib";
|
def projectName = "CraterLib";
|
||||||
def projectIcon = "https://cdn.modrinth.com/data/Nn8Wasaq/a172c634683a11a2e9ae593e56eba7885743bb44.png";
|
def projectIcon = "https://cdn.modrinth.com/data/Nn8Wasaq/a172c634683a11a2e9ae593e56eba7885743bb44.png";
|
||||||
def JDK = "21";
|
def JDK = "21";
|
||||||
def majorMc = "Port";
|
def majorMc = "1.21";
|
||||||
def modLoaders = "neoforge|fabric|quilt";
|
def modLoaders = "neoforge|fabric|quilt";
|
||||||
def supportedMc = "1.21";
|
def supportedMc = "1.21";
|
||||||
def reltype = "port";
|
def reltype = "port";
|
||||||
@@ -33,7 +33,7 @@ pipeline {
|
|||||||
stage("Prepare") {
|
stage("Prepare") {
|
||||||
steps {
|
steps {
|
||||||
sh "chmod +x ./gradlew"
|
sh "chmod +x ./gradlew"
|
||||||
sh "./gradlew build -PreleaseType=port"
|
sh "./gradlew build -PreleaseType=${reltype}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user