[ci skip] Fix Jenkins Config for 1.21.5

This commit is contained in:
2025-03-25 20:52:02 +02:00
parent e13bc3e0d8
commit fe00eabdff
7 changed files with 150 additions and 38 deletions

View File

@@ -26,25 +26,33 @@ pipeline {
}
stage("Prepare") {
steps {
sh "chmod +x ./gradlew"
sh "./gradlew clean"
dir("${WORKSPACE}/${majorMc}") {
sh "chmod +x ./gradlew"
sh "./gradlew clean"
}
}
}
stage("Publish to Modrinth/Curseforge") {
steps {
sh "./gradlew publishMod -Prelease=true"
dir("${WORKSPACE}/${majorMc}") {
sh "./gradlew publishMod -Prelease=true"
}
}
}
stage("Publish to Maven") {
steps {
sh "./gradlew publish -Prelease=true"
dir("${WORKSPACE}/${majorMc}") {
sh "./gradlew publish -Prelease=true"
}
}
}
}
post {
always {
sh "./gradlew --stop"
deleteDir()
dir("${WORKSPACE}/${majorMc}") {
sh "./gradlew --stop"
deleteDir()
}
discordSend webhookURL: env.FDD_WH_ADMIN,
title: "CraterLib Port Deploy #${BUILD_NUMBER}",