Files
CraterLib/patches/1.21.2/.jenkins/Jenkinsfile.deploy.patch

50 lines
1.4 KiB
Diff
Raw Normal View History

2024-10-22 19:17:45 +02:00
--- a/.jenkins/Jenkinsfile.deploy
+++ b/.jenkins/Jenkinsfile.deploy
2025-03-09 15:14:41 +02:00
@@ -1,5 +1,5 @@
def JDK = "21"
2025-04-28 13:49:31 +02:00
-def majorMc = "1.21.6";
2025-03-09 15:14:41 +02:00
+def majorMc = "1.21.2";
pipeline {
agent {
2024-10-22 19:17:45 +02:00
@@ -26,25 +26,33 @@
}
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}",